/*
Theme Name: Atout
Description: Lightweight bilingual WordPress theme for Atout Service France.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: atout
*/

:root {
    --ink: #12282f;
    --body: #364d53;
    --muted: #4c646a;
    --paper: #f7f6f1;
    --surface: #fffefa;
    --rule: #d6ddd9;
    --navy: #18343e;
    --blue: #224957;
    --accent: #c3a46f;
    --max-width: 1184px;
    --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: 20px; }
.shell { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: 16px; padding: 10px 15px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); background: var(--surface); }
.site-header .shell, .site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-weight: 720; line-height: 1.15; white-space: nowrap; }
.brand-mark { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 2px; background: var(--navy); color: white; font: 26px/1 Georgia, serif; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 640; }
.site-nav, .language-switch { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(14px, 2.7vw, 34px); font-size: 14px; }
.site-nav a, .language-switch a { display: inline-block; padding-block: 6px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .language-switch a:hover, .language-switch [aria-current=page] { text-decoration: underline; }
.language-switch { gap: 12px; border-left: 1px solid var(--rule); padding-left: 16px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr);
    gap: clamp(26px, 5.2vw, 72px);
    align-items: center;
    margin-top: clamp(20px, 2.3vw, 34px);
    padding: clamp(34px, 6vw, 78px) clamp(24px, 5.1vw, 68px);
    background: var(--navy);
    color: #fff;
    border-radius: 4px;
}
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 720; letter-spacing: .06em; }
.hero .eyebrow { color: #e4cfa8; }
.hero h1 { margin-top: 13px; font-size: clamp(42px, 5.4vw, 70px); line-height: 1.08; letter-spacing: -.055em; font-weight: 680; text-wrap: balance; }
:lang(zh-CN) .hero h1 { font-size: clamp(34px, 4.65vw, 65px); line-height: 1.2; letter-spacing: -.05em; }
.hero-intro { max-width: 56ch; margin-top: 20px; color: #e7efec; font-size: clamp(17px, 1.6vw, 20px); }
.hero-note { margin-top: 13px; color: #c8d8d8; font-size: 14px; }
.hero-scope { border-left: 1px solid #6d858b; padding-left: clamp(20px, 3.4vw, 42px); color: #d5e0df; font-size: 15px; }
.hero-scope .hero-place { color: #fff; font-size: 23px; font-weight: 670; line-height: 1.2; }
.hero-scope .hero-place:not(:first-child) { margin-top: 22px; }
.hero-scope .hero-place + p { margin-top: 5px; }
.hero-scope-link { margin-top: 19px; color: #e4cfa8; font-size: 14px; font-weight: 650; }
.wp-block-buttons { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.hero .wp-block-buttons, .contact .wp-block-buttons { margin-top: 23px; }
.wp-block-button__link { display: inline-block; padding: 12px 17px; border: 1px solid var(--navy); border-radius: 3px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.wp-block-button__link:hover { background: var(--blue); border-color: var(--blue); }
.hero .wp-block-button__link { background: #e7d0a6; border-color: #e7d0a6; color: var(--ink); }
.hero .wp-block-button__link:hover { background: #f2dfbd; border-color: #f2dfbd; }
.hero .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #89a0a3; }
.hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #2d4d56; }
.section { padding-block: clamp(43px, 5.7vw, 80px); border-bottom: 1px solid var(--rule); }
.section h2 { font-size: clamp(29px, 3.5vw, 44px); font-weight: 675; line-height: 1.16; letter-spacing: -.04em; }
.section h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 685; line-height: 1.3; }
.section > p { max-width: 82ch; margin-top: 13px; color: var(--body); }
.section > .eyebrow { color: var(--blue); }
.scenario-grid, .services-grid, .division-grid, .case-grid, .scope-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.scenario-grid, .division-grid, .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-grid, .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scenario, .service, .scope-item { padding: clamp(18px, 2.3vw, 29px); }
.scenario { display: flex; flex-direction: column; border: 1px solid var(--rule); border-top: 3px solid var(--blue); background: var(--surface); }
.scenario > p, .service > p, .division-item > p, .case-step > p, .scope-item > p, .workflow > p { margin-top: 9px; color: var(--body); }
.scenario .scenario-question { color: var(--ink); font-weight: 600; }
.scenario .delivery { padding-top: 10px; border-top: 1px solid var(--rule); }
.delivery strong { display: block; color: var(--blue); font-size: 13px; }
.scenario .service-link { margin-top: auto; padding-top: 13px; color: var(--blue); font-size: 14px; font-weight: 675; }
.service-link a + a { margin-inline-start: 10px; }
.service { border: 1px solid var(--rule); border-radius: 3px; background: #edf0eb; align-self: start; }
.service:target { outline: 2px solid var(--blue); outline-offset: 2px; }
.service details { margin-top: 15px; }
.service summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 675; }
.service details > p { margin-top: 9px; color: var(--body); }
.division-item { border-top: 1px solid var(--rule); padding-top: 13px; }
.section > .boundary { margin-top: 24px; color: var(--muted); font-size: 14px; }
.position { padding-inline: clamp(19px, 4.6vw, 55px); margin-top: clamp(24px, 4vw, 44px); border: 1px solid #ded5c4; border-left: 4px solid var(--accent); background: #f1ede4; }
.example { border-bottom-color: var(--rule); }
.case-step { padding-block: 15px 0; border-top: 2px solid var(--accent); }
.workflow { margin-top: 26px; padding: 19px clamp(16px, 3vw, 28px); border: 1px solid var(--rule); background: var(--surface); }
.workflow h3 { font-size: 17px; }
.scope-item { border: 1px solid var(--rule); border-radius: 3px; background: var(--surface); }
.contact { border-bottom: 0; }
.section > .contact-note { color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.site-footer a { overflow-wrap: anywhere; }
.page-title { margin-block: 48px 24px; }
@media (max-width: 840px) {
    .site-header .shell { flex-wrap: wrap; gap: 6px 12px; }
    .site-nav { order: 3; width: 100%; gap: 0 15px; }
    .language-switch { border-left: 0; padding-left: 0; }
    .hero { grid-template-columns: 1fr; }
    .hero h1 { max-width: 20ch; }
    .hero-scope { border-left: 0; border-top: 1px solid #6d858b; padding: 17px 0 0; }
    .hero-scope .hero-place:not(:first-child) { margin-top: 13px; }
}
@media (max-width: 650px) {
    :lang(zh-CN) .site-nav { column-gap: 11px; font-size: 13px; }
    .scenario-grid, .services-grid, .division-grid, .case-grid, .scope-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(31px, 8.5vw, 45px); }
    :lang(zh-CN) .hero h1 { font-size: clamp(28px, 7.55vw, 42px); }
    .site-footer .shell { align-items: flex-start; flex-direction: column; gap: 7px; }
}
