/*
Theme Name: dds_discoverygreenland.com
Theme URI: https://discoverygreenland.com/
Author: Julien Moreau
Description: Territoire Vivant — thème éditorial pour un média d’analyse territoriale : géographie urbaine, lecture de quartiers et prospective immobilière.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dgterr
*/

/* ---------- Règles [hidden] prioritaires ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Jetons ---------- */
:root {
    --bg: #F4F7F5;
    --bg-alt: #E8EEEA;
    --head: #1B3A2D;
    --foot: #14291F;
    --side: #EDF3EF;
    --ink: #1A2E24;
    --copper: #D4652A;
    --copper-dark: #BF5B26;
    --emerald: #4A9B7F;
    --emerald-dark: #438B72;
    --muted: #6B7F74;
    --line: #D9E3DD;
    --mint: #A8C5B5;
    --mint-soft: #C5D9CE;
    --serif: "Spectral", "Source Serif Pro", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --lift: 0 4px 12px rgba(26, 46, 36, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(26, 46, 36, 0.03) 0, rgba(26, 46, 36, 0.03) 0.6px, transparent 0.6px, transparent 20px);
}

p, li, dd, h1, h2, h3, h4, h5, h6, .card-body, .wdg, .crumbs {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1.1em; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
}
h1 { font-size: 2.2rem; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

/* Point-repère des titres H2/H3 */
h2, h3 {
    position: relative;
    padding-left: 18px;
}
h2::before, h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
    transform: translate(0, -50%);
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, left 0.25s ease;
}
h2:hover::before, h3:hover::before {
    width: 10px;
    height: 10px;
    left: -2px;
    background: var(--emerald);
}

/* Liens */
a { color: var(--emerald); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}
.entry-content a, .page-intro a, .wdg a, .card-more, .expedition-mail, .crumbs a, .lost-text a, .notes a, .entry-tags a {
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.3s ease, color 0.2s ease;
    padding-bottom: 1px;
}
.entry-content a:hover, .page-intro a:hover, .wdg a:hover, .card-more:hover, .expedition-mail:hover, .crumbs a:hover, .lost-text a:hover, .notes a:hover, .entry-tags a:hover {
    background-size: 100% 2px;
}

/* Tableaux */
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: start; }
th { background: var(--bg-alt); font-weight: 600; }
.table-scroll, .wp-block-table { overflow-x: auto; }

blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.4em;
    border-left: 3px solid var(--copper);
    background: var(--bg-alt);
    border-radius: 0 6px 6px 0;
    font-family: var(--serif);
    font-size: 1.15rem;
}
blockquote p:last-child { margin-bottom: 0; }

pre { overflow-x: auto; background: var(--bg-alt); padding: 1em 1.2em; border-radius: 4px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 100;
    background: var(--copper);
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Conteneur unique ---------- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}
body.home .shell { width: min(85%, 1180px); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.btn-fill { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-fill:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; }
.btn-line { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.btn-line:hover { color: var(--emerald-dark); border-color: var(--emerald-dark); background: rgba(74, 155, 127, 0.08); }

/* ---------- Ligne d’horizon ---------- */
.horizon-line {
    height: 3px;
    background: linear-gradient(90deg, #D4652A 0%, #4A9B7F 100%);
}

/* ---------- En-tête ---------- */
.masthead {
    background: var(--head);
    color: #fff;
    position: relative;
}
.masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    padding: 1.2rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    flex: 1 1 520px;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--mint);
    margin-top: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1.5px solid var(--mint);
    color: #fff;
    border-radius: 4px;
    padding: 0.55em 0.9em;
    font: 500 0.9rem var(--sans);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: transform 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.topnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.6rem;
}
.topnav-list li { position: relative; }
.topnav-list a {
    display: inline-block;
    color: #E6EFEA;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.35em 0;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.topnav-list a:hover, .topnav-list .current-menu-item > a { color: #fff; background-size: 100% 2px; }
.topnav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.9rem;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--head);
    border: 1px solid rgba(168, 197, 181, 0.25);
    border-radius: 4px;
    display: none;
    z-index: 20;
}
.topnav-list li:hover > .sub-menu, .topnav-list li:focus-within > .sub-menu { display: block; }

