/* ==========================================================================
   Développement Solution — design « Cobalt » (portfolio)
   Chargé après main.css. Toutes les classes sont préfixées .ds- pour ne pas
   entrer en conflit avec l'ancien style des autres pages.
   ========================================================================== */

:root {
	--ds-cobalt: #2335E8;
	--ds-cobalt-dark: #16239E;
	--ds-ink: #0E1230;
	--ds-paper: #F5F6FA;
	--ds-yellow: #FFE45C;
	--ds-tomato: #FF5A36;
	--ds-muted: #3D4466;
	--ds-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
	--ds-body: 'Instrument Sans', system-ui, sans-serif;
}

/* L'ancien menu était fixe : le nouveau ne l'est pas, on retire le décalage. */
body,
body.home,
body.site-page { padding-top: 0 !important; }
html { scroll-padding-top: 16px; }

.ds-wrap { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; box-sizing: border-box; }
.ds-home, .ds-nav, .ds-footer { font-family: var(--ds-body); }
.ds-home { background: var(--ds-paper); color: var(--ds-ink); font-size: 18px; line-height: 1.55; overflow: hidden; }
.ds-home h1, .ds-home h2, .ds-home h3, .ds-home p { margin: 0; }
.ds-home a:focus-visible, .ds-nav a:focus-visible, .ds-nav summary:focus-visible, .ds-footer a:focus-visible { outline: 3px solid var(--ds-yellow); outline-offset: 3px; }

