/*
Theme Name: ArgumenTerre
Description: Présentation éditoriale pour les dossiers environnementaux d’ArgumenTerre.
Version: 4.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: argumenterre

La licence du code du thème ne confère aucun droit sur le logo de l’association. Les images sont documentées dans assets/credits.html.
*/
:root {
  color-scheme: light;
  --ink: #203730;
  --forest: #163e36;
  --link: #235d4c;
  --leaf: #507668;
  --paper: #fff;
  --mist: #f7f7f1;
  --wash: #edf2eb;
  --line: #d6ded2;
  --rust: #995136;
  --display: Georgia, Cambria, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after {box-sizing:border-box}
html {scroll-padding:1.5rem}
body {
  margin:0; color:var(--ink); background:var(--paper);
  font:400 1rem/1.62 var(--sans); -webkit-text-size-adjust:100%;
}
img {display:block; max-width:100%; height:auto}
.frame {width:min(73rem,calc(100% - clamp(2rem,8vw,7rem))); margin-inline:auto}
a {color:var(--link); text-decoration-thickness:.08em; text-underline-offset:.18em; overflow-wrap:break-word}
a:hover {color:var(--rust)}
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
  outline:3px solid var(--rust); outline-offset:4px; border-radius:2px;
}
.skip-link {
  position:fixed; z-index:100; inset:.5rem auto auto .5rem; transform:translateY(-180%);
  color:white; background:var(--forest); padding:.6rem 1rem; border-radius:5px;
}
.skip-link:focus {transform:none; color:white}
h1,h2,h3,h4,p {margin-top:0}
h1,h2,h3,h4 {color:var(--forest); overflow-wrap:break-word}
h1,h2 {font-family:var(--display); font-weight:500; letter-spacing:-.023em; text-wrap:balance}
h1 {font-size:clamp(1.85rem,2.75vw,2.375rem); line-height:1.13}
h2 {font-size:clamp(1.4rem,2.1vw,1.68rem); line-height:1.23}
h3 {font-size:1.12rem; line-height:1.38; font-weight:650}
.site-head {background:white; border-bottom:1px solid var(--line)}
.head-row, .foot-row {display:flex; justify-content:space-between; align-items:center; gap:1.2rem 2rem}
.head-row {min-height:4.75rem; padding-block:.55rem}
.brand, .foot-brand {display:inline-flex; align-items:center; text-decoration:none; color:var(--forest); flex-shrink:0}
.brand-logo {height:auto; width:auto; max-height:5rem; max-width:12rem; object-fit:contain}
.brand-name, .foot-brand {
  font-family:var(--display); font-weight:650; font-size:1.54rem;
  line-height:1.15; letter-spacing:-.045em;
}
.brand-name span {color:#507466}
.main-nav ul,.foot-nav ul {list-style:none; margin:0; padding:0; display:flex; align-items:center; flex-wrap:wrap}
.main-nav ul {gap:.3rem clamp(.62rem,1.45vw,1.38rem)}
.main-nav a {
  display:inline-block; padding:.45rem 0; line-height:1.3; color:var(--ink); text-decoration:none;
  font-size:.95rem; font-weight:530; border-bottom:2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current=page], .main-nav .current-menu-item>a {color:var(--link); border-bottom-color:var(--leaf)}
.main-nav .nav-action a {
  padding:.56rem .89rem; border:1px solid var(--forest); border-radius:100px;
  color:var(--forest); font-size:.91rem; font-weight:650;
}
.main-nav .nav-action a:hover,.main-nav .nav-action a[aria-current=page] {color:white; border-color:var(--forest); background:var(--forest)}
.home {padding-block:clamp(1.25rem,3vw,2.5rem) clamp(2.3rem,5vw,4.4rem)}
.hero {
  isolation:isolate; overflow:hidden; display:grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  background:var(--mist); border:1px solid #e3e7dd; border-radius:.8rem;
}
.hero-copy {align-self:center; padding:clamp(1.6rem,3.6vw,3.4rem); min-width:0}
.hero-copy h1 {margin:0 0 .85rem; max-width:20ch}
.hero-copy p {max-width:53ch; margin:0; color:#364a42; font-size:1.015rem; line-height:1.6}
.hero-copy .hero-action {margin-top:1.35rem}
.hero-action a {
  display:inline-block; font-size:.94rem; line-height:1.35; font-weight:650; color:white; background:var(--forest);
  padding:.72rem 1.1rem; border-radius:.4rem; text-decoration:none;
}
.hero-action a:hover {background:#2b5546}
.hero-photo {width:100%; height:100%; align-self:stretch; min-height:16.5rem; object-fit:cover; object-position:50% 50%}
.featured {margin-top:clamp(1.7rem,4vw,2.8rem)}
.featured>h2 {margin-bottom:1.05rem}
.card-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2vw,1.7rem)}
.story-card {
  overflow:hidden; min-width:0; position:relative; background:var(--paper);
  border:1px solid var(--line); border-radius:.65rem;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.story-card:hover,.story-card:focus-within {border-color:#8ca394;box-shadow:0 .18rem .9rem rgb(32 55 48 / .09)}
.card-photo {width:100%;height:clamp(8.6rem,13vw,10.5rem);object-fit:cover;object-position:center}
.card-copy {padding:1rem clamp(1rem,2vw,1.5rem) 1.2rem;min-width:0}
.card-copy h3 {margin:.05rem 0 .45rem;font-size:clamp(1.09rem,1.7vw,1.28rem); letter-spacing:-.014em}
.card-copy h3 a {color:var(--forest); text-decoration:underline; text-decoration-color:#a4b7ad; text-underline-offset:.2em}
.card-copy h3 a::after {content:"";position:absolute;inset:0;border-radius:.65rem}
.card-copy h3 a:hover {color:var(--rust);text-decoration-color:currentColor}
.card-copy p {margin:0;font-size:1rem;line-height:1.56;color:#364a42}
.next-section.prose {
  margin:clamp(1.6rem,3.8vw,2.6rem) 0 0;max-width:none;
  background:var(--wash);border-left:.22rem solid var(--leaf);border-radius:.25rem .7rem .7rem .25rem;
  padding:clamp(1.2rem,2.65vw,2rem) clamp(1.15rem,3.4vw,2.4rem);
}
.next-section.prose>h2:first-child {margin-top:0}
.next-section p {max-width:75ch}
.interior {max-width:65rem; padding-block:clamp(1.3rem,3vw,2.35rem) clamp(2.5rem,5vw,4.4rem)}
.breadcrumbs {display:flex;align-items:center;gap:.6rem;margin:0 0 1.15rem;color:#517062;font-size:.91rem}
.breadcrumbs a {color:inherit;text-decoration-color:#a4b7ad}
.page-head {margin:0 0 1.45rem}
.page-head h1 {margin:0;max-width:29ch}
.prose {max-width:74ch;overflow-wrap:break-word}
.prose>h2,.prose>h3,.prose>h4 {margin-block:1.65em .52em}
.prose>:first-child {margin-top:0}
.prose>:last-child {margin-bottom:0}
.prose p,.prose ol,.prose ul,.prose figure,.prose table {margin-block:.8em}
.prose li+li {margin-top:.42em}
.prose ul,.prose ol {padding-inline-start:1.4em}
.prose a {text-decoration-color:#7d9a8b}
.prose a:hover {text-decoration-color:currentColor}
.prose em {color:#4b6558}
.prose blockquote {margin:1.4rem 0; padding:.18rem 1rem; border-left:.22rem solid var(--leaf); background:var(--mist)}
.prose table {border-collapse:collapse;width:100%;table-layout:auto;line-height:1.53}
.prose table th,.prose table td {padding:.65rem .75rem;border:1px solid var(--line);text-align:start;vertical-align:top}
.prose table th {background:var(--wash);color:var(--forest);font-weight:620}
.prose table th[scope="row"] {width:27%}
.prose caption {text-align:left;font-weight:650;color:var(--forest);margin-bottom:.45rem}
.prose .wp-block-table {overflow-x:auto}
.prose pre {overflow:auto;max-width:100%}
.prose .wp-element-caption {font-size:.91rem}
.dossier-banner {width:100%;height:clamp(8rem,16vw,12.3rem);object-fit:cover;border-radius:.65rem;margin-bottom:1.35rem}
.site-foot {background:#eef2eb;border-top:1px solid var(--line);color:var(--forest)}
.foot-row {min-height:5.75rem;padding-block:1.25rem}
.foot-brand {font-size:1.29rem}
.foot-nav ul {gap:.35rem 1.3rem}
.foot-nav a {font-size:.91rem;line-height:1.4;color:var(--forest)}
.alignwide,.alignfull {max-width:100%}
.alignleft {float:left;margin-right:1rem}
.alignright {float:right;margin-left:1rem}
.aligncenter {margin-inline:auto}
.wp-caption {max-width:100%}
.screen-reader-text {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:57rem) {
  .head-row {align-items:flex-start;flex-direction:column;gap:.4rem; padding-block:.8rem .65rem}
  .main-nav ul {gap:.15rem 1.05rem}
  .brand-logo {max-height:4.2rem}
  .foot-row {flex-wrap:wrap}
}
@media (max-width:43rem) {
  .hero {grid-template-columns:1fr}
  .hero-copy {padding:1.45rem}
  .hero-copy h1 {max-width:22ch}
  .hero-photo {height:clamp(8.5rem,34vw,13rem);min-height:0;grid-row:1}
  .hero-copy .hero-action {margin-top:1rem}
  .card-grid {grid-template-columns:1fr}
  .card-photo {height:clamp(9.25rem,35vw,14rem)}
  .main-nav ul {gap:.12rem .9rem}
  .main-nav a {font-size:.92rem}
  .main-nav .nav-action a {padding:.39rem .69rem}
  .foot-row {gap:.8rem}
  .prose table th,.prose table td {padding:.5rem .55rem;font-size:.96rem}
  .featured {margin-top:1.6rem}
}
@media (prefers-reduced-motion:reduce) {.story-card {transition:none}}
@media print {
  .site-head,.site-foot,.hero-action,.skip-link,.breadcrumbs {display:none}
  body {font:11pt/1.45 Georgia,serif;color:#111}
  main.frame {margin:0;width:auto;max-width:none;padding:0}
  .hero,.card-grid {display:block}
  .hero-photo,.card-photo,.dossier-banner {display:none}
  .hero-copy,.card-copy,.next-section.prose {padding:.5rem 0}
  .story-card,.hero,.next-section.prose {border:0;background:none;box-shadow:none}
  a {color:#111}
  h2,h3 {break-after:avoid}
  tr {break-inside:avoid}
}
@media screen {
  .card-copy h3 a::after {content:"";position:absolute;inset:0}
  .card-copy p a {position:relative;z-index:1}
  .story-card:focus-within {outline:3px solid var(--rust);outline-offset:3px}
}

.atx-home .atx-cover {object-fit:contain;background:#f4f1ea}
.atx-home .hero-copy h1 {max-width:21ch}
.atx-home .story-card h3 a {text-decoration:underline;text-underline-offset:.19em;text-decoration-thickness:.07em}
.atx-home .card-copy p {max-width:51ch}
.atx-training {max-width:62rem;margin-inline:auto}
.atx-training .atx-intro {max-width:47rem;margin-bottom:1.6rem}
.atx-training .atx-intro h1 {margin:0 0 .65rem}
.atx-training .atx-intro p, .atx-kit p {margin:0}
.atx-training h2 {margin:0 0 1rem}
.atx-training .atx-block {margin-top:2.4rem}
.atx-training .atx-entries {border-top:1px solid var(--line,#d6ded2)}
.atx-entry {display:grid;grid-template-columns:minmax(9rem,.8fr) minmax(0,2.1fr) minmax(8.4rem,.66fr);align-items:center;column-gap:1.5rem;padding:1rem .1rem;border-bottom:1px solid var(--line,#d6ded2)}
.atx-entry h3 {font:650 1.03rem/1.42 var(--sans,system-ui);letter-spacing:0;color:var(--forest,#163e36);margin:0}
.atx-entry .atx-place {margin:0;font-weight:650;font-size:1rem;color:var(--forest,#163e36);line-height:1.4}
.atx-entry .atx-place small, .atx-entry time {display:block;font-size:.9rem;line-height:1.5;font-weight:400;color:#435b50}
.atx-entry .atx-client {margin:.28rem 0 0;font-size:.93rem;color:#42534c}
.atx-entry .atx-file {display:inline-block;justify-self:start;font-weight:650;font-size:.91rem;line-height:1.4}
.atx-file small {display:block;font-size:.82rem;line-height:1.5;font-weight:400;color:#4e5d54}
.atx-training .atx-kit {padding:1.4rem clamp(1rem,3vw,2.2rem);background:var(--mist,#f7f7f1);border:1px solid var(--line,#d6ded2);border-left:4px solid var(--leaf,#507668);border-radius:.5rem}
.atx-kit h2 {margin-bottom:.6rem}.atx-kit p {max-width:66ch}
.atx-kit .atx-kit-link {margin-top:.8rem;font-size:.97rem;font-weight:650}
@media(max-width:670px){
  .atx-entry{grid-template-columns:minmax(0,1fr);gap:.35rem;padding:1rem .05rem 1.1rem}
  .atx-entry .atx-place{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.6rem}
  .atx-entry .atx-file{margin-top:.2rem}
  .atx-file small{display:inline;margin-left:.4rem}
}
.frame.training {padding-block:clamp(1.5rem,4vw,3.2rem) clamp(2.2rem,6vw,4.4rem)}

/* Accueil ArgumenTerre V4 */
/* Accueil de l’association */
main.home:has(.atx-home--compact) {
  padding-block:clamp(1rem,3.2vh,1.8rem) clamp(1rem,3.5vh,2rem);
}
.atx-home--compact {margin-inline:auto}
.atx-home--compact .atx-mission {
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  align-items:stretch;background:#f6f6ef;
  border-radius:.65rem;overflow:hidden;
}
.atx-home--compact .atx-mission-copy {align-self:center;padding:clamp(1rem,2.8vw,2.1rem)}
.atx-home--compact h1 {
  margin:0 0 .55rem;color:var(--forest,#163e36);
  font-size:clamp(1.55rem,2.65vw,2.2rem);line-height:1.12;
}
.atx-home--compact p {margin:0;font-size:1rem;line-height:1.5;max-width:59ch;color:#31473e}
.atx-home--compact .atx-mission-photo {
  width:100%;height:100%;min-height:0;max-height:13rem;
  object-fit:cover;object-position:50% 53%;align-self:center;
}
.atx-home--compact .atx-activities {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1.5rem,4vw,3.25rem);margin-block-start:clamp(1.1rem,2.9vh,1.65rem);
}
.atx-home--compact .atx-activity {min-width:0;padding:.7rem 0 .1rem;border-top:2px solid #789486}
.atx-home--compact h2 {font-size:clamp(1.18rem,2vw,1.53rem);line-height:1.22;margin:0 0 .4rem;font-weight:500}
.atx-home--compact h2 a {
  color:var(--forest,#163e36);text-decoration:underline;text-decoration-thickness:1px;
  text-decoration-color:#a7b7a9;text-underline-offset:.16em;
}
.atx-home--compact h2 a:hover {color:var(--rust,#995136);text-decoration-color:currentColor}
.atx-home--compact h2 a span {display:inline-block;font:500 .78em/1 system-ui,sans-serif;white-space:nowrap}
.atx-home--compact .atx-activity p {max-width:53ch}
.site-head:has(+main.home .atx-home--compact) .brand-logo {max-height:3.85rem}
main.home:has(.atx-home--compact)+.site-foot .foot-row {min-height:3.8rem;padding-block:.65rem}
@media(max-width:57rem){
  .site-head:has(+main.home .atx-home--compact) .head-row {gap:.3rem;padding-block:.45rem}
  .site-head:has(+main.home .atx-home--compact) .brand-logo {max-height:3rem}
}
@media(max-width:43rem){
  main.home:has(.atx-home--compact) {padding-block:.8rem 1.1rem}
  .atx-home--compact .atx-mission {grid-template-columns:1fr}
  .atx-home--compact .atx-mission-copy {padding:.85rem 1rem}
  .atx-home--compact .atx-mission-photo {height:clamp(2.25rem,8vh,3.75rem);max-height:none}
  .atx-home--compact .atx-activities {grid-template-columns:1fr;gap:.78rem;margin-top:.8rem}
  .atx-home--compact .atx-activity {padding-top:.45rem;border-top-width:1px}
  .atx-home--compact h2 {margin-bottom:.25rem}
  .atx-home--compact p {line-height:1.4}
  .site-head:has(+main.home .atx-home--compact) .main-nav ul {gap:.08rem .75rem}
  .site-head:has(+main.home .atx-home--compact) .main-nav a {padding-block:.21rem}
  .site-head:has(+main.home .atx-home--compact) .nav-action a {padding-inline:.62rem}
  main.home:has(.atx-home--compact)+.site-foot .foot-row {gap:.3rem .8rem}
}
@media(max-width:43rem) and (max-height:740px) {
  .atx-home--compact .atx-mission-photo {display:none}
}
@media print {
  .atx-home--compact .atx-mission-photo {display:none}
  .atx-home--compact .atx-mission {display:block}
}
@media screen and (max-width:43rem) {
  .site-head:has(+main.home .atx-home--compact) .head-row {
    display:grid;grid-template-columns:2.75rem minmax(0,1fr);
    gap:.7rem;align-items:center;min-height:0;padding-block:.48rem;
  }
  .site-head:has(+main.home .atx-home--compact) .brand-logo {max-width:100%;height:auto;max-height:3rem}
  main.home:has(.atx-home--compact)+.site-foot .foot-row {min-height:0;padding-block:.55rem}
  main.home:has(.atx-home--compact)+.site-foot .foot-brand {display:none}
  main.home:has(.atx-home--compact)+.site-foot .foot-nav {width:100%}
  main.home:has(.atx-home--compact)+.site-foot .foot-nav ul {display:grid;grid-template-columns:auto auto;gap:.18rem 1rem}
}