/* ---------- Fil d’Ariane ---------- */
.crumbs {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 1.6rem 0 0.4rem;
}
.crumbs a { color: var(--emerald); }
.crumb-sep { margin: 0 0.35em; color: var(--copper); }

/* ---------- Mise en page ---------- */
.page-wrap { padding-bottom: 4.5rem; position: relative; z-index: 2; }
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; padding-top: 1.2rem; }

.page-head { margin-bottom: 2rem; }
.page-title { font-size: 2.4rem; margin: 0.2em 0 0.3em; }
.page-intro { color: var(--muted); max-width: 62ch; margin: 0; }
.empty-note { color: var(--muted); font-style: italic; }

/* ---------- Barre latérale ---------- */
.sidebar {
    min-width: 0;
    margin-top: 1.2rem;
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .wdg + .wdg { margin-top: 2rem; }
.sidebar .wdg-title { font-size: 1.2rem; margin: 0 0 0.9rem; color: var(--head); }
.sidebar .wdg ul { list-style: none; margin: 0; padding: 0; }
.sidebar .wdg li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.45; }
.sidebar .wdg li:last-child { border-bottom: 0; }
.sidebar .wdg a { color: var(--ink); }
.sidebar .wdg a:hover { color: var(--emerald-dark); }
.sidebar .wdg .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar .wdg p { color: var(--ink); }

/* ---------- Cartes ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 46, 36, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 46, 36, 0.12);
    border-color: var(--emerald);
}
.card-thumb { overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0 0 6px 6px;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    padding: 0.28em 0.6em;
    border-radius: 2px;
}
.tag:hover { color: #fff; filter: brightness(0.92); }
.tag-pine { background: #1B3A2D; }
.tag-copper { background: #D4652A; }
.tag-emerald { background: #4A9B7F; }
.tag-sage { background: #6B7F74; }
.card-title { font-size: 1.25rem; margin: 0 0 0.4rem; }
.card-title::before { top: 0.66em; }
.card-title a { color: var(--ink); transition: color 0.2s ease; }
.card-title a:hover { color: var(--emerald-dark); }
.card-date { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.7rem; }
.card-excerpt { font-size: 0.96rem; color: #2E4238; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; font-weight: 500; font-size: 0.92rem; margin-top: 0.6rem; }

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--emerald); color: var(--emerald-dark); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: #fff; }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 0.3rem; }

/* ---------- Article ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-date { font-size: 0.88rem; color: var(--muted); }
.entry-figure { margin: 0 0 2rem; }
.entry-figure img { display: block; width: 100%; border-radius: 6px; }
.entry-content { font-size: 1.07rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content img { border-radius: 6px; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 2rem; font-size: 0.9rem; }
.entry-pages { margin: 1.5rem 0; }
.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 3rem 0 1rem;
}
.entry-nav a {
    display: block;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-family: var(--serif);
    transition: border-color 0.2s ease;
}
.entry-nav a:hover { border-color: var(--emerald); }
.entry-nav span { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.entry-nav-next { grid-column: 2; text-align: end; }

/* ---------- Commentaires ---------- */
.notes { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; }
.note-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.note-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.note-head img { border-radius: 50%; display: block; }
.note-author { display: block; font-weight: 600; }
.note-date { font-size: 0.8rem; color: var(--muted); }
.note-wait { color: var(--copper); font-size: 0.9rem; }
.comment-reply-link { font-size: 0.88rem; font-weight: 500; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit {
    background: var(--copper);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 0.8em 1.5em;
    font: 500 0.95rem var(--sans);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.comment-form .submit:hover { background: var(--copper-dark); transform: translateY(-2px); box-shadow: var(--lift); }

/* ---------- Recherche ---------- */
.seek { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0 1.8rem; }
.seek-field {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.75em 0.9em;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.seek-btn { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.lost { text-align: start; padding-top: 2rem; }
.lost-code {
    display: block;
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--copper);
    opacity: 0.85;
}
.lost-text { max-width: 58ch; color: #2E4238; }

/* ---------- Accueil : sections ---------- */
.zone {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}
.zone-base {
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(26, 46, 36, 0.03) 0, rgba(26, 46, 36, 0.03) 0.6px, transparent 0.6px, transparent 20px);
}
.zone-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(26, 46, 36, 0.05) 0, rgba(26, 46, 36, 0.05) 0.6px, transparent 0.6px, transparent 20px);
}
.zone-shell { position: relative; }
.zone-shell::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -32px;
    width: 3px;
    background-image: radial-gradient(circle, rgba(74, 155, 127, 0.4) 1.5px, transparent 1.6px);
    background-size: 3px 15px;
    background-repeat: repeat-y;
    pointer-events: none;
}
.zone-shell::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -80px;
    width: 60%;
    height: 1px;
    background: var(--line);
}

