.hero { display: grid; grid-template-columns: auto fit-content(470px); justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; height: 100svh; min-height: 520px; padding: 5.5rem 0 2rem; }
.portrait { position: relative; justify-self: center; height: min(640px, calc(100svh - 8.5rem)); aspect-ratio: 4/5; max-width: 100%; }
.portrait::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,92,240,.3), rgba(124,92,240,0)); }
.portrait .frame { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #1d1633, #120d24); box-shadow: 0 22px 54px rgba(0,0,0,.4); }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 7rem var(--display); color: rgba(255,255,255,.7); text-align: center; }
.portrait .ph small { display: block; font: 600 .78rem system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(42,29,78,.55); }
.intro .hi { font: 600 1.1rem system-ui, sans-serif; color: var(--accent); }
.intro h1 { font: 800 clamp(2.2rem, 4.8vw, 3.7rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.02em; margin: .3rem 0 1rem; }
.intro h1 span { background: linear-gradient(100deg, #7c5cf0, #a58bff 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 560px; }
.intro .lead b { color: var(--fg); font-weight: 650; }
.intro .actions { margin-bottom: 0; }

/* agenda */
.agenda { padding: clamp(1.2rem, 3vw, 2.2rem); }
.agenda-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.state { display: flex; align-items: center; gap: .65rem; font: 800 1.5rem var(--display); text-transform: uppercase; }
.led { width: 13px; height: 13px; border-radius: 50%; background: var(--led, #888); box-shadow: 0 0 0 0 var(--led, #888); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
[data-etat="libre"] { --led: #22b866; } [data-etat="mission"] { --led: #ef4444; } [data-etat="partiel"] { --led: #f59e0b; }
#state-msg { color: var(--muted); font-size: .95rem; margin-top: .35rem; max-width: 460px; }
#state-next { color: var(--muted); font-size: .9rem; margin-top: .2rem; } #state-next b { color: var(--fg); }
.ctrl { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.seg button { padding: .45rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 650; color: var(--muted); transition: .25s; }
.seg button.on { background: linear-gradient(135deg, #7c5cf0, #a06bff); color: #fff; box-shadow: 0 6px 16px rgba(124,92,240,.4); }
.nav-btns { display: flex; gap: .4rem; align-items: center; }
.nav-btns button { height: 38px; min-width: 38px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--fg); font-weight: 600; font-size: .85rem; transition: .2s; }
.nav-btns button:hover { border-color: var(--accent); color: var(--accent); }
.cal-title { font: 800 clamp(1.6rem, 3.6vw, 2.4rem) var(--display); text-transform: capitalize; letter-spacing: -.01em; margin-bottom: 1.1rem; }

/* agenda : jours en cercles, deux états (libre = blanc, pris = dégradé violet) */
.cal { display: grid; gap: 1.6rem; }
.cal.m1 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
.cal.m3 { grid-template-columns: repeat(3, 1fr); }
.cal.m12 { grid-template-columns: repeat(4, 1fr); }
.mon h4 { font: 700 1rem system-ui, sans-serif; text-transform: capitalize; margin-bottom: .55rem; }
.mon .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px 4px; justify-items: center; }
.mon .dw { text-align: center; font-size: .62rem; letter-spacing: .06em; color: var(--muted); padding-bottom: 2px; }
.c { width: 100%; max-width: 32px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .74rem; font-weight: 600; line-height: 1; transition: transform .15s, box-shadow .15s; }
.c.e { background: none; border: 0; pointer-events: none; }
.c.free { background: rgba(255,255,255,.88); color: #14102a; border: 1px solid rgba(255,255,255,.95); }
.c.busy { background: linear-gradient(135deg, rgba(120,140,245,.30) 0%, rgba(146,112,243,.30) 50%, rgba(176,120,236,.30) 100%); color: #fff; text-shadow: 0 0 2px rgba(40,20,100,.55); border: 1px solid rgba(170,145,255,.28); box-shadow: 0 0 14px rgba(146,112,243,.22), inset 0 0 8px rgba(255,255,255,.1); }
.c.today { outline: 2px solid #fff; outline-offset: 2px; }
.c:not(.e):hover { transform: scale(1.14); box-shadow: 0 5px 14px rgba(98,66,180,.3); z-index: 2; }
.cal.m1 .c { font-size: 1rem; max-width: 48px; }
.cal.m12 .c { font-size: .58rem; max-width: 24px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.lg { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: .5rem; vertical-align: -3px; }
.lg.free { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95); }
.lg.busy { background: linear-gradient(135deg, rgba(120,140,245,.30) 0%, rgba(146,112,243,.30) 50%, rgba(176,120,236,.30) 100%); border: 1px solid rgba(170,145,255,.4); box-shadow: 0 0 8px rgba(146,112,243,.25); }
.nav-btns button[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 960px) { .cal.m3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .cal.m12 { grid-template-columns: repeat(2, 1fr); } }

/* parcours centré */
.tl { --th: 5rem; position: relative; max-width: 840px; margin-inline: auto; display: grid; gap: .7rem; padding: calc(var(--th) + .6rem) 0; }
.tl::before, .tl .fill { content: ""; position: absolute; left: 50%; top: calc(var(--th) + .2rem); bottom: calc(var(--th) + .2rem); width: 3px; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(var(--accent2), var(--accent3)); opacity: .28; -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.tl .fill { opacity: 1; bottom: auto; height: calc(var(--p, 0) * (100% - 2 * var(--th) - .4rem)); background: linear-gradient(#c4a8ff, #8b5cf6); box-shadow: 0 0 18px rgba(139,92,246,.7); }
/* traînées de braises aux deux bouts de la ligne */
.tail { position: absolute; left: 50%; width: 0; height: var(--th); pointer-events: none; }
.tail.top { top: 0; } .tail.bot { bottom: 0; }
.tail i { position: absolute; left: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 9px var(--c); opacity: 0; transform: translate(-50%, 0) scale(.2); }
.tail.top i { bottom: var(--y); } .tail.bot i { top: var(--y); }
.tail.in i { opacity: var(--o); transform: translate(-50%, 0) scale(1); transition: opacity .6s ease var(--d), transform .6s ease var(--d); animation: flick var(--t) ease-in-out calc(var(--d) + .7s) infinite; }
@keyframes flick { 0%, 100% { opacity: var(--o); transform: translate(-50%, 0) scale(1); } 50% { opacity: calc(var(--o) * .5); transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(.65); } }
@media (prefers-reduced-motion: reduce) { .tail i { opacity: var(--o); transform: translate(-50%, 0); animation: none; transition: none; } }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.tl-item .card { grid-column: 1; margin-right: 2.2rem; text-align: right; }
.tl-item:nth-child(odd) .card { grid-column: 2; margin-right: 0; margin-left: 2.2rem; text-align: left; }
.tl-item .card { position: relative; padding: .7rem .95rem .75rem; border-radius: 14px; }
.tl-item .card::after { content: ""; position: absolute; top: 1.15rem; width: 2.2rem; height: 2px; background: linear-gradient(90deg, rgba(139,92,246,.1), rgba(139,92,246,.7)); right: -2.2rem; }
.tl-item:nth-child(odd) .card::after { right: auto; left: -2.2rem; background: linear-gradient(270deg, rgba(139,92,246,.1), rgba(139,92,246,.7)); }
.tl-item .node { position: absolute; left: 50%; top: .75rem; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9c7ff 45%, #8b5cf6); box-shadow: 0 0 0 4px rgba(139,92,246,.16), 0 4px 12px rgba(139,92,246,.4); z-index: 2; }
.tl-item .node::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(139,92,246,.45); animation: ringp 2.8s ease-out infinite; }
@keyframes ringp { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.tl .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-bottom: .3rem; }
.tl-item .card:not(.x) .meta { justify-content: flex-start; }
.tl-item:not(:nth-child(odd)) .card .meta { justify-content: flex-end; }
@media (max-width: 760px) { .tl-item:not(:nth-child(odd)) .card .meta { justify-content: flex-start; } }
/* date : simple texte blanc, sans pastille (léger contour violet pour rester lisible sur fond clair) */
.tl time { display: inline-block; padding: 0 .15rem; color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .06em; }
.tl h3 { font-size: .95rem; margin-bottom: .1rem; line-height: 1.25; }
.tl p { color: var(--muted); font-size: .82rem; line-height: 1.45; }
/* pastilles : couleurs pastel translucides avec contour, texte foncé de la même teinte */
.kind { --kc: #b9a8ff; display: inline-block; padding: .1rem .58rem; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--kc) 24%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 85%, transparent); }
.kind.k-stage { --kc: #f0abfc; }
.kind.k-cdd { --kc: #fca5a5; }
.kind.k-interim { --kc: #fde68a; }
.kind.k-etudes { --kc: #93c5fd; }
.kind.k-formation { --kc: #c7d38a; }
.kind.k-creation { --kc: #111; background: #000; border-color: rgba(255,255,255,.55); }
.plus { color: rgba(255,255,255,.7); font-weight: 700; font-size: .75rem; }
@media (max-width: 760px) {
  .tl::before, .tl .fill { left: 18px; }
  .tail { left: 19.5px; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-item .card, .tl-item:nth-child(odd) .card { grid-column: 1; margin: 0 0 0 2.6rem; text-align: left; }
  .tl-item .card::after, .tl-item:nth-child(odd) .card::after { left: -2.2rem; right: auto; width: 2.2rem; background: linear-gradient(270deg, rgba(139,92,246,.1), rgba(139,92,246,.7)); }
  .tl-item .node { left: 18px; }
}

/* univers */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.door { position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #14101f; color: #f4f3f7; isolation: isolate; }
.door::before { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -110px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .55; transition: opacity .4s, transform .6s; z-index: -1; }
.door:hover::before { opacity: .9; transform: scale(1.3); }
.door:hover { border-color: var(--c); }
.door .dt { width: 100%; padding: 1.2rem 1rem 1.4rem; display: grid; justify-items: center; gap: .3rem; }
.door small { color: var(--c); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.door h3 { font: 800 1.35rem var(--display); text-transform: uppercase; margin: 0; line-height: 1.1; }
.door p { color: #b9b4c9; font-size: .9rem; min-height: 2.7em; max-width: 22ch; }

/* contact + réseaux */
.contact-box { text-align: center; padding: 1rem 0 2rem; }
.contact-box h2 { font: 800 clamp(2rem, 5.5vw, 3.6rem)/1 var(--display); text-transform: uppercase; margin: .6rem 0 2rem; }
.round { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.round a { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(60,40,120,.22); transition: transform .25s ease, box-shadow .25s ease; }
.round a svg { width: 28px; height: 28px; fill: currentColor; }
.round a:hover { transform: scale(1.18); box-shadow: 0 10px 24px rgba(60,40,120,.32); }
.round a[aria-label="Instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.round a[aria-label="Facebook"] { background: #1877f2; }
.round a[aria-label="WhatsApp"] { background: #25d366; }
.round a[aria-label="LinkedIn"] { background: #0a66c2; }
.round a[aria-label="GitHub"] { background: #181717; }
.contact-box .actions { justify-content: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 4.2rem; padding-bottom: 5.5rem; gap: 1rem; align-content: center; } .portrait { height: min(27svh, 240px); } .intro .lead { font-size: 1rem; margin-bottom: 1rem; } .intro h1 { font-size: 2rem; margin-bottom: .6rem; } .intro .actions { flex-wrap: nowrap; gap: .5rem; } .intro .actions .btn { padding: .75rem 1rem; font-size: .85rem; white-space: nowrap; } }


@media (max-width: 760px) { .doors { grid-template-columns: repeat(2, 1fr); gap: .7rem; } .door { min-height: 190px; } .door h3 { font-size: .95rem; overflow-wrap: anywhere; } .door p { font-size: .76rem; } }

/* mobile : centrage de l'en-tête et ajustements */
@media (max-width: 900px) {
  .hero { justify-items: center; text-align: center; }
  .intro { display: grid; justify-items: center; }
  .intro .lead { margin-inline: auto; }
  .intro .actions { justify-content: center; }
  .portrait { margin-inline: auto; }
  .sec-head { text-align: left; }
  .agenda-top { flex-direction: column; align-items: stretch; }
  .state { justify-content: flex-start; }
  .ctrl { justify-content: space-between; width: 100%; }
  .seg button { padding: .42rem .8rem; }
  .contact-box { padding-inline: 0; }
  .round a { width: 54px; height: 54px; }
  .round { gap: .7rem; }
  .contact-box .actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .doors .door p { min-height: 0; }
}
@media (max-width: 400px) { .intro .actions .btn { padding: .7rem .9rem; font-size: .8rem; } .cal-title { font-size: 1.4rem; } }

.cal.m1 .mon h4 { display: none; }

/* boutons de l'accueil : même matière que les jours pris du calendrier (dégradé bleu-violet-rose, translucide) */
body.t-home .btn:not(.ghost), .seg button.on { background: linear-gradient(135deg, rgba(120,140,245,.46) 0%, rgba(146,112,243,.46) 50%, rgba(176,120,236,.46) 100%); color: #fff; border: 1px solid rgba(170,145,255,.45); text-shadow: 0 0 2px rgba(40,20,100,.5); box-shadow: 0 0 18px rgba(146,112,243,.25), inset 0 0 10px rgba(255,255,255,.1); }
body.t-home .btn:not(.ghost):hover { background: linear-gradient(135deg, rgba(120,140,245,.62), rgba(146,112,243,.62) 50%, rgba(176,120,236,.62)); box-shadow: 0 8px 28px rgba(146,112,243,.4), inset 0 0 10px rgba(255,255,255,.14); }
.nav-btns button:hover { background: linear-gradient(135deg, rgba(120,140,245,.30) 0%, rgba(146,112,243,.30) 50%, rgba(176,120,236,.30) 100%); border-color: rgba(170,145,255,.45); color: #fff; }
.intro h1 span { background: linear-gradient(100deg, #8d9cff, #a58bff 55%, #c9a5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 760px) {
  .doors { gap: .6rem; }
  .doors .door { aspect-ratio: 1; min-height: 0; }
  .door .dt { padding: .7rem .6rem .85rem; gap: .2rem; }
  .door small { font-size: .62rem; }
  .door h3 { font-size: .84rem !important; letter-spacing: -.005em; overflow-wrap: normal !important; word-break: normal; hyphens: manual; }
  .door p { font-size: .7rem !important; line-height: 1.3; max-width: none; }
  .round { max-width: 224px; margin-inline: auto; gap: .8rem; }
  .round a { width: 60px; height: 60px; }
  .sec-head, .sec-head p { text-align: center; justify-items: center; }
}
