/* ==========================================================================
   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 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding-top: 48px; }
.ds-hero__text { flex: 999 1 min(560px, 100%); min-width: 0; padding-bottom: 96px; position: relative; }
.ds-hero__title { font-family: var(--ds-display); font-weight: 800; font-stretch: 78%; font-size: clamp(44px, 6.4vw, 92px); line-height: .88; letter-spacing: -0.03em; color: #fff; }
.ds-hero__lead { margin-top: 36px !important; max-width: 520px; font-size: 22px; line-height: 1.45; color: #E3E6FF; }
.ds-sticker { position: absolute; left: min(560px, calc(100% - 140px)); bottom: 70px; width: 128px; height: 128px; 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; }
.ds-hero__phones { flex: 1 1 min(520px, 100%); display: flex; justify-content: center; align-items: flex-end; margin-bottom: -150px; position: relative; z-index: 2; }
.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 + .ds-phone { margin-left: -56px; }
.ds-phone--1 { transform: rotate(-8deg) translateY(40px); z-index: 1; }
.ds-phone--2 { transform: translateY(-12px); z-index: 3; }
.ds-phone--3 { transform: rotate(8deg) translateY(40px); z-index: 2; }
.ds-hero__phones .ds-phone:only-child { transform: rotate(-4deg); }

.ds-hero--no-phones .ds-hero__text { padding-bottom: 88px; }
.ds-hero--no-phones .ds-sticker { left: auto; right: 4%; top: 40px; bottom: auto; 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: 200px; }
.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: 480px; 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: 760px) {
	.ds-nav__links { display: none; }
	.ds-burger { display: block; }
	.ds-wrap { padding-left: 20px; padding-right: 20px; }
	.ds-sticker, .ds-hero--no-phones .ds-sticker { position: static; width: 104px; height: 104px; font-size: 15px; margin-top: 24px !important; transform: rotate(-6deg); }
	.ds-hero__text { padding-bottom: 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 { 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; }
}
