/* Applique les compositions éditoriales propres aux différentes pages. */
/* ===== ACCUEIL : TYPOGRAPHIE ET PROFIL ===== */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding: 76px 0 58px; align-items: center; margin-bottom: 0; }
.hero > * { min-width: 0; }
.hero h1 { font-family: var(--heading); font-weight: 800; font-size: clamp(3.5rem, 6.8vw, 6.1rem); letter-spacing: -.055em; line-height: 1.03; margin: 22px 0 26px; }
.hero h1 span { display: block; color: var(--accent); }
.hero .role { font-size: 1.03rem; max-width: 510px; font-weight: 700; color: var(--text); }
.hero .intro { max-width: 480px; }
.terminal-line { font: 12px/1.7 var(--mono); color: var(--accent); margin-top: 28px; min-height: 42px; }
.cursor { display: inline-block; border-right: 7px solid var(--accent); height: 14px; margin-left: 7px; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.profile-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.panel-bar { display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.portrait-placeholder { min-height: 275px; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: var(--surface-2);   padding: 25px; }
.portrait-monogram { font: 800 122px/1 var(--heading); letter-spacing: -.07em; color: var(--accent); margin-bottom: 22px; }
.portrait-placeholder .placeholder { background: var(--surface); padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; }
.profile-data { margin: 0; padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-data dt { font: 12px var(--mono); letter-spacing: .03em; color: var(--muted); margin-bottom: 7px; }
.profile-data dd { margin: 0; font-size: 13px; font-weight: 700; }
.home-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: 0 0 72px; padding: 26px 0; gap: 24px; }
.home-strip div { display: flex; flex-direction: column; padding-left: 28px; border-left: 1px solid var(--line); }
.home-strip div:first-child { padding-left: 0; border-left: 0; }
.home-strip strong { font: 700 1.25rem var(--heading); }
.home-strip span { font: 12px/1.6 var(--mono); color: var(--muted); margin-top: 9px; }
.quick-card { display: block; text-decoration: none; color: var(--text); }
.quick-card .card-index { font: 12px var(--mono); color: var(--accent); display: block; margin-bottom: 32px; }
.quick-card h3 { margin-bottom: 12px; }
.quick-card p { font-size: 14px; margin-bottom: 0; }
/* ===== RÉALISATIONS ===== */
.project-card { display: flex; flex-direction: column; }
.project-card h2 { font-size: 1.5rem; line-height: 1.2; }
.project-card p { font-size: 14px; }
.project-card .button { margin-top: auto; align-self: start; }
.project-icon { font: 22px var(--mono); color: var(--accent); margin: 0 0 24px; }
.result-count { font: 12px var(--mono); color: var(--muted); margin-bottom: 24px; }
/* ===== STAGES ET VEILLE ===== */
.stage-banner { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; margin-bottom: 28px; }
.stage-banner h2 { margin-bottom: 12px; color: var(--accent); }
.stage-banner p { margin: 0; }
.gallery-placeholder { display: grid; place-content: center; text-align: center; min-height: 190px; border: 1px dashed var(--line); border-radius: 6px; padding: 28px; background: var(--surface); }
.article-date { font: 12px var(--mono); color: var(--muted); display: block; margin-bottom: 14px; }
.article-card { display: flex; flex-direction: column; }
.article-card a { margin-top: auto; }
[role="tabpanel"] > .grid-two { margin: 28px 0; }
[role="tabpanel"] > .notice { margin: 28px 0; }
[role="tabpanel"] > h3 { margin-top: 32px; }
/* ===== PETITS ÉCRANS ===== */
@media (max-width: 1000px) {
    .hero { gap: 28px; }
    .hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
}
@media (max-width: 650px) {
    .hero { grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 36px; }
    .hero h1 { font-size: clamp(2.7rem, 12.5vw, 4.5rem); }
    .portrait-placeholder { min-height: 220px; }
    .portrait-monogram { font-size: 100px; }
    .home-strip { gap: 12px; margin-bottom: 46px; }
    .home-strip div { padding-left: 12px; min-width: 0; }
    .home-strip strong { font-size: 14px; line-height: 1.4; }
    .home-strip span { font-size: 12px; overflow-wrap: anywhere; }
    .stage-banner { flex-direction: column; padding: 24px; }
    .card { padding: 25px; }
    .dialog-content { padding: 22px; }
    .brand-word { font-size: 12px; }
    .brand-word small { font-size: 12px; }
}
@media (max-width: 360px) { .brand-word { display: none; } }

/* ===== COMPOSITION PRUNE ET PORCELAINE ===== */
.hero h1 { font-family: var(--heading); font-weight: 500; font-size: clamp(3.4rem, 6.6vw, 5.9rem); letter-spacing: -.045em; }
.hero h1 span { color: var(--text); }
.portrait-placeholder { background: var(--surface-2); }
.portrait-monogram { font: 500 122px/1 var(--heading); color: var(--text); letter-spacing: -.05em; }
.terminal-line, .quick-card .card-index { color: var(--label); }
.profile-panel { box-shadow: var(--shadow); }
.project-icon { color: var(--text); }
.stage-banner h2 { color: var(--text); }
.home-strip strong { font-weight: 500; }
@media (max-width: 1000px) { .hero h1 { font-size: clamp(3rem, 6.4vw, 4.8rem); } }
@media (max-width: 650px) { .hero h1 { font-size: clamp(3rem, 13vw, 4.8rem); } }

/* Identité éditoriale et terminal de présentation. */
.hero { gap:64px; padding-top:64px; }
.hero h1 { font-weight:600; font-size:clamp(3.2rem,6.4vw,5.6rem); letter-spacing:-.065em; line-height:1.02; }
.hero h1 span { color:var(--accent); }
.profile-panel { transform:rotate(1deg); }
.profile-visual { padding:22px 26px 8px; display:flex; align-items:center; gap:22px; }
.profile-initials { font:600 70px/1 var(--heading); letter-spacing:-.08em; }
.profile-visual .eyebrow { margin:0; max-width:180px; font-size:10px; }
.profile-terminal { margin:18px 24px 0; border:1px solid var(--line); border-radius:6px; background:var(--bg); overflow:hidden; }
.terminal-heading, .terminal-bottom { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 16px; font:10px/1.6 var(--mono); color:var(--muted); }
.terminal-heading { border-bottom:1px solid var(--line); }
.terminal-heading i { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-right:5px; }
.terminal-output { height:244px; padding:16px; font:11px/1.85 var(--mono); white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text); }
.terminal-output .command { color:var(--label); }
.terminal-output p { margin:0 0 10px; color:var(--text); }
.terminal-bottom { border-top:1px solid var(--line); }
.terminal-replay { border:0; background:transparent; color:var(--label); font:inherit; padding:4px; text-decoration:underline; text-underline-offset:4px; }
.profile-data { padding:22px 25px; gap:18px; }
.home-strip { padding:30px 0; }
.quick-card::after { content:'↗'; position:absolute; right:25px; top:25px; color:var(--label); transition:transform var(--motion); }
.quick-card:hover::after { transform:translate(3px,-3px); }
@media(max-width:1000px) { .hero { gap:30px; } .hero h1 { font-size:clamp(3rem,6.4vw,4.8rem); } }
@media(max-width:650px) { .hero { padding-top:40px; } .hero h1 { font-size:clamp(2.8rem,12.8vw,4.6rem); } .profile-panel { transform:none; } .profile-terminal { margin-inline:16px; } .terminal-output { font-size:10px; } }
.hero h1 span.name-letter { display:inline; color:inherit; }
.hero h1 {font-weight:500;}

.project-group-heading {grid-column:1/-1;margin:38px 0 10px;padding-block-end:15px;border-block-end:1px solid var(--line);scroll-margin-top:115px;font-size:clamp(1.6rem,3vw,2.4rem);}
.project-group-heading:first-child{margin-top:0;}
.project-card h3 {font-size:1.5rem;line-height:1.2;}
.project-cover{width:100%;height:190px;object-fit:cover;border-radius:6px;margin-bottom:22px;}
.project-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.project-media-grid figure{margin:0;}
.project-media-grid img{height:245px;}
.domain-links{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0;}
.domain-links a{font:12px/1.6 var(--mono);padding:8px 0;margin-inline-end:20px;}
@media(max-width:650px){.project-media-grid{grid-template-columns:1fr;}.project-cover{height:210px;}}

.project-video{margin:28px 0;} .project-video video{display:block;width:100%;max-height:65vh;border-radius:6px;}

/* Portrait de l’accueil : cadre sobre et proportions naturelles. */
.profile-portrait { display:block; width:112px; height:auto; aspect-ratio:414 / 532; object-fit:cover; flex-shrink:0; border:1px solid var(--line); border-radius:6px; }
@media(max-width:650px) { .profile-portrait { width:96px; } }
