:root {
    color-scheme: light;
    --ink: #153c4b;
    --muted: #526775;
    --paper: #f4f8fb;
    --white: #fff;
    --line: #dbe5eb;
    --accent: #126b80;
    --hero: #073d50;
    --hero-highlight: #e6d9c2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.55rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 750; }
h2 span { color: var(--accent); }
p { text-wrap: pretty; }
main:focus { outline: none; }
.wrap { width: min(1280px, 100%); padding-inline: 48px; margin-inline: auto; }
.eyebrow { font-size: .72rem; line-height: 1.5; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: .9rem; font-weight: 650; }
.text-link span { font-size: 1.15rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #c76629; outline-offset: 5px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 20px; border-radius: 6px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 14px 20px; border: 1px solid transparent; border-radius: 8px; font-size: .93rem; font-weight: 650; line-height: 1.4; cursor: pointer; transition: background .15s ease; }
.button-primary { color: #fff; background: var(--hero); }
.button-primary:hover { background: #12647a; }

.site-header { position: sticky; top: 0; z-index: 20; color: #fff; background: var(--hero); border-bottom: 1px solid #306072; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 1.45rem; font-weight: 750; letter-spacing: -.055em; }
.brand img { object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; margin-inline: auto; font-size: .87rem; color: #d6e6eb; }
.main-nav a { padding-block: 12px; }
.main-nav a:hover { color: var(--hero-highlight); }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-shrink: 0; }
.header-formation { display: inline-flex; align-items: center; min-height: 44px; color: #d6e6eb; font-size: .82rem; white-space: nowrap; }
.header-formation:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.header-formation-short { display: none; }
.header-access { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 15px; border: 1px solid #91acb5; border-radius: 7px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.header-access:hover { background: #1e566a; }
.header-login { color: var(--hero); background: var(--hero-highlight); border-color: var(--hero-highlight); }
.header-login:hover { background: #fff; border-color: #fff; }
.site-header a:focus-visible, .hero-copy a:focus-visible, .hero-bottom a:focus-visible { outline-color: var(--hero-highlight); }

/* Le bandeau reprend les couleurs de la console ; le formulaire reste le premier accès. */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--hero); padding-top: 60px; }
.hero::before { content: ''; position: absolute; width: 700px; height: 700px; right: -280px; top: -110px; border: 1px solid #2c6070; border-radius: 50%; box-shadow: 0 0 0 65px #124759, 0 0 0 66px #2c6070, 0 0 0 130px #124759; pointer-events: none; }
.hero > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.hero-name { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.hero-name > strong { flex-shrink: 0; color: var(--hero-highlight); font-size: 1.2rem; font-weight: 750; line-height: 1.2; letter-spacing: .06em; }
.hero-name-expansion { max-width: 36ch; padding-left: 18px; border-left: 1px solid #527782; color: #d6e6eb; font-size: .9rem; line-height: 1.5; text-wrap: balance; }
.hero-name-expansion b { color: var(--hero-highlight); font-weight: 650; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; color: #d8e9ee; margin-bottom: 23px; font-size: .65rem; }
.eyebrow-line { height: 8px; width: 8px; flex-shrink: 0; background: var(--hero-highlight); border-radius: 50%; }
.hero h1 { margin-bottom: 26px; font-size: clamp(2.9rem, 4.45vw, 3.65rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.04; text-wrap: initial; }
.hero h1 span { color: var(--hero-highlight); }
.hero-intro { font-size: 1.05rem; line-height: 1.7; max-width: 53ch; }
.hero-description { font-size: .94rem; color: #c5dbe3; max-width: 57ch; margin-top: 17px; }
.discover-link { color: var(--hero-highlight); margin-top: 24px; }
.access-panel { align-self: center; color: var(--ink); padding: 32px; border: 1px solid #e2ebed; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px #001e302e; scroll-margin-top: 20px; }
.access-panel > .eyebrow { width: fit-content; color: #35646b; background: #e8f4ed; border-radius: 5px; padding: 6px 9px; font-size: .61rem; letter-spacing: .07em; }
.access-panel h2 { margin: 18px 0 12px; font-size: 2.15rem; letter-spacing: -.055em; overflow-wrap: anywhere; }
.access-panel > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.access-panel form label { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 7px; }
.access-panel input { width: 100%; min-width: 0; min-height: 50px; padding: 11px 13px; color: var(--ink); background: #f7fafc; border: 1px solid #a2b5bf; border-radius: 7px; font-size: 1rem; }
.access-panel input::placeholder { color: #697a85; opacity: 1; }
.access-panel input[aria-invalid="true"] { border-color: #a13e30; }
.access-panel .button { width: 100%; }
.access-panel form .button { margin-top: 13px; }
.access-secondary { display: block; padding: 15px 0 2px; font-size: .79rem; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.access-secondary:hover { color: var(--accent); }
.access-help { color: var(--muted); font-size: .76rem; margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); }
.access-help summary { cursor: pointer; padding-block: 7px; color: var(--ink); }
.access-help details p { margin: 7px 0 0; }
.form-error { color: #802a20; background: #f9e9e4; border-left: 3px solid #a13e30; margin-top: 10px; padding: 10px 12px; font-size: .85rem; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #477180; padding: 23px 0 25px; margin-top: 51px; font-size: .88rem; color: #c5dbe3; }
.hero-bottom strong { color: #fff; font-weight: 650; }
.hero-bottom .text-link { color: var(--hero-highlight); font-size: .82rem; flex-shrink: 0; }

.section { padding-block: 76px; }
.section .eyebrow { color: var(--accent); margin-bottom: 15px; }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; gap: 70px; align-items: end; }
.section-heading > p { color: var(--muted); font-size: .95rem; max-width: 46ch; }
.business-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.business-choices article { position: relative; border: 1px solid #e7dfd2; border-radius: 12px; padding: 27px; background: #f7f4ee; }
.choice-icon { display: block; width: 44px; height: 44px; margin-bottom: 26px; color: var(--hero); }
.choice-label { color: var(--ink); font-size: .68rem; font-weight: 650; letter-spacing: .035em; margin-bottom: 5px; }
.business-choices h3 { font-size: 1.15rem; letter-spacing: -.03em; font-weight: 750; margin-bottom: 12px; }
.business-choices article > p:last-child { color: #465b66; font-size: .9rem; }

.gameplay-section { background: var(--paper); }
.gameplay-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.console-preview { margin: 0; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 35px #153c4b15; transform: rotate(-2deg); }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 9px 9px 15px; font-size: .73rem; font-weight: 650; }
.preview-bar > span:last-child { color: var(--muted); font-weight: 400; font-size: .68rem; margin-left: auto; }
.preview-dot { width: 8px; height: 8px; background: #40936d; border-radius: 50%; }
.console-preview > a { display: block; border-radius: 5px; overflow: hidden; cursor: zoom-in; }
.console-preview img { display: block; width: 100%; height: auto; }
.console-preview figcaption { color: var(--muted); padding: 13px 9px 7px; font-size: .74rem; line-height: 1.6; }
.console-preview figcaption a { display: inline-flex; gap: 5px; color: var(--accent); margin-left: 7px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.gameplay-copy > p:not(.eyebrow) { color: var(--muted); font-size: .94rem; margin-top: 20px; }
.pace-note { display: flex; align-items: center; gap: 13px; padding: 15px 17px; margin-top: 23px; background: #e3edf3; border-radius: 8px; }
.pace-note > span { font-size: 1.7rem; color: var(--accent); }
.pace-note p { font-size: .8rem; }
.pace-note p + p { margin-top: 9px; }

/* Le dialogue natif garde le focus sur l’image agrandie et ses commandes. */
html.lightbox-open { overflow: hidden; }
.console-lightbox { width: min(1600px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 12px; color: var(--ink); background: var(--white); border: 0; border-radius: 12px; box-shadow: 0 24px 80px #001e3066; }
.console-lightbox::backdrop { background: #052531d9; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6px 12px; }
.lightbox-header h2 { font-size: 1rem; line-height: 1.3; letter-spacing: -.02em; }
.lightbox-header form { flex-shrink: 0; }
.lightbox-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; cursor: pointer; }
.lightbox-close:hover { background: #e3edf3; }
.lightbox-close span { font-size: 1.5rem; line-height: 1; }
.console-lightbox > img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; }

.personal-access { padding-block: 33px; border-bottom: 1px solid var(--line); }
.personal-inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.personal-access h2 { font-size: 1.15rem; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
.personal-access p { color: var(--muted); margin-top: 5px; max-width: 68ch; font-size: .88rem; }
.personal-access .text-link { flex-shrink: 0; font-size: .85rem; }
.site-footer { padding-block: 26px; }
.footer-inner { display: flex; align-items: center; gap: 25px; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer p { color: var(--muted); font-size: .78rem; }
.site-footer .text-link { margin-left: auto; font-size: .81rem; }

@media (max-width: 1100px) {
    .wrap { padding-inline: 36px; }
    .hero-grid { gap: 35px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .hero h1 { font-size: 3.15rem; }
    .hero-copy > .eyebrow { max-width: 40ch; }
    .access-panel { padding: 26px; }
    .gameplay-grid { gap: 40px; }
    .section-heading { gap: 40px; }
    .business-choices article { padding: 22px; }
}

@media (max-width: 900px) {
    .main-nav { gap: 20px; font-size: .79rem; }
    .header-inner { gap: 20px; }
    .hero h1 { font-size: 2.65rem; }
    .hero-intro { font-size: 1rem; }
    .hero-grid { gap: 27px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .access-panel { padding: 23px; }
    .access-panel h2 { font-size: 1.9rem; }
    .business-choices { gap: 15px; }
    .business-choices article { padding: 20px; }
    .gameplay-grid { grid-template-columns: minmax(0, 1fr); }
    .console-preview { max-width: 640px; margin-inline: auto; transform: none; }
    .gameplay-copy { max-width: 65ch; }
    .personal-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 88px; }
    .wrap { padding-inline: 24px; }
    .header-inner { min-height: 70px; gap: 16px; }
    .main-nav { display: none; }
    .brand { font-size: 1.25rem; gap: 9px; }
    .brand img { width: 29px; height: 29px; }
    .header-access { font-size: .75rem; padding: 9px 11px; gap: 8px; }
    .header-actions { gap: 14px; }
    .header-formation { font-size: .75rem; }
    .header-formation-full { display: none; }
    .header-formation-short { display: inline; }
    .hero { padding-top: 36px; }
    .hero-grid, .section-heading { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .hero h1 { font-size: clamp(2.4rem, 7.5vw, 3.7rem); }
    .hero-copy > .eyebrow { max-width: none; }
    .hero-name { gap: 13px; }
    .hero-name > strong { font-size: 1.05rem; }
    .hero-name-expansion { padding-left: 13px; font-size: .82rem; }
    .hero-intro, .hero-description { max-width: 60ch; }
    .access-panel { padding: 26px; }
    .hero-bottom { align-items: flex-start; flex-direction: column; gap: 11px; margin-top: 34px; }
    .hero-bottom .text-link { min-height: 36px; }
    .section { padding-block: 50px; }
    .section-heading { gap: 20px; }
    .section-heading > p { max-width: none; }
    .business-choices { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-top: 27px; }
    .business-choices article { padding: 24px; }
    .choice-icon { float: right; width: 39px; height: 39px; margin: 0 0 15px 15px; }
    .business-choices h3 { font-size: 1.2rem; text-wrap: initial; }
    .business-choices article > p:last-child { clear: both; }
    .gameplay-grid { gap: 32px; }
    .console-preview figcaption { padding: 10px 7px 5px; }
    .footer-inner { flex-wrap: wrap; gap: 13px 20px; }
    .site-footer .text-link { margin-left: 0; width: 100%; }
}

@media (max-width: 380px) {
    .wrap { padding-inline: 18px; }
    .brand { font-size: 1.1rem; gap: 7px; }
    .brand img { width: 26px; height: 26px; }
    .header-access { padding: 8px; gap: 6px; }
    .header-actions { gap: 10px; }
    .hero h1 { font-size: 2.25rem; }
    .access-panel { padding: 21px; }
    .preview-bar { font-size: .68rem; gap: 5px; }
    .preview-bar > span:last-child { font-size: .61rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