.zone-title {
    font-size: 2.1rem;
    margin: 0 0 0.8rem;
    padding-left: 56px;
}
.zone-title::before,
.zone-title:hover::before {
    width: 40px;
    height: 2px;
    border-radius: 0;
    left: 0;
    top: 0.65em;
    background: var(--copper);
}
.zone-lead { color: var(--muted); max-width: 64ch; margin: 0 0 2.6rem 56px; }
.zone-foot { margin: 2.6rem 0 0; }

/* Hero */
.terrain-hero {
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: var(--head);
}
.terrain-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.terrain-hero-veil {
    position: absolute;
    inset: 0;
    background: rgba(27, 58, 45, 0.7);
}
.terrain-hero-inner {
    position: relative;
    padding: 96px 0;
}
.terrain-hero-title {
    font-size: 3.2rem;
    line-height: 1.12;
    color: #fff;
    max-width: 17ch;
    margin: 0 0 1.2rem;
    font-weight: 500;
}
.terrain-hero-sub {
    color: #A8C5B5;
    font-size: 1.15rem;
    max-width: 56ch;
    margin: 0;
}
.terrain-hero-mark {
    position: absolute;
    left: 0;
    bottom: 36px;
    width: 180px;
    height: 2px;
    background: var(--copper);
}
.terrain-hero-mark::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--copper);
}

/* Statistiques */
.field-data {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.field-cell {
    min-width: 0;
    padding: 1.8rem 1.4rem;
    border-left: 1px solid var(--line);
}
.field-cell:first-child { border-left: 0; }
.field-num {
    position: relative;
    display: inline-block;
    font-family: var(--serif);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--head);
    padding-left: 16px;
}
.field-num::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
    transform: translateY(-50%);
}
.field-cap {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Chronologie stratigraphique */
.strata {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.strata::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--emerald);
}
.strata-step {
    position: relative;
    width: 50%;
    padding: 0 3rem 2.4rem 0;
    text-align: end;
}
.strata-step:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.4rem 3rem;
    text-align: start;
}
.strata-step::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    right: -6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--emerald);
    box-sizing: content-box;
    z-index: 1;
}
.strata-step::after {
    content: "";
    position: absolute;
    top: calc(0.9rem + 6px);
    right: 0;
    width: 2.2rem;
    height: 1px;
    background: var(--emerald);
}
.strata-step:nth-child(even)::before { right: auto; left: -6px; }
.strata-step:nth-child(even)::after { right: auto; left: 0; }
.strata-year {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--copper);
}
.strata-text {
    margin: 0.4rem 0 0;
    color: var(--ink);
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed rgba(74, 155, 127, 0.55);
}
.strata-step:last-child .strata-text { border-bottom: 0; }

