/* Fratelli del mondo — Inter-Milan.fr, V4.0 */
.header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.language-switch{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 10px;border:1px solid #343b50;border-radius:4px;background:#0d1018;color:#f4f6fb;font-weight:700;font-size:.75rem;transition:border-color .18s,color .18s}
.language-switch:hover,.language-switch:focus-visible{border-color:var(--gold);color:var(--gold)}
.world-flag-small{width:24px;height:18px;object-fit:contain;display:inline-block;flex:none}
.lang-chevron{font-size:.9rem;color:var(--gold)}
.world-section{padding-block:52px 72px}
.world-teaser{display:flex;align-items:center;justify-content:space-between;gap:28px;background:#0d0f15;border:1px solid #30364a;border-left:4px solid var(--gold);border-radius:5px;padding:clamp(20px,4vw,36px)}
.world-teaser h2,.world-dialog h2{font-family:var(--display);font-size:clamp(29px,4vw,48px);font-weight:800;letter-spacing:-.025em;line-height:1.13;color:var(--ink);margin:10px 0}
.world-teaser h2 em,.world-dialog h2 em{color:var(--gold);font-style:normal}
.world-teaser p:not(.eyebrow){color:var(--muted);max-width:65ch;font-size:.95rem;line-height:1.6}
.world-teaser p:not(.eyebrow)+p{margin-top:7px}
.world-teaser .world-open{flex-shrink:0;gap:12px}
.world-details{margin-top:16px;background:#0e111a;border:1px solid #29334b;border-radius:5px;padding:14px 18px}
.world-details summary{cursor:pointer;color:var(--gold);font-weight:700;font-size:.9rem}
.world-details[open] summary{margin-bottom:20px}
html.world-dialog-open{overflow:hidden}
.world-dialog{width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);height:auto;padding:0;border:1px solid #363b4c;border-top:3px solid var(--gold);border-radius:9px;background:#0a0c12;box-shadow:0 20px 70px #000b;color:var(--ink);overflow:auto;overscroll-behavior:contain}
.world-dialog::backdrop{background:rgba(3,4,9,.86)}
.world-dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;position:sticky;top:0;z-index:3;padding:22px 28px 18px;background:#0a0c12;border-bottom:1px solid #282d3c}
.world-dialog-top h2{font-size:clamp(29px,3.8vw,46px);margin:6px 0}
.world-dialog-top h2:focus{outline:none}
.world-dialog-top p:not(.eyebrow){color:#d8dce7;font-size:.94rem}
.world-close{flex:none;width:42px;height:42px;display:grid;place-items:center;border:1px solid #414a60;background:#131722;border-radius:5px;color:#fff;font-size:1.55rem;line-height:1}
.world-close:hover,.world-close:focus-visible{border-color:var(--gold);color:var(--gold)}
.world-dialog #world-dialog-body{padding:24px 28px 28px}
.world-story{display:grid;grid-template-columns:minmax(0, .9fr) minmax(0,1.35fr);border:1px solid #31384a;background:#11141c;border-radius:5px;overflow:hidden}
.world-story-photo{min-height:240px;background:#06070b}
.world-story-photo img{width:100%;height:100%;object-fit:cover;object-position:center;filter:grayscale(100%);display:block}
.world-story-text{padding:22px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.world-story-text .world-motto{font-size:clamp(17px,2.1vw,24px);font-weight:700;line-height:1.35;color:var(--gold);letter-spacing:-.015em}
.world-story-text .world-attribution{font-size:.78rem;color:#acb5c7}
.world-story-text p:not(.eyebrow):not(.world-motto):not(.world-attribution){color:#dce1ea;font-size:.9rem;line-height:1.65}
.world-source,.world-method a{font-size:.79rem;color:var(--gold);text-decoration:underline;text-underline-offset:3px}
.world-group-label{margin:24px 0 11px}
.world-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.world-quick-link{display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:65px;background:#101522;border:1px solid #37415b;border-radius:5px;color:#f7f8fb;min-width:0;font-size:.93rem;font-weight:700}
.world-quick-link .world-flag{width:39px;height:30px;flex:none;object-fit:contain}
.world-quick-link small{margin-left:auto;font-size:.65rem;color:var(--gold);line-height:1.2;font-weight:600;text-align:right}
.world-quick-link[aria-current=page]{border-color:var(--gold);background:#171923}
.world-arrow{margin-left:auto;color:var(--gold);font-size:1.1rem}
.world-quick-link:hover,.world-quick-link:focus-visible{border-color:var(--gold);color:var(--gold)}
.world-divider{height:1px;background:#2c3141;margin:24px 0}
.world-grid-head{display:grid;grid-template-columns:1fr minmax(240px, .7fr);gap:24px;align-items:start;margin-bottom:18px}
.world-grid-head p:not(.eyebrow){color:var(--muted);font-size:.83rem;line-height:1.6;margin-top:7px}
#world-controls{display:flex;flex-direction:column;gap:7px;min-width:0}
#world-controls label{font-size:.78rem;font-weight:600;color:#dce1eb}
#world-search{height:40px;width:100%;min-width:0;border:1px solid #404a62;border-radius:4px;color:#fff;background:#080a10;padding:8px 10px;font-size:.83rem}
#world-search::placeholder{color:#aab3c7}
.world-check{display:flex;align-items:center;gap:6px;cursor:pointer}
.world-check input{accent-color:var(--blue)}
.world-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:10px}
.world-country{min-width:0;min-height:105px;border:1px solid #303649;background:#11141d;border-radius:5px;padding:12px;display:flex;flex-direction:column;gap:9px}
.world-country-heading{display:flex;align-items:center;gap:9px;font-weight:700;font-size:.86rem;color:#f1f3f9;min-width:0;line-height:1.25}
.world-country-heading .world-flag{width:36px;height:28px;object-fit:contain;flex:none;display:block}
.world-country-heading span{overflow-wrap:anywhere;min-width:0}
.world-country-langs{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.world-lang-chip,.world-lang-pending{display:inline-flex;align-items:center;font-size:.72rem;line-height:1.25;min-width:0;overflow-wrap:anywhere;border-radius:3px;padding:5px 7px}
.world-lang-chip{background:#101f55;color:#e1e9ff;border:1px solid #3551b8;font-weight:650;min-height:30px}
.world-lang-chip:hover,.world-lang-chip:focus-visible,.world-lang-chip[aria-current=page]{border-color:var(--gold);color:var(--gold);background:#211c15}
.world-lang-pending{color:#b4bdce;border:1px solid #333849;background:#0a0d14}
.world-country-note{color:#aab2c3;font-size:.68rem;line-height:1.35}
.world-method{margin-top:20px;padding:15px 0 0;border-top:1px solid #292f42;font-size:.78rem;line-height:1.6;color:var(--muted)}
.world-method p+p{margin-top:9px}
.world-footer-link{color:var(--gold)!important}
#world-empty{color:var(--gold);font-size:.9rem;margin-bottom:15px}
@media (max-width:1050px){.topbar nav{gap:20px}.header-actions{gap:8px}.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:850px) and (min-width:721px){.top-inner{width:calc(100% - 44px);gap:12px}.topbar nav{gap:12px}.topbar nav a{font-size:.78rem}.header-actions .site-link{padding:10px}.language-switch{padding:7px}}
@media (max-width:720px){.header-actions{gap:6px}.language-switch{min-height:36px;padding:6px;gap:4px}.language-switch .lang-chevron{display:none}.world-flag-small{width:22px;height:16px}.world-section{padding-block:36px}.world-teaser{align-items:flex-start;flex-direction:column;gap:18px}.world-teaser .world-open{width:100%}.world-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:7px}.world-dialog-top{padding:16px 16px 13px;gap:10px}.world-dialog-top h2{font-size:28px}.world-dialog-top p:not(.eyebrow){font-size:.82rem}.world-dialog #world-dialog-body{padding:16px}.world-story{grid-template-columns:1fr}.world-story-photo{min-height:0;max-height:210px;aspect-ratio:16/9}.world-story-text{padding:16px}.world-quick{grid-template-columns:1fr}.world-quick-link{min-height:52px;padding:9px 12px}.world-grid-head{grid-template-columns:1fr;gap:12px}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.world-country{padding:10px;min-height:104px}.world-country-heading{font-size:.78rem;gap:7px}.world-country-heading .world-flag{width:28px;height:22px}.world-details{padding:12px}.world-details .world-story-text{padding:12px}}
@media (max-width:440px){.language-switch .lang-code{display:none}.header-actions .site-link{padding:8px 6px;font-size:.61rem}.header-actions{gap:5px}.top-inner{gap:5px}.language-switch{padding:6px 7px;min-width:35px}.brand b{font-size:.81rem}.brand small{font-size:.47rem;letter-spacing:.1em}.brand-logo{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.language-switch{transition:none}}

/* Language choice comes first; history remains immediately below. */
.world-content>.world-group-label{margin:0 0 11px}.world-content>.world-story{margin-top:20px}
@media (max-width:720px){.world-quick{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.world-quick-link{flex-direction:column;justify-content:center;gap:4px;padding:8px 4px;min-height:84px;font-size:.73rem;text-align:center}.world-quick-link .world-flag{width:32px;height:24px}.world-quick-link small{margin-left:0;text-align:center;font-size:.56rem}.world-quick-link .world-arrow{margin:0;font-size:.75rem}.world-content>.world-story{margin-top:14px}.world-story-photo{max-height:160px}}

/* V4.1 — faire du chiffre des nationalités la signature de Fratelli del mondo. */
.world-teaser .world-tagline, .world-dialog-top .world-tagline {
  font-size:clamp(1.02rem,1.8vw,1.23rem);font-weight:700;line-height:1.35;color:var(--ink);
}
.world-tagline strong{color:var(--gold);font-weight:800}
.world-dialog-top .world-purpose{margin-top:7px;max-width:83ch;font-size:.85rem;line-height:1.5;color:var(--muted)}
.world-story-text .world-source{font-weight:700;line-height:1.5;align-self:flex-start}
.world-story-text .world-source:hover,.world-story-text .world-source:focus-visible{color:var(--ink)}
.world-grid-head .eyebrow{font-size:.87rem;font-weight:800;letter-spacing:.065em;line-height:1.4}
@media (max-width:720px){
 .world-dialog-top .world-tagline{font-size:1rem}
 .world-dialog-top .world-purpose{font-size:.77rem;line-height:1.45}
 .world-grid-head .eyebrow{font-size:.8rem}
}


/* V4.1.1 — Fratelli del mondo : espace utile et photo intégrale sur mobile. */
@media (max-width:720px) {
  .world-dialog {
    width:calc(100vw - 12px);
    max-height:calc(100dvh - 12px);
  }
  .world-dialog-top {
    position:relative;
    top:auto;
    display:block;
    padding:12px 12px 10px;
  }
  .world-dialog-top > div {width:100%;min-width:0;}
  .world-dialog-top .eyebrow,
  .world-dialog-top h2 {padding-right:46px;}
  .world-dialog-top .eyebrow {font-size:.64rem;line-height:1.3;}
  .world-dialog-top h2 {font-size:clamp(23px,6.1vw,29px);line-height:1.12;margin:4px 0 5px;}
  .world-dialog-top .world-tagline {font-size:.91rem;line-height:1.3;}
  .world-dialog-top .world-purpose {margin-top:5px;max-width:none;font-size:.77rem;line-height:1.4;}
  .world-dialog-top .world-close {position:absolute;top:10px;right:10px;width:40px;height:40px;}
  .world-dialog #world-dialog-body {padding:10px 12px 14px;}
  .world-content>.world-group-label {margin:0 0 7px;}
  .world-quick {gap:6px;}
  .world-quick-link {min-height:70px;gap:3px;padding:6px 3px;}
  .world-content>.world-story {margin-top:12px;}
  .world-story {grid-template-columns:minmax(0,1fr);}
  .world-story-photo {width:100%;min-width:0;min-height:0;max-height:none;height:auto;aspect-ratio:auto;}
  .world-story-photo img {width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain;display:block;}
  .world-story-text {min-width:0;padding:12px;gap:7px;}
  .world-story-text .world-motto {font-size:clamp(16px,4.2vw,20px);line-height:1.35;}
  .world-story-text .world-attribution {font-size:.73rem;line-height:1.45;}
  .world-story-text p:not(.eyebrow):not(.world-motto):not(.world-attribution) {font-size:.84rem;line-height:1.5;}
  .world-story-text .world-source {font-size:.76rem;line-height:1.4;}
  .world-divider {margin:15px 0;}
  .world-grid-head {gap:9px;margin-bottom:12px;}
  .world-grid-head p:not(.eyebrow) {margin-top:5px;line-height:1.45;}
  #world-controls {gap:5px;}
  .world-country {min-height:0;padding:10px;gap:7px;}
}

/* V4.1.1 — libellés compacts, sans débordement à faible largeur. */
@media (max-width:720px) {
  .world-dialog-top h2 {font-size:clamp(21px,5.8vw,28px);letter-spacing:-.02em;}
  .world-dialog-top .world-tagline {font-size:clamp(.78rem,3.55vw,.91rem);}
  .world-story-text .world-source {font-size:.76rem;overflow-wrap:anywhere;}
  .world-grid-head .eyebrow {letter-spacing:.035em;font-size:.75rem;}
  .world-dialog .world-story-text {padding:10px 12px;}
}
