/* Fonds adaptés aux formats : horizontal sur grand écran, portrait sur tablette/téléphone. */
/* Phase 1 : garder les liens de l'accueil dans la surface visible. */
@media (min-width: 1001px) {
  body.home nav.sopota-navigation-basse {
    position: fixed !important;
    inset: auto 24px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 45;
  }
  body.home nav.sopota-navigation-basse a {
    position: static !important;
    transform: none !important;
    max-width: calc(50% - 8px) !important;
    font-size: clamp(1.2rem, 2vw, 2rem) !important;
    line-height: 1.2 !important;
  }
}
body:is(.home, .sopota-standard-page, .sopota-article-page) { min-height: 100vh; background-color: #f3ead2; background-image: url('/wp-content/uploads/2026/10/page-garde-horizontale.png'); background-repeat: no-repeat; background-position: center center; background-size: cover; background-attachment: fixed; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .wp-site-blocks { min-height: 100vh; padding: 8px 0 0; background: transparent; }
body:is(.home, .sopota-standard-page, .sopota-article-page) #haut { width: 100%!important; max-width: none!important; padding-left: 0!important; padding-right: 0!important; }

/* Accueil — ordinateur. */
body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part { width: min(1120px, calc(100vw - 32px)); max-width: none; margin: 0 auto; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part > .wp-block-group.alignwide { width: 100%; max-width: none; margin: 0; padding: 4px 10px; background: transparent; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part > .wp-block-group.alignwide > .wp-block-group.alignwide { display: grid!important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr)!important; align-items: center!important; column-gap: 16px!important; width: 100%!important; max-width: none!important; min-height: 56px!important; margin: 0!important; padding: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title { grid-column: 2!important; grid-row: 1!important; align-self: center!important; justify-self: end!important; width: auto!important; max-width: 100%!important; margin: 0!important; padding: 0!important; text-align: right!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title a { font-size: clamp(1.8rem, 3.3vw, 2.55rem)!important; line-height: 1.05!important; letter-spacing: -.025em!important; white-space: nowrap!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation { grid-column: 1!important; grid-row: 1!important; align-self: center!important; justify-self: end!important; width: auto!important; max-width: 100%!important; margin: 0!important; padding: 0!important; font-size: clamp(1.25rem, 1.7vw, 1.5rem)!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container { display: flex; flex-wrap: nowrap; gap: 0; width: auto; max-width: 100%; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container > li:nth-child(2) { display: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation-item__content { padding: 6px 10px; font-size: inherit; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container-open, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container-close { display: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container:not(.is-menu-open) { position: static; display: block; visibility: visible; width: auto; height: auto; overflow: visible; background: transparent; opacity: 1; transform: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-close, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-dialog, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container-content { position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; background: transparent; box-shadow: none; transform: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search { width: min(560px, 58vw); max-width: calc(100vw - 40px); margin: 10px auto 0; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__inside-wrapper { display: flex; width: 100%; max-width: 100%; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__input { flex: 1 1 auto!important; min-width: 0!important; min-height: 48px!important; padding: 9px 16px!important; background: rgba(255,255,255,.25)!important; font-size: 20px!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__button { flex: 0 0 52px; min-width: 52px; min-height: 48px; padding: 0; }
body:is(.home, .sopota-standard-page, .sopota-article-page) main.wp-block-group { display: block!important; width: min(1120px, calc(100vw - 32px))!important; max-width: none!important; margin: 6px auto 0!important; padding: 0!important; background: transparent!important; border: 0!important; border-radius: 0!important; box-shadow: none!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) main.wp-block-group > .entry-content { display: block!important; width: 100%!important; max-width: none!important; margin: 0!important; padding: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-contenu { display: flex!important; align-items: center!important; width: 100%!important; max-width: none!important; min-height: 280px!important; margin: 0!important; padding: 4px 0!important; background: transparent!important; border: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens { display: grid!important; grid-template-columns: repeat(2, minmax(0, 1fr))!important; column-gap: clamp(20px, 2.4vw, 34px)!important; row-gap: 0!important; width: min(700px, calc(100% - 300px))!important; max-width: 700px!important; margin: 0 0 0 clamp(100px, 18vw, 210px)!important; padding: 0!important; background: transparent!important; border: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 55px!important; padding: 6px 8px!important; border: 0; border-bottom: 1px solid rgba(18,60,55,.4); border-radius: 0; background: transparent; box-shadow: none; color: #123f3a; font-size: clamp(1.3rem, 1.9vw, 1.625rem)!important; font-weight: 650!important; line-height: 1.25!important; text-decoration: none!important; text-shadow: 0 1px 4px rgba(255,255,255,.8)!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens .fleche { margin-left: 12px; font-size: 1.4rem; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-publicitaire { position: relative!important; left: auto!important; transform: none!important; display: block!important; width: 100%!important; max-width: 100%!important; height: 64px!important; min-height: 64px!important; margin: max(0px, calc(88vh - 491px)) 0 0!important; padding: 0!important; background: transparent!important; border: 0!important; border-radius: 0!important; box-shadow: none!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1040px, calc(100vw - 80px)); margin: 0 auto 0; padding: 0; background: transparent; border: 0; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a { color: #123f3a; font-size: 1rem; font-weight: 700; text-decoration: none; text-shadow: 0 1px 5px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.9); }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:hover { text-decoration: underline; }
body:is(.home, .sopota-standard-page, .sopota-article-page) footer.wp-block-template-part { display: none; }


/* Téléphone ou tablette en paysage : le visuel horizontal convient mieux. */
@media (max-width: 1000px) and (orientation: landscape) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) { background-image: url('/wp-content/uploads/2026/10/page-garde-horizontale.png'); background-position: center center; background-size: cover; background-attachment: scroll; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(700px, calc(100% - 250px)); max-width: 700px; margin-left: clamp(24px, 8vw, 100px); }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { min-height: 48px; font-size: clamp(1rem, 2vw, 1.2rem); }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-publicitaire { margin-top: 18px; }
}

/* Journal — ordinateur. */
.sopota-journal { top: calc(88vh - 32px); }
.sopota-journal__message { font-size: 25px; margin-right: clamp(100px, 12vw, 168px); }
.sopota-journal__track { animation-duration: 16s; }

/* Ajustement ciblé de l’accueil ordinateur, validé le 23/10/2026. */
@media (min-width: 1001px) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens {
    width: min(900px, calc(100% - 180px)) !important;
    max-width: 900px !important;
    margin: 38px 0 0 120px !important;
  }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a {
    min-height: 68px !important;
    font-size: clamp(1.5rem, 2.2vw, 1.875rem) !important;
  }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse {
    display: block !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: none !important;
    height: 2.4rem !important;
    box-sizing: border-box !important;
  }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a {
    position: absolute !important;
    top: 0 !important;
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    transform: translateX(-50%) !important;
  }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:first-child { left: 7.94% !important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:last-child { left: 91.16% !important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a {
    font-size: 2rem;
    line-height: 1.2;
  }
}


/* Taille accrue : rubriques et journal, ordinateur. Le bord inférieur du journal reste fixe. */
@media (min-width: 1001px) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { font-size: clamp(1.65rem, 2.5vw, 2.125rem) !important; }
  .sopota-journal { top: calc(88vh - 62px) !important; height: 94px !important; }
  .sopota-journal__message { font-size: 50px !important; line-height: 1.2 !important; }
  .sopota-journal__toggle { top: calc(50% + 15px); }
}
@media (max-width: 1000px) and (orientation: landscape) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { font-size: clamp(1.1rem, 2.1vw, 1.35rem) !important; }
  .sopota-journal { top: calc(88vh - 60px) !important; height: 92px !important; }
  .sopota-journal__message { font-size: 46px !important; line-height: 1.2 !important; }
  .sopota-journal__toggle { top: calc(50% + 14px); }
}



/* Repères de bas de page sur l’accueil : copyright centré, mentions en blanc. */
@media (min-width: 1001px) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:first-child {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 7px rgba(0,0,0,.65) !important;
  }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:last-child {
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 7px rgba(0,0,0,.65) !important;
}
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-copyright {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #123f3a !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 2.4rem !important;
    text-shadow: 0 1px 4px rgba(255,255,255,.95) !important;
    white-space: nowrap !important;
  }
}

body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container > li:first-child .wp-block-navigation-item__content { font-weight: 700 !important; }

/* Modèle commun des pages intérieures — ordinateur. */
body.sopota-standard-page .sopota-standard-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 14px !important;
  min-height: 280px !important;
  padding: 20px clamp(18px, 7vw, 96px) !important;
}
body.sopota-standard-page .sopota-standard-content h1 {
  margin: 0 !important;
  color: #123f3a !important;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem) !important;
  line-height: 1.15 !important;
}
body.sopota-standard-page .sopota-standard-content .wp-block-post-content {
  width: min(100%, 900px) !important;
  margin: 0 !important;
  color: #123f3a !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.55 !important;
}
body.sopota-standard-page .sopota-retour-accueil {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 15px;
  border: 1px solid rgba(18,63,58,.7);
  border-radius: 24px;
  background: rgba(255,255,255,.18);
  color: #123f3a;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(255,255,255,.8);
}
body.sopota-standard-page footer.wp-block-template-part { display: none !important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container > li:first-child .wp-block-navigation-item__content { font-weight: 700 !important; }

/* © placé à la suite du lien « Mentions légales ». */
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse .sopota-copyright {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-block !important;
  margin-left: .18em !important;
  color: inherit !important;
  font-size: .75em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-shadow: inherit !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
}
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:last-child { font-weight: 400 !important; }

/* Retour à l’accueil : sur la ligne de recherche, ordinateur. */
@media (min-width: 1001px) {
  body.sopota-standard-page #haut { position: relative !important; }
  body.sopota-standard-page main.sopota-standard-main { position: static !important; }
  body.sopota-standard-page .sopota-retour-accueil {
    position: absolute !important;
    z-index: 2 !important;
    top: 100px !important;
    left: auto !important;
    right: calc(50% + 324px) !important;
    display: inline-block !important;
    width: max-content !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #45625e !important;
    font: 700 20px/32px Manrope, sans-serif !important;
    text-shadow: 0 1px 4px rgba(255,255,255,.9) !important;
  }
}
@media (max-width: 1000px) and (orientation: landscape) {
  body.sopota-standard-page #haut { position: relative !important; }
  body.sopota-standard-page main.sopota-standard-main { position: static !important; }
  body.sopota-standard-page .sopota-retour-accueil {
    position: absolute !important;
    z-index: 2 !important;
    top: 100px !important;
    left: auto !important;
    right: calc(50% + min(280px, 29vw)) !important;
    display: inline-block !important;
    width: max-content !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #45625e !important;
    font: 300 20px/32px Manrope, sans-serif !important;
    text-shadow: 0 1px 4px rgba(255,255,255,.9) !important;
  }
}
/* Modèle d’article : colonne principale et liens illustrés facultatifs à gauche. */
body.sopota-article-page { min-height:100vh; }
body.sopota-article-page .wp-site-blocks { min-height:100vh; background:transparent; }
body.sopota-article-page main.sopota-article-main { width:min(1120px, calc(100vw - 80px)); max-width:none; margin:26px auto 0; padding:0; background:transparent; }
body.sopota-article-page .sopota-article-layout { display:block; width:100%; max-width:none; margin:0; padding:0; background:transparent; }
body.sopota-article-page .sopota-article-layout:has(.sopota-liens-associes) { display:grid; grid-template-columns:minmax(112px, 170px) minmax(0, 1fr); align-items:stretch; gap:clamp(22px, 3vw, 48px); }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode { display:flex; align-self:stretch; }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode:empty { display:none; }
body.sopota-article-page .sopota-liens-associes { display:grid; flex:1; grid-template-columns:minmax(0, 1fr); grid-template-rows:repeat(5, minmax(110px, 1fr)); align-items:center; justify-items:center; gap:0; width:100%; min-height:550px; height:100%; margin:0; padding:0; background:transparent; }
body.sopota-article-page .sopota-liens-associes--1 .sopota-article-link { grid-row:3; }
body.sopota-article-page .sopota-liens-associes--2 .sopota-article-link:nth-child(1) { grid-row:2; }
body.sopota-article-page .sopota-liens-associes--2 .sopota-article-link:nth-child(2) { grid-row:4; }
body.sopota-article-page .sopota-liens-associes--3 .sopota-article-link:nth-child(1) { grid-row:2; }
body.sopota-article-page .sopota-liens-associes--3 .sopota-article-link:nth-child(2) { grid-row:3; }
body.sopota-article-page .sopota-liens-associes--3 .sopota-article-link:nth-child(3) { grid-row:4; }
body.sopota-article-page .sopota-liens-associes--4 .sopota-article-link:nth-child(1) { grid-row:1; }
body.sopota-article-page .sopota-liens-associes--4 .sopota-article-link:nth-child(2) { grid-row:2; }
body.sopota-article-page .sopota-liens-associes--4 .sopota-article-link:nth-child(3) { grid-row:4; }
body.sopota-article-page .sopota-liens-associes--4 .sopota-article-link:nth-child(4) { grid-row:5; }
body.sopota-article-page .sopota-article-link { display:block; width:100%; max-width:150px; padding:0; background:transparent; border:0; text-align:center; }
body.sopota-article-page .sopota-article-link__image { display:block; width:auto; max-width:100%; max-height:110px; height:auto; margin:0 auto; object-fit:contain; }
body.sopota-article-page .sopota-article-main-column { min-width:0; max-width:900px; margin:0 auto; padding:clamp(18px, 2.5vw, 36px); color:#123f3a; background:rgba(255,249,230,.86); border-radius:8px; box-shadow:0 2px 14px rgba(24,52,46,.12); }
body.sopota-article-page .sopota-article-main-column > h1 { margin:0 0 18px; color:#123f3a; font-size:clamp(2rem, 3.4vw, 3.1rem); line-height:1.12; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { max-width:760px; margin:0 auto; font-size:clamp(1.06rem, 1.35vw, 1.25rem); line-height:1.68; }
body.sopota-article-page .sopota-article-main-column .sopota-resume { margin:0 0 1.8rem; padding:1rem 1.25rem; background:rgba(255,255,255,.48); border-left:4px solid #bb8e42; }
body.sopota-article-page .sopota-article-main-column figure { margin:1.5rem auto; }
body.sopota-article-page .sopota-article-main-column figure img { display:block; max-width:100%; max-height:560px; width:auto; height:auto; margin:0 auto; object-fit:contain; }
body.sopota-article-page .sopota-article-meta { display:flex; flex-wrap:wrap; gap:.25rem .6rem; align-items:baseline; margin:2rem 0 .25rem; padding-top:.8rem; border-top:1px solid rgba(18,63,58,.28); color:#31554f; font-size:.88rem; line-height:1.4; }
body.sopota-article-page .sopota-article-meta p { margin:0; }
body.sopota-article-page .sopota-article-meta a { color:inherit; }
body.sopota-article-page .sopota-retour-accueil { display:inline-flex; align-items:center; margin:0 0 14px; color:#45625e; font-size:1rem; font-weight:700; text-decoration:none; text-shadow:0 1px 4px rgba(255,255,255,.9); }
body.sopota-article-page .sopota-retour-accueil:hover { text-decoration:underline; }

/* Article : le cadre et ses commandes restent fixes ; seule la fenêtre centrale défile. */
html:has(body.sopota-article-page), body.sopota-article-page { height:100%; min-height:0!important; overflow:hidden!important; }
body.sopota-article-page .wp-site-blocks { height:100vh; min-height:0!important; padding:0!important; overflow:hidden!important; }
body.sopota-article-page #haut { position:relative!important; width:100vw!important; height:100vh!important; min-height:0!important; margin:0!important; overflow:hidden!important; }
body.sopota-article-page header.wp-block-template-part { position:relative; z-index:2; }
body.sopota-article-page main.sopota-article-main { position:static!important; width:100%!important; height:0!important; min-height:0!important; margin:0!important; padding:0!important; }
body.sopota-article-page .sopota-retour-accueil { position:absolute!important; z-index:5!important; top:100px!important; right:calc(50% + 324px)!important; left:auto!important; display:inline-block!important; width:max-content!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; color:#45625e!important; font:700 20px/32px Manrope,sans-serif!important; text-shadow:0 1px 4px rgba(255,255,255,.9)!important; }
body.sopota-article-page .sopota-article-layout { position:absolute!important; z-index:1!important; top:clamp(180px,25vh,210px)!important; right:auto!important; bottom:clamp(140px,17vh,170px)!important; left:1.8vw!important; display:grid!important; grid-template-columns:minmax(112px,144px) minmax(0,1fr)!important; align-items:stretch!important; gap:22px!important; width:min(76vw,1435px)!important; height:auto!important; max-width:none!important; min-height:0!important; margin:0!important; padding:0!important; overflow:auto!important; overflow-x:hidden!important; scrollbar-gutter:stable; overscroll-behavior:contain; background:transparent!important; }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode { display:flex!important; align-self:stretch!important; min-height:100%; }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode:empty { display:block!important; }
body.sopota-article-page .sopota-liens-associes { min-height:100%!important; height:100%!important; }
body.sopota-article-page .sopota-article-main-column { width:100%!important; max-width:none!important; min-height:100%!important; margin:0!important; box-sizing:border-box!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { width:100%!important; max-width:none!important; margin:0!important; }
body.sopota-article-page .sopota-article-main-column figure img { max-width:100%!important; }
body.sopota-article-page .sopota-zone-publicitaire { display:none!important; }
body.sopota-article-page .sopota-navigation-basse { position:absolute!important; z-index:4!important; bottom:0!important; left:50%!important; transform:translateX(-50%)!important; }
@media (max-width:1000px) and (orientation:landscape) {
 body.sopota-article-page .sopota-retour-accueil { top:90px!important; right:auto!important; left:12px!important; font-size:16px!important; }
 body.sopota-article-page .sopota-article-layout { top:145px!important; right:12px!important; bottom:118px!important; left:12px!important; width:auto!important; grid-template-columns:minmax(82px,100px) minmax(0,1fr)!important; gap:16px!important; }
}
body.sopota-article-page .sopota-article-main-column { grid-column:2!important; }

/* Ajustement typographique ciblé de l’article : titre un peu réduit, lecture renforcée. */
body.sopota-article-page .sopota-article-main-column > h1 { font-size:clamp(1.9rem,3.15vw,2.85rem)!important; font-weight:600!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { font-size:clamp(1.22rem,1.45vw,1.42rem)!important; font-weight:500!important; line-height:1.62!important; }
body.sopota-article-page .sopota-article-main-column .sopota-resume { font-weight:500!important; }

/* Fenêtre de lecture : voile clair uniforme, même quand le contenu défile. */
body.sopota-article-page .sopota-article-layout { background:transparent!important; overflow:hidden!important; }
body.sopota-article-page .sopota-article-main-column { background:rgba(255,249,230,.92)!important; }
body.sopota-article-page .sopota-article-main-column { box-sizing:border-box!important; border-radius:12px!important; box-shadow:0 3px 18px rgba(24,52,46,.12)!important; }
body.sopota-article-page .sopota-article-main-column .sopota-resume { background:transparent!important; }
body.sopota-article-page .wp-block-post-content > .wp-block-media-text { display:grid!important; grid-template-columns:minmax(0,42%) minmax(0,1fr)!important; gap:clamp(16px,2vw,30px)!important; align-items:center!important; margin:2rem 0!important; }
body.sopota-article-page .wp-block-post-content > .wp-block-media-text .wp-block-media-text__media img { width:100%!important; height:auto!important; object-fit:contain!important; }
body.sopota-article-page .wp-block-post-content > .wp-block-media-text .wp-block-media-text__content { padding:0!important; }
.sopota-overlay-controls { position:fixed!important; z-index:60!important; top:36vh!important; right:clamp(70px,14vw,260px)!important; width:clamp(40px,3.5vw,58px)!important; display:flex!important; flex-direction:column!important; align-items:center!important; gap:8px!important; }
.sopota-tahitian-button { position:relative!important; z-index:1!important; display:block!important; width:100%!important; height:auto!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; opacity:.72; cursor:pointer; filter:drop-shadow(0 1px 4px rgba(255,249,230,.85)); transition:opacity .18s ease,transform .18s ease; }
.sopota-tahitian-button:hover,.sopota-tahitian-button:focus-visible { opacity:1; transform:scale(1.06); }
.sopota-tahitian-button img { display:block!important; width:100%!important; height:auto!important; margin:0!important; object-fit:contain!important; }
.sopota-tahitian-popup { position:absolute; z-index:2; top:50%; right:calc(100% + 14px); transform:translateY(-50%); width:min(400px,calc(100vw - 110px)); max-height:min(62vh,460px); overflow:auto; padding:18px 22px; border:1px solid rgba(18,63,58,.22); border-radius:12px; color:#123f3a; background:rgba(255,249,230,.94); box-shadow:0 8px 30px rgba(18,63,58,.18); font:500 1rem/1.6 Manrope,sans-serif; }
.sopota-tahitian-popup[hidden] { display:none!important; }
.sopota-tahitian-popup h2 { margin:0 0 .6rem; color:#123f3a; font-size:1.15rem; font-weight:700; }
.sopota-tahitian-popup p { margin:0; white-space:pre-line; }
.sopota-overlay-item { position:relative; display:flex; justify-content:center; width:100%; }
.sopota-info-button { display:flex!important; align-items:center!important; justify-content:center!important; width:clamp(28px,2.4vw,38px)!important; height:clamp(28px,2.4vw,38px)!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; opacity:.78; cursor:pointer; filter:drop-shadow(0 1px 4px rgba(255,249,230,.9)); }
.sopota-info-button:hover,.sopota-info-button:focus-visible { opacity:1; transform:scale(1.06); }
.sopota-info-button img { display:block!important; width:100%!important; height:100%!important; object-fit:contain!important; }
.sopota-note-download-form { display:grid; gap:8px; margin-top:14px; }
.sopota-note-download-form label { color:#123f3a; font-weight:650; }
.sopota-note-download-form input[type="email"] { box-sizing:border-box; width:100%; min-height:42px; padding:8px 10px; border:1px solid rgba(18,63,58,.38); border-radius:8px; color:#123f3a; background:rgba(255,255,255,.75); font:inherit; }
.sopota-note-download-form button { justify-self:start; min-height:42px; padding:8px 15px; border:0; border-radius:8px; color:#fff9e6; background:#123f3a; font:650 .95rem/1.2 Manrope,sans-serif; cursor:pointer; }
.sopota-note-download-form button:disabled { opacity:.65; cursor:wait; }
.sopota-note-download-status { min-height:1.4em; margin:0; font-size:.9em; }

/* Le papier défile seul, tandis que la colonne de logos reste visible à sa gauche. */
body.sopota-article-page .sopota-article-main-column { height:100%!important; min-height:0!important; max-height:100%!important; overflow-y:auto!important; overflow-x:hidden!important; overscroll-behavior:contain; scrollbar-gutter:stable; padding:clamp(22px,2.1vw,36px)!important; }
/* Lecture plus large et photos accompagnees du texte sur ordinateur et tablette. */
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > * { max-width:none!important; margin-left:0!important; margin-right:0!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > figure.wp-block-image { display:block!important; float:left!important; clear:both!important; width:min(42%, 440px)!important; max-width:42%!important; margin:.35rem 1.4rem 1.1rem 0!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > figure.wp-block-image:nth-of-type(even) { float:right!important; margin:.35rem 0 1.1rem 1.4rem!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > figure.wp-block-image img { display:block!important; width:100%!important; max-width:100%!important; height:auto!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained::after { content:""; display:block; clear:both; }
.sopota-overlay-controls { right:clamp(12px,5vw,82px)!important; width:clamp(120px,9vw,174px)!important; }
.sopota-info-button { width:clamp(84px,7.2vw,114px)!important; height:clamp(84px,7.2vw,114px)!important; }
.sopota-tahitian-control .sopota-tahitian-popup { top:-72px!important; right:calc(100% + 20px)!important; transform:none!important; width:min(320px,calc(100vw - 250px))!important; max-height:46vh!important; overflow:auto!important; }
/* Le logo tahitien remonte vers les cheveux ; son extrait reste hors de la barre de défilement. */
.sopota-overlay-controls { top:28vh!important; }
.sopota-tahitian-control .sopota-tahitian-popup { position:fixed!important; left:auto!important; right:12px!important; top:max(96px,calc(28vh - 80px))!important; width:min(320px,calc(100vw - 40px))!important; max-height:46vh!important; transform:none!important; }
/* Slight text adjustment and icon sizing. */
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { font-size:clamp(1.25rem,1.5vw,1.47rem)!important; }
.sopota-overlay-controls { width:clamp(120px,9vw,174px)!important; }
.sopota-tahitian-control .sopota-tahitian-button { left:clamp(30px,2.25vw,43px)!important; width:clamp(60px,4.5vw,87px)!important; }
.sopota-info-button { width:clamp(168px,14.4vw,228px)!important; height:clamp(168px,14.4vw,228px)!important; }
/* Colonne de logos répartie dans la hauteur visible, sans déborder quand la fenêtre est basse. */
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode { min-height:0!important; height:100%!important; align-self:stretch!important; }
body.sopota-article-page .sopota-liens-associes { display:flex!important; flex-direction:column!important; justify-content:space-evenly!important; align-items:center!important; gap:0!important; width:100%!important; height:100%!important; min-height:0!important; }
body.sopota-article-page .sopota-article-link { display:flex!important; flex:1 1 0!important; align-items:center!important; justify-content:center!important; width:100%!important; max-width:150px!important; min-height:0!important; }
body.sopota-article-page .sopota-article-link__image { display:block!important; width:auto!important; max-width:100%!important; max-height:100%!important; height:auto!important; object-fit:contain!important; }
body.sopota-article-page .sopota-overlay-item.sopota-info-control { width:max-content!important; flex:0 0 auto!important; }
body.sopota-article-page .sopota-info-button { flex:0 0 auto!important; }
@media (max-width:600px) {
  body.sopota-article-page .sopota-liens-associes { flex-direction:row!important; flex-wrap:wrap!important; justify-content:center!important; gap:16px!important; height:auto!important; min-height:0!important; }
  body.sopota-article-page .sopota-article-link { flex:0 0 auto!important; width:auto!important; max-width:58px!important; }
  body.sopota-article-page .sopota-article-link__image { max-height:58px!important; }
}
/* Cartes beige clair pour les logos associés, séparées et centrées dans la colonne. */
body.sopota-article-page .sopota-liens-associes { justify-content:center!important; gap:clamp(4px,1vh,12px)!important; }
body.sopota-article-page .sopota-article-link { display:flex!important; flex:1 1 0!important; align-items:center!important; justify-content:center!important; width:100%!important; max-width:none!important; min-height:0!important; background:transparent!important; border:0!important; }
body.sopota-article-page .sopota-article-link__card { display:grid!important; place-items:center!important; box-sizing:border-box!important; width:clamp(24px,min(12vh,calc((100vh - 350px)/4)),104px)!important; height:auto!important; aspect-ratio:1/1!important; padding:clamp(4px,.65vw,9px)!important; overflow:hidden!important; border:1px solid rgba(255,255,255,.72)!important; border-radius:9px!important; background:rgba(255,249,230,.92)!important; box-shadow:0 3px 10px rgba(18,63,58,.12)!important; }
body.sopota-article-page .sopota-article-link__image { display:block!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; object-fit:contain!important; mix-blend-mode:multiply; }
@media (max-width:600px) {
  body.sopota-article-page .sopota-article-link__card { width:clamp(48px,14vw,58px)!important; height:clamp(48px,14vw,58px)!important; padding:5px!important; }
}
/* Les deux commandes partagent le même axe vertical, avec une marge droite préservée. */
body.sopota-article-page .sopota-overlay-controls { right:calc(clamp(12px,5vw,82px) + clamp(6px,2vw,20px))!important; }
body.sopota-article-page .sopota-overlay-item.sopota-info-control { position:relative!important; left:clamp(30px,2.25vw,43px)!important; }
/* Le lien de retour éditorial reste évident à la fin de l’article. */
body.sopota-article-page .sopota-article-feedback { margin:2.4rem 0 1rem!important; padding-top:1rem!important; border-top:1px solid rgba(18,63,58,.24)!important; text-align:center!important; }
body.sopota-article-page .sopota-article-feedback a { display:inline-block!important; color:#123f3a!important; font-size:clamp(1.4rem,1.8vw,1.65rem)!important; font-weight:700!important; line-height:1.35!important; text-decoration:underline!important; }
@media (max-width:600px) {
  body.sopota-article-page .sopota-overlay-controls { right:58px!important; }
  body.sopota-article-page .sopota-overlay-item.sopota-info-control { left:25px!important; }
  body.sopota-article-page .sopota-info-button { transform:translateX(0)!important; }
  body.sopota-article-page .sopota-info-button:hover,
  body.sopota-article-page .sopota-info-button:focus-visible { transform:translateX(0) scale(1.06)!important; }
  body.sopota-article-page .sopota-article-feedback a { font-size:1.18rem!important; }
}
