body .ed-header {
  position: relative;
  z-index: 5;
  grid-template-columns: auto minmax(140px, 1fr) auto auto;
  grid-template-areas: "brand search preferences actions";
  align-items: center;
  gap: 16px clamp(14px, 2vw, 30px);
  padding-block: 14px;
}
.ed-header > a:first-child { grid-area: brand; }
body .ed-header .ed-search {
  grid-area: search;
  display: flex;
  min-width: 0;
  width: 100%;
  border-color: #bda78e60;
  border-radius: 5px;
}
body .ed-header .ed-search input,
body .ed-header .ed-search button {
  min-height: 40px;
  padding: 7px 10px;
  font-size: 14px;
}
body .ed-header .ed-search input { min-width: 0; }
.home-header-preferences {
  grid-area: preferences;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  color: #f7f2e9;
}
.home-header-preferences label, .home-zone-toggle {
  display: grid;
  position: relative;
  min-width: 0;
  align-content: center;
  text-align: left;
  border: 1px solid #bda78e65;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: 400 14px/1.25 Inter, Arial, sans-serif;
  padding: 6px 11px;
}
.home-header-preferences label > span, .home-preference-label {
  font-size: 11px;
  color: #e0ac86;
  margin-bottom: 2px;
}
.home-header-preferences select {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  color-scheme: dark;
  font: inherit;
  padding: 0;
}
.home-zone-toggle { min-width: 110px; padding-right: 25px; cursor: pointer; }
#home-zone-current { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 120px; }
.home-chevron {
  position: absolute;
  right: 10px;
  top: 52%;
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
}
.home-header-tools {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #f7f2e9;
  font-size: 14px;
}
.home-cycle-menu summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #bda78e65;
  border-radius: 5px;
  padding: 5px 11px;
  cursor: pointer;
  list-style: none;
}
.home-cycle-menu summary::-webkit-details-marker { display: none; }
.home-help { color: inherit; text-underline-offset: 4px; padding: 8px 3px; }
.home-cycle-menu nav {
  position: absolute;
  inset: 100% 22px auto;
  padding: 20px;
  color: var(--ink);
  background: #faf5eb;
  border: 1px solid #baa38e;
  box-shadow: 0 14px 24px #211e1a24;
}
.home-cycle-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}
.home-cycle-links a, .home-menu-secondary a { color: inherit; text-underline-offset: 3px; }
.home-cycle-links p { font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.home-menu-secondary { display: flex; flex-wrap: wrap; gap: 9px 20px; padding-top: 12px; border-top: 1px solid #baa38e; font-size: 14px; }
@media (max-width: 800px) {
  body .ed-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "preferences preferences" "search search";
    gap: 10px 12px;
    padding-block: 12px;
  }
  body .ed-header > a:first-child img { width: min(135px, 100%); }
  .home-zone-toggle { min-width: 0; }
  #home-zone-current { max-width: none; }
  .home-cycle-menu nav { max-height: 65vh; overflow: auto; }
  .home-cycle-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
body .ed-magazine { background: #201d19; }
body .ed-magazine .home-journal-scene {
  position: relative;
  aspect-ratio: 3 / 2;
  padding: 0;
  background: url("/premium/composition/media/poutre-web.webp") center / 100% 100% no-repeat;
}
body .ed-magazine .home-journal-scene img {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: auto;
  height: 73%;
  max-width: 78%;
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 8px 8px 18px #0008;
}
body .ed-resources { padding-block: 28px 30px; }
body .ed-resources h2 { margin-bottom: 14px; }
body .ed-resources nav { margin-bottom: 14px; }
body .ed-resources nav a { padding-block: 9px; }
.home-catalogue { margin: 0; }
.home-zone-radar { margin-left: 14px; }
@media (max-width: 800px) {
  .home-zone-radar { display: block; margin-left: 0; }
}
.home-cycle-menu summary::after { content: "⌄"; margin-left: 8px; }
.home-cycle-menu[open] summary::after { transform: rotate(180deg); }
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}
.home-actions .ed-button { margin: 0; text-align: center; justify-content: center; }
.home-actions .home-zone-radar { margin-left: 0; }
body .ed-button.home-outline {
  background: transparent;
  border: 1px solid #a4846d;
  color: inherit;
}
body .ed-button.home-outline:hover { background: #b3846322; }
.home-film-dialog {
  width: min(860px, calc(100% - 28px));
  max-height: 90vh;
  padding: clamp(12px, 3vw, 26px);
  background: #f7f2e9;
  color: #211e1a;
  border: 1px solid #a4846d;
}
.home-film-dialog::backdrop { background: #211e1acc; }
.home-film-dialog > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-film-dialog h2 { margin: 0; font-size: clamp(20px, 3vw, 30px); }
.home-film-dialog video { display: block; width: 100%; max-height: 70vh; background: #211e1a; }

#home-zone-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 24px));
  max-height: min(82vh, 760px);
  margin: auto;
  padding: clamp(17px, 4vw, 30px);
  border: 1px solid #baa38e;
  border-radius: 8px;
  background: #faf5eb;
  color: #211e1a;
}
#home-zone-dialog::backdrop { background: #211e1ab8; }
.home-zone-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-zone-kicker { margin: 0 0 6px; color: #93441f; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
#home-zone-title { margin: 0; font: 700 clamp(24px, 5vw, 34px)/1.15 "Playfair Display", Georgia, serif; }
.home-zone-close, .home-zone-option {
  min-height: 44px;
  border: 1px solid #c4af97;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.home-zone-close { padding: 4px 10px; font-size: 14px; }
.home-zone-search { margin-block: 18px 14px; }
.home-zone-search label { display: block; margin-bottom: 5px; font-size: 14px; }
.home-zone-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #b6a18a;
  border-radius: 5px;
  background: #fffaf1;
  color: inherit;
  font: inherit;
}
.home-zone-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-zone-option { text-align: left; padding: 9px 11px; overflow-wrap: anywhere; }
.home-zone-option:has(.home-zone-flag) { display: flex; align-items: center; gap: 9px; }
.home-zone-flag { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.home-zone-option-name { min-width: 0; }
.home-zone-option:hover, .home-zone-close:hover { background: #eadcc9; }
.home-zone-option[aria-pressed="true"] { background: #82401f; color: #fff8ea; border-color: #82401f; }
.home-zone-option[aria-pressed="true"]::after { content: " ✓"; }
#home-zone-dialog :focus-visible { outline: 2px solid #93441f; outline-offset: 2px; }
body .home-section-heading {
  padding-block: clamp(34px, 5vw, 64px) 0;
  border-bottom: 0;
}
body .home-section-heading h2,
body .ed-support h2.home-section-title {
  margin: 0;
  font-size: clamp(39px, 5.15vw, 74px);
  line-height: 1.01;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
body .home-section-heading h2 {
  padding-bottom: 15px;
  border-bottom: 1px solid #b1896e;
}
body .home-radar { padding-top: clamp(20px, 2.4vw, 35px); }
body .home-radar .home-product-heading,
body #salle-accueil .home-product-heading {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.1;
}
.home-radar-plan h4 {
  font: 700 clamp(23px, 2vw, 30px)/1.15 "Playfair Display", Georgia, serif;
  letter-spacing: -.02em;
  margin: 4px 0 8px;
}
body .ed-support .home-section-promise {
  color: #efbc98;
  font-size: clamp(17px, 1.85vw, 24px);
  margin: 12px 0 22px;
}
#home-zone-dialog .home-zone-radar {
  display: inline-block;
  color: #82401f;
  font-size: 14px;
  margin: 6px 0 0;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.home-zone-regions details { border-top: 1px solid #d9c8b4; }
.home-zone-regions summary {
  cursor: pointer;
  padding: 11px 3px;
  min-height: 44px;
  box-sizing: border-box;
  font-weight: 600;
}
.home-zone-regions details details { margin-left: 16px; }
.home-zone-regions .home-zone-list { padding-bottom: 10px; }
.home-zone-option:disabled { color: #62574b; cursor: default; background: #eee5d8; }
.home-zone-option:disabled span { display: block; font-size: 12px; }
body .home-film-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 430px;
  gap: 8px;
}
body .home-film-actions .ed-button { min-height: 48px; padding-inline: 8px; }

/* Sélecteur de langue : drapeaux locaux (drapeaux/langues), nom de la langue à côté. */
.home-language-menu { position: relative; }
.home-language-toggle { list-style: none; }
.home-language-toggle::-webkit-details-marker { display: none; }
.home-language-current { display: flex; align-items: center; gap: 7px; }
.home-language-flag { width: 24px; height: 16px; flex: 0 0 24px; object-fit: cover; border: 1px solid #ffffff2b; }
.home-language-list { position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #211e1b; border: 1px solid #bda78e65; border-radius: 5px; }
.home-language-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: #f7f0e6; font: 400 15px/1.3 Inter, Arial, sans-serif; text-align: left; cursor: pointer; }
.home-language-list button[aria-pressed="true"], .home-language-list button:hover { background: #ffffff17; }
.home-language-list button:focus-visible, .home-language-toggle:focus-visible { outline: 3px solid #e0ac86; outline-offset: 2px; }