/* Appel à l’expédition */
.expedition {
    position: relative;
    overflow: hidden;
    background: var(--head);
    color: #fff;
    border-radius: 6px;
    padding: 4rem 3.2rem;
}
.expedition-compass {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    width: 150px;
    height: 150px;
    opacity: 0.15;
    pointer-events: none;
}
.expedition-title {
    color: #fff;
    font-size: 2.3rem;
    margin: 0 0 1rem;
    max-width: 20ch;
}
.expedition-text {
    color: #C5D9CE;
    max-width: 60ch;
    margin: 0 0 2rem;
}
.expedition-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 2rem;
}
.expedition-mail { color: #A8C5B5; font-weight: 500; }
.expedition-mail:hover { color: #fff; }
.zone-last .zone-shell::after { display: none; }

/* ---------- Pied de page ---------- */
.basefoot {
    position: relative;
    z-index: 2;
    background: var(--foot);
    color: #C5D9CE;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}
.basefoot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.basefoot-col { min-width: 0; }
.basefoot .wdg + .wdg { margin-top: 1.6rem; }
.basefoot .wdg-title { color: #fff; font-size: 1.2rem; margin: 0 0 1rem; }
.basefoot .wdg, .basefoot .wdg p, .basefoot .wdg li { color: #C5D9CE; }
.basefoot .wdg a { color: #A8C5B5; }
.basefoot .wdg a:hover { color: #fff; }
.basefoot .wdg ul { list-style: none; margin: 0; padding: 0; }
.basefoot .wdg li { padding: 0.3rem 0; }
.basefoot .wdg .post-date { color: #8FA99B; font-size: 0.8rem; }
.basefoot-copy {
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 197, 181, 0.2);
    font-size: 0.85rem;
    color: #8FA99B;
}

/* ---------- Contour du Groenland ---------- */
.greenland-trace {
    position: fixed;
    right: 18px;
    bottom: 12px;
    width: 150px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160'%3E%3Cpath d='M56 158 L50 148 L44 140 L38 127 L31 115 L24 100 L16 87 L11 73 L6 60 L12 50 L8 40 L17 32 L15 21 L29 15 L43 9 L60 5 L78 3 L96 7 L111 13 L117 23 L109 31 L114 41 L104 51 L100 64 L93 77 L88 90 L81 104 L73 118 L66 132 L61 146 Z M34 30 L38 26 L42 30 M90 20 L96 18' fill='none' stroke='%231B3A2D' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    background: var(--head);
    color: #E6EFEA;
    border-top: 3px solid var(--copper);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 8px 24px rgba(26, 46, 36, 0.25);
}
.cookie-text { margin: 0; flex: 1 1 380px; min-width: 0; font-size: 0.9rem; line-height: 1.5; color: #E6EFEA; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Adaptatif ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .masthead-inner { gap: 1rem; }
    .brand { flex: 1 1 auto; }
    .topnav { flex: 1 1 100%; }
    .js .topnav:not(.is-open) { display: none; }
    .topnav-list { flex-direction: column; gap: 0; padding: 0.4rem 0 0.6rem; border-top: 1px solid rgba(168, 197, 181, 0.25); }
    .topnav-list a { padding: 0.65em 0; }
    .topnav-list .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .layout-single > .content-area { width: 100%; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-cell:nth-child(3) { border-left: 0; }
    .field-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
    .terrain-hero-title { font-size: 2.6rem; }
    .basefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    body.home .shell, .shell { width: 90%; }
    .brand-desc { display: none; }
    .brand-name { font-size: 0.95rem; }
    .brand-logo { width: 42px; height: 42px; }
    .page-title { font-size: 1.9rem; }

    .zone { padding: 56px 0; }
    .zone-shell::before { left: -14px; }
    .zone-shell::after { bottom: -56px; }
    .zone-title { font-size: 1.7rem; padding-left: 50px; }
    .zone-lead { margin-left: 0; }

    .terrain-hero { min-height: 400px; }
    .terrain-hero-inner { padding: 72px 0; }
    .terrain-hero-title { font-size: 2.1rem; }
    .terrain-hero-sub { font-size: 1rem; }

    .card-grid, .card-grid-two { grid-template-columns: minmax(0, 1fr); }
    .field-data { grid-template-columns: minmax(0, 1fr); }
    .field-cell { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0.4rem; }
    .field-cell:first-child { border-top: 0; }

    .strata::before { left: 5px; }
    .strata-step, .strata-step:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 2.4rem;
        text-align: start;
    }
    .strata-step::before, .strata-step:nth-child(even)::before { left: 0; right: auto; }
    .strata-step::after, .strata-step:nth-child(even)::after { left: 12px; right: auto; width: 1.2rem; }
    .strata-year { font-size: 1.7rem; }

    .expedition { padding: 2.6rem 1.5rem; }
    .expedition-title { font-size: 1.8rem; }
    .expedition-compass { width: 96px; height: 96px; top: 0.8rem; right: 0.8rem; }

    .sidebar { padding: 1.4rem 1.2rem; }
    .basefoot-cols { grid-template-columns: minmax(0, 1fr); }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: 1; }
    .greenland-trace { width: 90px; height: 120px; }
    .cookie-banner { padding: 1rem 1.2rem; }
}