/* ---------- Menu ---------- */
.ds-nav { background: var(--ds-cobalt); color: #fff; position: relative; z-index: 30; }
.ds-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.ds-brand { font-family: var(--ds-display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; color: #fff !important; text-decoration: none; }
.ds-nav__links { display: flex; align-items: center; gap: 6px 30px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
.ds-nav__links > a { color: #fff; text-decoration: none; padding: 10px 0; }
.ds-nav__links > a:hover { color: var(--ds-yellow); }
.ds-pill { border-radius: 999px; padding: 11px 20px !important; font-weight: 700; text-decoration: none; }
.ds-pill--light { background: #fff; color: var(--ds-ink) !important; }
.ds-pill--light:hover { background: var(--ds-yellow); }
.ds-account { background: transparent; border: 2px solid rgba(255,255,255,.55); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; }

.ds-burger { display: none; position: relative; }
.ds-burger summary { list-style: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.ds-burger summary::-webkit-details-marker { display: none; }
.ds-burger summary span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ds-ink); transition: transform .25s, opacity .25s; }
.ds-burger[open] summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ds-burger[open] summary span:nth-child(2) { opacity: 0; }
.ds-burger[open] summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.ds-burger__panel { position: absolute; right: 0; top: 58px; width: 250px; background: #fff; border-radius: 20px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(14,18,48,.3); }
.ds-burger__panel a { color: var(--ds-ink); text-decoration: none; font-weight: 700; font-size: 18px; padding: 13px 14px; border-radius: 12px; }
.ds-burger__panel a:hover { background: #F0F2FF; }
.ds-burger__panel .ds-burger__cv { background: var(--ds-yellow); margin-top: 6px; }
.ds-burger__panel hr { margin: 8px 6px; opacity: .2; }

/* ---------- Boutons ---------- */
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ds-btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 15px 26px; border-radius: 999px; line-height: 1.2; }
.ds-btn--yellow { background: var(--ds-yellow); color: var(--ds-ink) !important; }
.ds-btn--ghost { color: #fff !important; border: 2px solid rgba(255,255,255,.55); padding: 13px 24px; font-weight: 600; }
.ds-btn--ink { background: var(--ds-ink); color: #fff !important; }
.ds-btn--outline { color: var(--ds-ink) !important; border: 2px solid var(--ds-ink); padding: 13px 24px; }
.ds-btn:hover { filter: brightness(1.06); }

/* ---------- Haut de page ---------- */
.ds-hero { background: var(--ds-cobalt); color: #fff; }
.ds-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 32px 48px; padding-top: 64px; padding-bottom: 40px; }
.ds-hero__text { min-width: 0; padding-bottom: 40px; }
.ds-hero__title { font-family: var(--ds-display); font-weight: 800; font-stretch: 78%; font-size: clamp(44px, 5.6vw, 84px); line-height: .88; letter-spacing: -0.03em; color: #fff; }
.ds-hero__lead { margin-top: 32px !important; max-width: 520px; font-size: 21px; line-height: 1.45; color: #E3E6FF; }
.ds-sticker { width: 124px; height: 124px; border-radius: 50%; background: var(--ds-tomato); color: var(--ds-ink); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--ds-display); font-weight: 800; font-size: 17px; line-height: 1.1; transform: rotate(-12deg); padding: 14px; box-sizing: border-box; margin: 0 !important; box-shadow: 0 12px 30px rgba(14,18,48,.3); }
.ds-hero__visual { position: relative; align-self: end; margin-bottom: -110px; z-index: 2; padding-top: 24px; }
.ds-hero__visual .ds-sticker { position: absolute; top: -6px; left: -18px; z-index: 5; }
.ds-hero__phones { display: flex; justify-content: center; align-items: flex-end; }
.ds-phone { flex: 0 0 auto; width: clamp(150px, 16vw, 230px); aspect-ratio: 230 / 500; border-radius: 40px; background: var(--ds-ink); padding: 9px; box-sizing: border-box; box-shadow: 0 30px 60px rgba(14,18,48,.45); position: relative; }
.ds-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.ds-hero__phones .ds-phone { width: clamp(130px, 13vw, 200px); border-radius: 34px; padding: 8px; }
.ds-hero__phones .ds-phone img { border-radius: 26px; }
.ds-hero__phones .ds-phone + .ds-phone { margin-left: -60px; }
.ds-phone--1 { transform: rotate(-8deg) translateY(36px); z-index: 1; }
.ds-phone--2 { transform: translateY(-10px); z-index: 3; }
.ds-phone--3 { transform: rotate(8deg) translateY(36px); z-index: 2; }
.ds-hero__phones .ds-phone:only-child { transform: rotate(-4deg); width: clamp(170px, 17vw, 240px); }

.ds-hero--no-phones .ds-hero__inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
.ds-hero--no-phones .ds-sticker { position: absolute; right: 28px; top: 56px; width: 150px; height: 150px; font-size: 19px; }

.ds-hero__who { margin: 0 0 22px !important; font-weight: 600; font-size: 17px; line-height: 1.4; color: #E3E6FF; max-width: 560px; }

/* Badges de technologies */
.ds-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ds-tags li, .ds-tags span { background: #E7EAFD; color: #16239E; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 6px 12px; border-radius: 999px; }
.ds-tags--sm { gap: 6px; }
.ds-tags--sm span { font-size: 12px; padding: 4px 9px; }

/* ---------- Projets ---------- */
.ds-projects { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 72px; }
.ds-projects--after-phones { padding-top: 170px; }
.ds-h2 { font-family: var(--ds-display); font-weight: 800; font-stretch: 85%; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; max-width: 900px; }
.ds-projects__head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.ds-projects__intro { color: var(--ds-muted); font-size: 19px; line-height: 1.55; max-width: 640px; }
.ds-feature { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.ds-feature--reverse { flex-direction: row-reverse; }
.ds-feature__text { flex: 1 1 min(420px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ds-feature__title { font-family: var(--ds-display); font-weight: 800; font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.ds-feature__lead { font-size: 20px; line-height: 1.5; color: var(--ds-ink); }
.ds-feature__stack { font-weight: 600; color: var(--ds-muted); }
.ds-links { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; }
.ds-links a { color: var(--ds-cobalt); text-decoration: underline; text-underline-offset: 4px; }
.ds-feature__visual { flex: 1 1 min(460px, 100%); min-height: 420px; border-radius: 28px; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 40px); box-sizing: border-box; }
.ds-phone--feature { width: min(240px, 70%); transform: rotate(-3deg); }
.ds-browser { width: 100%; max-width: 520px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(14,18,48,.18); }
.ds-browser__bar { display: flex; gap: 6px; padding: 12px 14px; background: #EEF1F4; }
.ds-browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #C3CAD3; }
.ds-browser img { display: block; width: 100%; height: auto; }

/* Ronds qui deviennent des cartes au survol */
.ds-circles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 8px 24px; }
.ds-circle-cell { height: 400px; display: flex; align-items: center; justify-content: center; }
.ds-circle { position: relative; width: 230px; height: 230px; border-radius: 50%; overflow: hidden; background: #fff; color: var(--ds-ink); text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(14,18,48,.16); transition: width .5s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1), border-radius .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.ds-circle__img { flex: 0 0 230px; height: 230px; width: 100%; object-fit: cover; display: block; transition: flex-basis .5s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1); }
.ds-circle__name { position: absolute; left: 50%; top: 160px; transform: translateX(-50%); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; color: var(--ds-ink); font-family: var(--ds-display); font-weight: 800; font-size: 17px; padding: 7px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(14,18,48,.18); transition: opacity .25s; }
.ds-circle__body { flex: 1 1 auto; min-height: 0; padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .2s; }
.ds-circle__title { font-family: var(--ds-display); font-weight: 800; font-size: 24px; line-height: 1.08; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-circle__text { font-size: 15px; line-height: 1.45; color: var(--ds-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-circle__cta { margin-top: auto; align-self: flex-start; background: var(--ds-cobalt); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; }
.ds-circle:hover, .ds-circle:focus-visible { width: 100%; max-width: 330px; height: 460px; border-radius: 26px; box-shadow: 0 26px 50px rgba(14,18,48,.22); color: var(--ds-ink); }
.ds-circle:hover .ds-circle__img, .ds-circle:focus-visible .ds-circle__img { flex-basis: 200px; height: 200px; }
.ds-circle:hover .ds-circle__name, .ds-circle:focus-visible .ds-circle__name { opacity: 0; }
.ds-circle:hover .ds-circle__body, .ds-circle:focus-visible .ds-circle__body { opacity: 1; transition: opacity .3s .25s; }

/* ---------- Parcours ---------- */
.ds-band { background: var(--ds-ink); color: #fff; }
.ds-band__inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 64px; }
.ds-band__top { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.ds-band__intro { flex: 1 1 min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.ds-band__title { color: #FFFFFF; font-family: var(--ds-display); font-weight: 800; font-stretch: 88%; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.04; letter-spacing: -0.02em; }
.ds-band__text { color: #C9CEE8; font-size: 18px; line-height: 1.6; max-width: 560px; }
.ds-timeline { flex: 1 1 min(420px, 100%); list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid #2D3466; display: flex; flex-direction: column; gap: 26px; }
.ds-timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ds-timeline li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ds-ink); border: 3px solid var(--ds-yellow); box-sizing: border-box; }
.ds-timeline li:last-child::before { background: var(--ds-yellow); }
.ds-timeline__when { color: var(--ds-yellow); font-weight: 700; font-size: 15px; }
.ds-timeline__what { color: #FFFFFF; font-size: 18px; line-height: 1.45; }
.ds-stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; border-top: 2px solid #2D3466; padding-top: 32px; }
.ds-stack-grid span { color: var(--ds-yellow); font-weight: 700; }
.ds-stack-grid p { color: #DDE0F5; margin-top: 6px !important; }

/* ---------- Contact ---------- */
.ds-cta { background: var(--ds-yellow); }
.ds-cta__inner { padding-top: 96px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 28px; }
.ds-cta__title { font-family: var(--ds-display); font-weight: 800; font-stretch: 80%; font-size: clamp(48px, 6.5vw, 96px); line-height: .88; letter-spacing: -0.035em; color: var(--ds-ink); }
.ds-cta__mail { color: var(--ds-ink) !important; font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); text-decoration: underline; text-underline-offset: 6px; overflow-wrap: anywhere; }
.ds-cta .ds-actions { margin-top: 0; }

/* ---------- Pied de page ---------- */
.ds-footer { background: var(--ds-ink); color: #C6CBE8; font-size: 15px; }
.ds-footer a { color: #C6CBE8; }
.ds-footer a:hover { color: var(--ds-yellow); }
.ds-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 28px; }
.ds-footer__brand p { margin: 10px 0 0; max-width: 360px; color: #C6CBE8; }
.ds-footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-weight: 600; }
.ds-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #2D3466; }
.ds-footer__bottom div { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Mobile et tablette ---------- */
@media (max-width: 900px) {
	.ds-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.ds-hero__visual { max-width: 480px; width: 100%; justify-self: center; margin-bottom: -90px; }
	.ds-hero__phones .ds-phone { width: clamp(118px, 30vw, 180px); }
	.ds-hero__phones .ds-phone + .ds-phone { margin-left: -44px; }
	.ds-projects--after-phones { padding-top: 140px; }
}
@media (max-width: 760px) {
	.ds-nav__links { display: none; }
	.ds-burger { display: block; }
	.ds-wrap { padding-left: 20px; padding-right: 20px; }
	.ds-hero--no-phones .ds-sticker { position: static; width: 104px; height: 104px; font-size: 15px; margin-top: 28px !important; transform: rotate(-6deg); }
	.ds-hero__visual .ds-sticker { width: 96px; height: 96px; font-size: 14px; }
	.ds-hero__text { padding-bottom: 0; }
	.ds-hero__inner { padding-top: 40px; }
	.ds-feature--reverse { flex-direction: row; }
}

/* Écrans tactiles et petits écrans : pas de survol, les cartes sont ouvertes */
@media (hover: none), (max-width: 640px) {
	.ds-circle-cell { height: 480px; }
	.ds-circle { width: 100%; max-width: 330px; height: 460px; border-radius: 26px; transition: none; }
	.ds-circle .ds-circle__img { flex-basis: 200px; height: 200px; transition: none; }
	.ds-circle .ds-circle__name { opacity: 0; }
	.ds-circle .ds-circle__body { opacity: 1; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ds-circle, .ds-circle__img, .ds-circle__name, .ds-circle__body, .ds-burger summary span { transition: none; }
}

/* ==========================================================================
   Effets (24/10/2026) — utilisés avec assets/js/ds-fx.js
   ========================================================================== */

/* 1. Terminal */
.ds-term__cmd { display: block; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 600; color: var(--ds-yellow); margin-bottom: 4px; }
.ds-term__cmd:empty { display: none; }
.ds-term__caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; background: var(--ds-yellow); vertical-align: -.16em; animation: ds-blink 1s steps(1) infinite; }
.ds-term__caret.is-done { animation: none; opacity: 0; transition: opacity .4s; }
@keyframes ds-blink { 50% { opacity: 0; } }
.ds-hero__who { min-height: 3.2em; }

/* 2. Téléphones en 3D */
.ds-hero__visual { perspective: 1100px; }
.ds-hero__phones { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }

/* 3. Bandeau de technologies */
.ds-marquee { background: var(--ds-ink); padding: 34px 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid #2D3466; }
.ds-marquee__row { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: ds-slide 34s linear infinite; }
.ds-marquee__row--rev { animation-direction: reverse; animation-duration: 40s; }
.ds-marquee:hover .ds-marquee__row { animation-play-state: paused; }
.ds-marquee li { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 600; font-size: 15px; color: #fff; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #3A4280; white-space: nowrap; }
.ds-marquee li.is-hl { background: var(--ds-yellow); color: var(--ds-ink); border-color: var(--ds-yellow); }
@keyframes ds-slide { to { transform: translateX(calc(-50% - 6px)); } }

/* 4. Compteur et apparition (seulement si le JS tourne) */
.ds-count { font-variant-numeric: tabular-nums; color: var(--ds-cobalt); }
.ds-js .ds-rise { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.8,.2,1) var(--ds-delay, 0s), transform .7s cubic-bezier(.2,.8,.2,1) var(--ds-delay, 0s); }
.ds-js .ds-rise.is-in { opacity: 1; transform: none; }

/* 6. Halo qui suit le curseur */
.ds-feature__visual.ds-glow { position: relative; overflow: hidden; }
.ds-glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(260px circle at var(--ds-x, -400px) var(--ds-y, -400px), rgba(255,255,255,.55), transparent 60%); z-index: 3; }
.ds-circle.ds-glow::after { background: radial-gradient(200px circle at var(--ds-x, -400px) var(--ds-y, -400px), rgba(255,228,92,.28), transparent 60%); }

/* 9. Extrait de code sur la page d'un projet */
.ds-code { margin: 32px 0; display: flex; flex-direction: column; gap: 14px; }
.ds-code__title { font-family: var(--ds-display); font-weight: 800; font-size: 28px; margin: 0; }
.ds-code__win { background: #0B0F2A; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(14,18,48,.22); }
.ds-code__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #141A40; }
.ds-code__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A4280; }
.ds-code__bar i:nth-child(1) { background: var(--ds-tomato); }
.ds-code__bar i:nth-child(2) { background: var(--ds-yellow); }
.ds-code__bar span { font: 13px ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #AEB4E0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-code__pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; background: transparent; }
.ds-code__pre code { font: 13.5px/1.65 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #DDE1FF; background: transparent; white-space: pre; }
.ds-code__pre.is-waiting { clip-path: inset(0 0 100% 0); }
.ds-code__pre.is-in { animation: ds-code-in 1.4s steps(18) both; }
@keyframes ds-code-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.ds-code .hljs-keyword, .ds-code .hljs-built_in, .ds-code .hljs-meta { color: #FF8FA3; }
.ds-code .hljs-variable, .ds-code .hljs-number, .ds-code .hljs-literal { color: #FFE45C; }
.ds-code .hljs-string, .ds-code .hljs-attr { color: #7EE0B5; }
.ds-code .hljs-comment { color: #7C84C4; font-style: italic; }
.ds-code .hljs-title, .ds-code .hljs-function, .ds-code .hljs-title.function_ { color: #8FB5FF; }
.ds-code .hljs-type, .ds-code .hljs-class, .ds-code .hljs-title.class_ { color: #C9A6FF; }

/* 10. Frise qui se remplit au défilement */
.ds-timeline.is-live { position: relative; border-left-color: #2D3466; }
.ds-timeline__fill { position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--ds-yellow); transition: height .15s linear; }
.ds-timeline.is-live li::before { border-color: #3A4280; transition: border-color .3s, background .3s, transform .3s; }
.ds-timeline.is-live li.is-on::before { border-color: var(--ds-yellow); }
.ds-timeline.is-live li:last-child.is-on::before { background: var(--ds-yellow); transform: scale(1.25); }

/* 11. Boutons aimantés */
[data-ds-magnet] .ds-btn { transition: transform .2s ease-out, filter .2s; }

/* 8. Recherche Ctrl + K */
.ds-search { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 0; color: #fff; font: 600 15px var(--ds-body); padding: 9px 12px 9px 16px; border-radius: 999px; cursor: pointer; }
.ds-search:hover { background: rgba(255,255,255,.2); }
.ds-search kbd { font: 600 12px ui-monospace, Consolas, monospace; background: rgba(255,255,255,.18); color: #fff; border-radius: 6px; padding: 3px 7px; box-shadow: none; }
.ds-search:focus-visible, .ds-theme:focus-visible, .ds-burger__btn:focus-visible { outline: 3px solid var(--ds-yellow); outline-offset: 3px; }
.ds-burger__btn { background: transparent; border: 0; text-align: left; color: var(--ds-ink); font: 700 18px var(--ds-body); padding: 13px 14px; border-radius: 12px; cursor: pointer; }
.ds-burger__btn:hover { background: #F0F2FF; }
.ds-palette { position: fixed; inset: 0; z-index: 2000; background: rgba(14,18,48,.55); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; backdrop-filter: blur(3px); }
.ds-palette[hidden] { display: none; }
.ds-palette__box { width: min(600px, 100%); background: #fff; color: var(--ds-ink); border-radius: 20px; box-shadow: 0 30px 80px rgba(14,18,48,.45); overflow: hidden; font-family: var(--ds-body); }
.ds-palette__input { width: 100%; border: 0; border-bottom: 1px solid #DADDEB; padding: 20px 22px; font: 500 18px var(--ds-body); outline: none; color: var(--ds-ink); background: #fff; }
.ds-palette__list { list-style: none; margin: 0; padding: 8px; max-height: min(380px, 55vh); overflow-y: auto; }
.ds-palette__list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.ds-palette__list li small { margin-left: auto; font: 12px ui-monospace, Consolas, monospace; color: #5A6085; }
.ds-palette__list li[aria-selected="true"] { background: #E3E6FF; }
.ds-palette__empty { color: #5A6085; cursor: default !important; }
.ds-palette__hint { margin: 0; padding: 10px 22px 14px; font-size: 13px; color: #5A6085; border-top: 1px solid #EEF0F6; }
.ds-palette-open, .ds-palette-open body { overflow: hidden; }

/* 12. Mode sombre */
.ds-theme { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ds-theme span { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset -6px -2px 0 0 var(--ds-cobalt); transition: box-shadow .3s, background .3s; }
[data-ds-theme="dark"] .ds-theme span { background: var(--ds-yellow); box-shadow: inset 0 0 0 0 transparent; }

[data-ds-theme="dark"] body { background: #080A18; }
[data-ds-theme="dark"] .ds-nav, [data-ds-theme="dark"] .ds-hero { background: #10145A; }
[data-ds-theme="dark"] .ds-theme span { box-shadow: none; }
[data-ds-theme="dark"] .ds-home { background: #080A18; color: #E8EAFF; }
[data-ds-theme="dark"] .ds-h2, [data-ds-theme="dark"] .ds-feature__lead { color: #E8EAFF; }
[data-ds-theme="dark"] .ds-count { color: var(--ds-yellow); }
[data-ds-theme="dark"] .ds-projects__intro { color: #A9B0D8; }
[data-ds-theme="dark"] .ds-links a { color: #9FAAFF; }
[data-ds-theme="dark"] .ds-feature__visual { background: #141938 !important; }
[data-ds-theme="dark"] .ds-feature__title { filter: brightness(1.7) saturate(.9); }
[data-ds-theme="dark"] .ds-tags li, [data-ds-theme="dark"] .ds-tags span { background: #1F2660; color: #CDD3FF; }
[data-ds-theme="dark"] .ds-circle { background: #141938; color: #E8EAFF; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
[data-ds-theme="dark"] .ds-circle:hover, [data-ds-theme="dark"] .ds-circle:focus-visible { color: #E8EAFF; }
[data-ds-theme="dark"] .ds-circle__name { background: #1F2660; color: #fff; }
[data-ds-theme="dark"] .ds-circle__text { color: #A9B0D8; }
[data-ds-theme="dark"] .ds-band, [data-ds-theme="dark"] .ds-marquee { background: #05061A; }
[data-ds-theme="dark"] .ds-footer { background: #05061A; }
[data-ds-theme="dark"] .ds-browser { background: #141938; }
[data-ds-theme="dark"] .ds-browser__bar { background: #1F2660; }

/* 5. Réseau de points en fond */
[data-ds-network] { position: relative; isolation: isolate; }
.ds-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ds-hero__inner, .ds-projects { position: relative; z-index: 1; }
/* Le haut de page passe au-dessus de la section Projets pour que les téléphones débordent dessus. */
.ds-hero[data-ds-network] { z-index: 2; }

/* Fond stylisé de la section Projets : dégradé « mesh », grille fine et constellation */
.ds-projects-bg {
	background:
		radial-gradient(48% 38% at 92% 6%, rgba(35,53,232,.30), transparent 70%),
		radial-gradient(42% 34% at 4% 30%, rgba(123,92,255,.22), transparent 70%),
		radial-gradient(46% 40% at 96% 52%, rgba(255,90,54,.16), transparent 70%),
		radial-gradient(52% 42% at 10% 78%, rgba(255,228,92,.45), transparent 70%),
		radial-gradient(40% 30% at 70% 96%, rgba(35,53,232,.22), transparent 70%),
		linear-gradient(180deg, #EEF0FF 0%, #F7F5FF 45%, #FFF9E6 100%);
}
.ds-projects-bg::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(35,53,232,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(35,53,232,.07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 100%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 100%);
}
[data-ds-theme="dark"] .ds-projects-bg {
	background:
		radial-gradient(48% 38% at 92% 6%, rgba(35,53,232,.45), transparent 70%),
		radial-gradient(42% 34% at 4% 30%, rgba(123,92,255,.25), transparent 70%),
		radial-gradient(52% 42% at 10% 78%, rgba(255,228,92,.10), transparent 70%),
		radial-gradient(40% 30% at 70% 96%, rgba(35,53,232,.30), transparent 70%),
		#080A18;
}
[data-ds-theme="dark"] .ds-projects-bg::before {
	background-image:
		linear-gradient(rgba(227,230,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(227,230,255,.05) 1px, transparent 1px);
}

/* Téléphones cliquables du haut de page */
.ds-phone--link { display: block; text-decoration: none; cursor: pointer; transition: translate .25s ease, box-shadow .25s; }
.ds-phone--link:hover, .ds-phone--link:focus-visible { translate: 0 -10px; box-shadow: 0 40px 70px rgba(14,18,48,.55); z-index: 4; }
.ds-phone--link:focus-visible { outline: 3px solid var(--ds-yellow); outline-offset: 4px; }
.ds-phone__badge { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ds-yellow); color: var(--ds-ink); font: 700 13px var(--ds-body); padding: 7px 14px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .2s; box-shadow: 0 8px 20px rgba(14,18,48,.3); }
.ds-phone--link:hover .ds-phone__badge, .ds-phone--link:focus-visible .ds-phone__badge { opacity: 1; }

/* 14. Curseur personnalisé (souris uniquement, ajouté par le JS) */
.ds-cursor-on, .ds-cursor-on body, .ds-cursor-on a, .ds-cursor-on button, .ds-cursor-on summary, .ds-cursor-on .ds-circle { cursor: none; }
.ds-cursor-on input, .ds-cursor-on textarea, .ds-cursor-on select, .ds-cursor-on .linea-panel, .ds-cursor-on .linea-panel *, .ds-cursor-on .ds-palette, .ds-cursor-on .ds-palette *, .ds-cursor-on .dropdown-menu, .ds-cursor-on .dropdown-menu * { cursor: auto; }
.ds-cursor-on input, .ds-cursor-on textarea { cursor: text; }
.ds-cursor, .ds-cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 3000; opacity: 0; transition: opacity .2s; }
.ds-cursor { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid var(--ds-yellow); border-radius: 50%; mix-blend-mode: difference; transition: opacity .2s, width .2s, height .2s, margin .2s, background .2s; }
.ds-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ds-yellow); mix-blend-mode: difference; }
.ds-cursor.is-on, .ds-cursor-dot.is-on { opacity: 1; }
.ds-cursor.is-hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(255,228,92,.25); }
.ds-cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.ds-cursor.is-hidden, .ds-cursor-dot.is-hidden { opacity: 0; }

@media (max-width: 1100px) {
	.ds-search kbd { display: none; }
}
@media (max-width: 760px) {
	.ds-marquee li { font-size: 13px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.ds-marquee__row { animation: none; flex-wrap: wrap; width: auto; padding: 0 20px; }
	.ds-marquee__row li[aria-hidden="true"] { display: none; }
	.ds-term__caret { display: none; }
	.ds-hero__phones, [data-ds-magnet] .ds-btn { transition: none; }
	.ds-code__pre.is-in { animation: none; }
	.ds-cursor, .ds-cursor-dot { display: none; }
}
