/* Avel Lab : feuille de style du site. Palette et typographies du kit brand/. */

@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("/polices/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("/polices/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/polices/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/polices/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --orange: #ffb35c;
  --corail: #f0607a;
  --violet: #7a3df0;
  --encre: #11131c;
  --creme: #f6f3ec;
  --gris: #5d5f6b;          /* texte secondaire, contraste AA sur crème */
  --trait: rgba(17, 19, 28, .12);
  --degrade: linear-gradient(120deg, var(--orange), var(--corail) 50%, var(--violet));
  --largeur: 1120px;
  --marge: clamp(16px, 4vw, 40px);
  --rayon: 26px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.55; color: var(--encre); background: var(--creme);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 10; background: var(--encre); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(246, 243, 236, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: .14em; font-size: 28px; text-decoration: none; }
.logo svg { width: 1.05em; height: 1.05em; }
.logo .mot { font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.logo .lab { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: #7b7b86; margin-left: .12em; font-size: .86em; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:not(.bouton):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nav a:not(.bouton) { display: none; } }

.bouton {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: var(--encre); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(122, 61, 240, .6); }
.bouton.clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.entete .bouton { padding: 9px 18px; font-size: 15px; }

/* ---------- Accroche ---------- */
.accroche { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.halo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.halo.h1 { width: 520px; height: 520px; right: -140px; top: -120px; background: var(--violet); opacity: .28; }
.halo.h2 { width: 460px; height: 460px; right: 120px; top: 180px; background: var(--corail); opacity: .3; }
.halo.h3 { width: 380px; height: 380px; right: -60px; top: 330px; background: var(--orange); opacity: .4; }
.accroche .conteneur { position: relative; display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 40px; }
.accroche .mono { color: var(--gris); margin-bottom: 26px; }
h1 { font-size: clamp(42px, 6.6vw, 86px); font-weight: 800; letter-spacing: -.055em; line-height: .96; }
h1 .serif { font-size: 1.08em; letter-spacing: -.02em; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.chapeau { margin-top: 28px; max-width: 34em; font-size: clamp(18px, 2vw, 21px); color: #33353f; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.voile { justify-self: center; width: min(100%, 340px); filter: drop-shadow(0 30px 50px rgba(122, 61, 240, .25)); animation: houle 7s ease-in-out infinite; }
@keyframes houle { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .voile { animation: none; } }
@media (max-width: 860px) {
  .accroche .conteneur { grid-template-columns: 1fr; }
  .voile { grid-row: 1; justify-self: start; width: 96px; }
  .halo.h1 { right: -260px; } .halo.h2 { right: -200px; top: 120px; } .halo.h3 { right: -240px; top: 260px; }
}

/* ---------- Bandeau de références ---------- */
.bandeau { padding: 30px 0 34px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); background: rgba(255, 255, 255, .45); }
.bandeau .mono { color: var(--gris); margin-bottom: 20px; font-size: 12px; }
.defile { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.piste { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; align-items: center; animation: defile 38s linear infinite; }
.piste li { display: flex; align-items: center; white-space: nowrap; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.04em; color: var(--encre); }
/* Petite voile en dégradé entre deux marques */
.piste li::after { content: ""; width: 14px; height: 16px; margin: 0 clamp(26px, 3.4vw, 44px); background: var(--degrade); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .9; }
.defile:hover .piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .piste { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .piste[aria-hidden] { display: none; }
  .defile { -webkit-mask-image: none; mask-image: none; justify-content: center; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.bloc { padding: clamp(64px, 9vw, 112px) 0; }
.titre-bloc { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.titre-bloc .mono { color: var(--gris); }
h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
h2 .serif { font-size: 1.08em; }
h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }

/* ---------- Offres ---------- */
.offres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .offres { grid-template-columns: 1fr; } }
.offre {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--rayon);
  background: #fff; border: 1px solid var(--trait); overflow: hidden;
}
.offre::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--degrade); opacity: 0; transition: opacity .2s; }
.offre:hover::before { opacity: 1; }
.offre .num { color: var(--gris); }
.offre p { color: #33353f; }
.offre .etapes { font-size: 12px; letter-spacing: .14em; color: var(--violet); }
.offre .pour { font-size: 15px; color: var(--gris); }
.prix { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 10px; border-top: 1px dashed var(--trait); }
.prix .des { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 20px; color: var(--gris); }
.prix strong { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.prix small { font-size: 15px; color: var(--gris); }

.promesses { margin-top: 18px; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--rayon); background: rgba(255, 255, 255, .55); border: 1px solid var(--trait); }
.promesses .mono { color: var(--gris); margin-bottom: 22px; }
.promesses ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.promesses li { font-size: 16px; color: #33353f; line-height: 1.5; }
.promesses b { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--encre); }
.promesses .marque { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--degrade); color: #fff; font-weight: 800; font-size: 18px; }
@media (max-width: 900px) { .promesses ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promesses ul { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Krak ---------- */
.krak {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
  padding: clamp(32px, 5vw, 60px); border-radius: calc(var(--rayon) + 6px); background: var(--encre); color: #fff; overflow: hidden;
}
.krak::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 115%, rgba(240, 96, 122, .45), transparent 52%), radial-gradient(circle at 62% -30%, rgba(122, 61, 240, .5), transparent 55%), radial-gradient(circle at 100% 40%, rgba(255, 179, 92, .28), transparent 45%); }
.krak > * { position: relative; }
.krak .mono { color: #c9c9d6; }
.krak h2 { margin: 16px 0 18px; }
.krak p { color: #d9d9e3; max-width: 32em; }
.krak .bouton { background: #fff; color: var(--encre); margin-top: 28px; }
.krak .legal { margin-top: 18px; font-size: 13px; color: #a9a9b6; }
.points { list-style: none; display: grid; gap: 12px; padding: 0; }
.points li { display: grid; grid-template-columns: 6.4em 1fr; gap: 14px; align-items: baseline; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.points strong { font-size: 26px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.points span { color: #d9d9e3; font-size: 16px; }
@media (max-width: 520px) { .points li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 860px) { .krak { grid-template-columns: 1fr; } }

/* ---------- Qui je suis ---------- */
.qui { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.qui .texte p + p { margin-top: 16px; }
.qui .texte p { color: #33353f; }
.qui .lien { margin-top: 26px; display: inline-flex; gap: 8px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--corail); }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.chiffre { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--trait); }
.chiffre strong { display: block; font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chiffre span { display: block; margin-top: 10px; font-size: 15px; color: var(--gris); line-height: 1.4; }
.references { margin-top: 28px; }
.references .mono { color: var(--gris); }
.savoir-faire { margin-top: 28px; }
.savoir-faire .mono { color: var(--gris); }
/* Nuage de savoir-faire : étiquettes légèrement décalées */
.nuage { list-style: none; margin-top: 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.nuage li { font-size: 14px; padding: 6px 13px; border-radius: 999px; white-space: nowrap; border: 1px dashed rgba(17, 19, 28, .28); background: rgba(255, 255, 255, .6); color: #33353f; }
.nuage li:nth-child(3n) { transform: rotate(-2.5deg) translateY(3px); }
.nuage li:nth-child(3n+1) { transform: rotate(1.5deg); }
.nuage li:nth-child(4n+2) { transform: rotate(-1deg) translateY(-3px); }
.contact .actions.centre { justify-content: center; margin-top: 26px; }
@media (max-width: 860px) { .qui { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.contact .halo.h2 { left: 50%; top: 40%; right: auto; transform: translate(-50%, -50%); width: min(640px, 90vw); height: 260px; opacity: .2; }
.contact .conteneur { position: relative; }
.contact .mono { color: var(--gris); }
.contact h2 { margin: 16px auto 18px; max-width: 14em; }
.contact p { color: #33353f; max-width: 32em; margin: 0 auto; }
.courriel { display: inline-block; margin-top: 34px; font-size: clamp(26px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.045em; text-decoration: none; overflow-wrap: anywhere; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 3px solid var(--corail); line-height: 1.15; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--trait); padding: 28px 0 36px; font-size: 14px; color: var(--gris); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.pied a { text-underline-offset: 3px; }

/* ---------- Mentions légales ---------- */
.legales { padding: clamp(48px, 8vw, 96px) 0; max-width: 760px; }
.legales h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 32px; }
.legales h2 { font-size: 26px; letter-spacing: -.03em; margin: 40px 0 12px; }
.legales p, .legales li { color: #33353f; }
.legales p + p { margin-top: 10px; }
.legales ul { padding-left: 1.2em; }
.legales .a-completer { background: rgba(255, 179, 92, .35); padding: 0 4px; border-radius: 4px; }
