:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #63707b;
  --line: #d9e1e6;
  --surface: #ffffff;
  --soft: #eef4f7;
  --navy: #17324d;
  --green: #20715f;
  --red: #b72c37;
  --amber: #c68b2c;
  --shadow: 0 18px 50px rgba(23, 32, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  margin: 0;
  background: #f8fafb;
  color: var(--ink);
  font-family:
    "Segoe UI", Tahoma, Arial, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.top-nav a,
.button,
.load-more,
.category-chip {
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.top-nav a {
  padding: 9px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--navy);
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: min(620px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(12, 25, 38, 0.86), rgba(12, 25, 38, 0.5) 52%, rgba(12, 25, 38, 0.18)),
    linear-gradient(0deg, rgba(12, 25, 38, 0.54), rgba(12, 25, 38, 0.08));
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding: 0;
  color: #fff;
  margin-right: 0;
  margin-left: auto;
}

.hero-visual {
  display: none;
}

.hero-visual img {
  width: min(100%, 420px);
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.dialog h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 74px);
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button:disabled,
.load-more:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button.primary,
.load-more {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.admin-body .button.secondary,
.admin-table .button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.button:hover,
.load-more:hover,
.category-chip:hover {
  transform: translateY(-1px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics article {
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--surface);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--green);
  font-size: clamp(30px, 4vw, 50px);
}

.metrics span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(42px, 6vw, 82px) clamp(18px, 4vw, 54px);
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.section h2 {
  font-size: clamp(30px, 5vw, 56px);
}

.featured-grid,
.archive-grid,
.rubrique-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.featured-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.archive-grid,
.rubrique-grid {
  grid-template-columns: repeat(3, 1fr);
}

.boxed-home-section {
  position: relative;
}

.anchor-target {
  position: absolute;
  top: -86px;
}

.boxed-home-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(420px, 1.35fr) minmax(230px, 0.85fr);
  grid-template-areas: "right latest left";
  max-width: 1280px;
  margin: 0 auto;
  gap: 18px;
  align-items: start;
}

.rubrique-column-right {
  grid-area: right;
}

.latest-column {
  grid-area: latest;
}

.rubrique-column-left {
  grid-area: left;
}

.column-heading {
  display: flex;
  min-height: 82px;
  margin-bottom: 14px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.column-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.08;
}

.latest-heading {
  align-items: end;
}

.latest-list,
.rubrique-box-list {
  display: grid;
  gap: 12px;
}

.latest-item,
.rubrique-box {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 32, 39, 0.04);
}

.latest-item {
  display: grid;
  grid-template-columns: minmax(140px, 34%) minmax(0, 1fr);
  gap: 0;
}

.latest-item.no-image {
  grid-template-columns: 1fr;
}

.latest-thumb {
  display: block;
  min-height: 100%;
  background: var(--soft);
  overflow: hidden;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.latest-item-body,
.rubrique-box {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.latest-item .meta,
.rubrique-box .rubrique-box-category {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.latest-item h3,
.rubrique-box h3 {
  margin: 9px 0 10px;
  line-height: 1.22;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.latest-item h3 {
  font-size: clamp(21px, 2.1vw, 31px);
  -webkit-line-clamp: 3;
}

.rubrique-box h3 {
  font-size: 18px;
  -webkit-line-clamp: 2;
}

.latest-item h3 a,
.rubrique-box h3 a,
.rubrique-box-category {
  color: inherit;
  text-decoration: none;
}

.latest-item p,
.rubrique-box p {
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.latest-item p {
  -webkit-line-clamp: 3;
}

.rubrique-box p {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.rubrique-box .read-link,
.latest-item .read-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.archive-button {
  width: 100%;
  margin-top: 14px;
  background: var(--navy);
  color: #fff;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 32, 39, 0.04);
}

.news-card.featured:first-child {
  min-height: 390px;
  justify-content: flex-start;
  background: var(--navy);
  color: #fff;
}

.card-image {
  display: block;
  aspect-ratio: 16 / 9;
  margin: -22px -22px 18px;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.news-card.no-image .card-image {
  display: none;
}

.news-card.no-image {
  min-height: 260px;
}

.news-card.featured.no-image:first-child {
  min-height: 260px;
  background: var(--surface);
  color: var(--ink);
}

.news-card.featured.no-image:first-child .meta,
.news-card.featured.no-image:first-child p {
  color: var(--muted);
}

.news-card.featured.no-image:first-child .read-link {
  color: var(--red);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.card-image:hover img {
  transform: scale(1.03);
}

.card-image.image-missing {
  display: none;
}

.news-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  justify-content: flex-start;
}

.rubrique-title {
  display: block;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.rubrique-title a {
  color: inherit;
  text-decoration: none;
}

.rubrique-card h3 {
  font-size: clamp(19px, 1.6vw, 24px);
}

.news-card.featured:first-child .meta {
  color: rgba(255, 255, 255, 0.78);
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.18;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-card.featured:first-child p {
  color: rgba(255, 255, 255, 0.82);
}

.news-card .read-link {
  display: inline-flex;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.news-card.featured:first-child .read-link {
  color: #fff;
}

.controls-heading {
  align-items: center;
}

.search-box {
  display: grid;
  gap: 6px;
  width: min(100%, 360px);
}

.search-box label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  direction: rtl;
}

.category-strip {
  display: flex;
  max-width: 1180px;
  margin: 0 auto 20px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  direction: rtl;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.category-chip.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.load-more {
  margin: 28px auto 0;
  border: 0;
}

.load-more[hidden] {
  display: none;
}

.pagination {
  display: flex;
  max-width: 1180px;
  margin: 28px auto 0;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.pagination span {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 24px;
  max-width: 1288px;
  margin: 0 auto;
}

.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.contact-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel a,
.contact-panel strong {
  overflow-wrap: anywhere;
  color: var(--navy);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  direction: rtl;
}

.page-hero {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 54px);
  background:
    linear-gradient(270deg, rgba(23, 50, 77, 0.96), rgba(32, 113, 95, 0.88)),
    var(--navy);
  color: #fff;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
}

.form-shell {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 54px);
}

.request-form {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.request-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.request-form input,
.request-form textarea,
.request-form select,
.admin-card input,
.inline-edit input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
  direction: rtl;
}

.request-form textarea,
.admin-card textarea {
  resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus,
.request-form select:focus,
.admin-card input:focus,
.inline-edit input:focus {
  outline: 3px solid rgba(32, 113, 95, 0.18);
  border-color: var(--green);
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  background: rgba(32, 113, 95, 0.12);
  color: var(--green);
}

.form-status.error {
  background: rgba(183, 44, 55, 0.12);
  color: var(--red);
}

.article-dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 30px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  direction: rtl;
  text-align: right;
}

.article-dialog::backdrop {
  background: rgba(15, 25, 33, 0.62);
}

.dialog-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.article-meta {
  display: inline-flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 7px 11px;
  color: #315d50;
  background: #f2f8f4;
  border: 1px solid rgba(32, 113, 95, 0.18);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

#dialogBody {
  white-space: pre-wrap;
}

.article-page {
  width: min(calc(100% - 32px), 980px);
  max-width: none;
  margin: 28px auto 58px;
  padding: clamp(24px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-header {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5ecef;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--green);
  background: #eef7f2;
  border: 1px solid rgba(32, 113, 95, 0.22);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.article-header h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: 0;
}

.article-header > p:not(.article-meta) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.article-gallery {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-gallery:empty {
  display: none;
}

.article-gallery img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-body {
  display: grid;
  gap: 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.95;
  white-space: normal;
}

.article-body p {
  margin: 0;
}

.admin-body {
  background: #f4f7f8;
}

.admin-auth {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-card {
  display: grid;
  width: min(100%, 440px);
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-card label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.admin-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-layout {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 54px);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-grid article,
.admin-section,
.admin-table article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-grid article {
  padding: 24px;
}

.admin-grid strong {
  display: block;
  color: var(--green);
  font-size: 44px;
}

.admin-grid span {
  color: var(--muted);
  font-weight: 800;
}

.admin-section {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.admin-section h1 {
  margin: 0;
  color: var(--navy);
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
}

.table-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table strong,
.admin-table span {
  display: block;
}

.admin-table span,
.admin-table p {
  color: var(--muted);
}

.compact-form {
  max-width: none;
  margin: 0;
  box-shadow: none;
}

.inline-edit {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

[dir="rtl"] {
  font-family:
    "Segoe UI", Tahoma, Arial, ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 1180px) {
  .site-header,
  .top-nav,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {

  .metrics,
  .featured-grid,
  .archive-grid,
  .rubrique-grid,
  .contact-section,
  .form-grid,
  .hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .boxed-home-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "latest"
      "right"
      "left";
  }

  .column-heading,
  .latest-heading {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .latest-item {
    grid-template-columns: 1fr;
  }

  .latest-thumb img {
    min-height: 220px;
    max-height: 320px;
  }

  .hero {
    min-height: auto;
    padding-block: 58px;
  }

  .news-card.featured:first-child {
    min-height: auto;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-media img:nth-child(n + 2) {
    display: none;
  }

  .admin-header,
  .admin-table article,
  .inline-edit {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

/* Morocco flag editorial skin */
:root {
  --ink: #182124;
  --muted: #5d6a63;
  --line: #d8e0d8;
  --surface: #ffffff;
  --soft: #f2f6f0;
  --navy: #18372f;
  --green: #006233;
  --red: #c1272d;
  --red-dark: #9f1d25;
  --amber: #e4b54b;
  --shadow: 0 14px 34px rgba(24, 33, 36, 0.1);
  --boxed-width: 1280px;
}

body {
  background:
    linear-gradient(90deg, rgba(193, 39, 45, 0.06), transparent 18%, transparent 82%, rgba(0, 98, 51, 0.06)),
    #f7f8f5;
  font-size: 16px;
  line-height: 1.65;
}

.site-header {
  width: min(calc(100% - 32px), var(--boxed-width));
  min-height: 64px;
  margin: 12px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(0, 98, 51, 0.16);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(24, 33, 36, 0.08);
}

.brand {
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 98, 51, 0.12);
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.brand small {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.top-nav {
  gap: 3px;
}

.top-nav a {
  padding: 8px 9px;
  color: #33433d;
  font-size: 13px;
  border-radius: 6px;
}

.top-nav a:hover {
  color: var(--red);
  background: rgba(193, 39, 45, 0.08);
}

.hero {
  width: min(calc(100% - 32px), var(--boxed-width));
  min-height: 400px;
  margin: 14px auto 0;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(0, 98, 51, 0.18);
  border-radius: 8px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.hero-media {
  grid-template-columns: 1.1fr 1fr 0.9fr;
}

.hero-media img {
  filter: saturate(0.98) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(270deg, rgba(0, 98, 51, 0.92), rgba(0, 98, 51, 0.68) 44%, rgba(193, 39, 45, 0.24)),
    linear-gradient(0deg, rgba(24, 33, 36, 0.62), rgba(24, 33, 36, 0.1));
}

.hero-content {
  max-width: 670px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.3;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #ffd9d9;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(27px, 3.55vw, 42px);
  line-height: 1.18;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 13px;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.8;
}

.hero-actions {
  gap: 10px;
  margin-top: 20px;
}

.button,
.load-more {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 14px;
}

.button.primary,
.load-more {
  background: var(--red);
}

.button.primary:hover,
.load-more:hover {
  background: var(--red-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.metrics {
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 14px auto 0;
  gap: 10px;
  background: transparent;
  border: 0;
}

.metrics article {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(24, 33, 36, 0.04);
}

.metrics article:nth-child(odd) {
  border-top: 4px solid var(--red);
}

.metrics article:nth-child(even) {
  border-top: 4px solid var(--green);
}

.metrics strong {
  color: var(--green);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.metrics span {
  margin-top: 6px;
  font-size: 13px;
}

.service-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 16px auto 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 98, 51, 0.18);
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(193, 39, 45, 0.06), transparent 28%, transparent 72%, rgba(0, 98, 51, 0.08)),
    #eaf2ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.service-card {
  position: relative;
  display: grid;
  min-height: 118px;
  align-content: space-between;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 98, 51, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(24, 33, 36, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--red);
}

.service-card-green::before {
  background: var(--green);
}

.service-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.service-card strong {
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.service-card em {
  color: var(--red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.service-card-green em {
  color: var(--green);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 98, 51, 0.28);
  box-shadow: var(--shadow);
}

.section {
  padding: 28px 16px 46px;
}

.section-muted {
  background: transparent;
}

.boxed-home-section {
  background:
    linear-gradient(180deg, rgba(0, 98, 51, 0.045), rgba(255, 255, 255, 0.68) 44%, rgba(193, 39, 45, 0.035)),
    #f3f6f2;
  border-block: 1px solid rgba(24, 33, 36, 0.08);
}

.section h2 {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.2;
}

.boxed-home-shell {
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.36fr) minmax(250px, 0.78fr);
  max-width: var(--boxed-width);
  gap: 12px;
  align-items: stretch;
}

.rubrique-column,
.latest-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 33, 36, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(24, 33, 36, 0.055);
}

.rubrique-column {
  background: linear-gradient(180deg, #fcfdfc, #f8faf8);
}

.latest-column {
  background: #fff;
  border-color: rgba(0, 98, 51, 0.16);
  box-shadow: 0 16px 38px rgba(24, 33, 36, 0.075);
}

.rubrique-column-right {
  border-inline-end-color: rgba(193, 39, 45, 0.24);
}

.rubrique-column-left {
  border-inline-start-color: rgba(0, 98, 51, 0.24);
}

.column-heading {
  min-height: auto;
  margin: -12px -12px 12px;
  padding: 11px 12px;
  align-items: center;
  background: linear-gradient(180deg, #fbfcfb, #f5f8f5);
  border-bottom: 1px solid rgba(24, 33, 36, 0.09);
  border-radius: 10px 10px 0 0;
}

.column-heading h2 {
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 22px);
}

.column-heading .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.latest-heading {
  border: 0;
  border-bottom: 1px solid rgba(0, 98, 51, 0.14);
  background: linear-gradient(180deg, #ffffff, #f7faf7);
}

.latest-list,
.rubrique-box-list {
  gap: 10px;
}

.latest-item,
.rubrique-box,
.news-card {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(24, 33, 36, 0.04);
}

.latest-item {
  grid-template-columns: minmax(128px, 30%) minmax(0, 1fr);
  border-inline-start: 0;
}

.latest-thumb img {
  min-height: 150px;
}

.latest-item-body,
.rubrique-box {
  padding: 14px;
}

.latest-item .meta,
.rubrique-box .rubrique-box-category,
.rubrique-title {
  color: var(--green);
  font-size: 12px;
}

.latest-item h3 {
  margin: 7px 0 8px;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.35;
}

.latest-item p {
  color: #53635c;
  font-size: 14px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
}

.rubrique-box {
  border-top: 0;
  box-shadow: 0 8px 22px rgba(24, 33, 36, 0.052);
}

.rubrique-column .column-heading {
  min-height: 50px;
  box-shadow: none;
}

.rubrique-column .column-heading h2 {
  color: var(--ink);
}

.rubrique-column .column-heading .eyebrow {
  margin: 0;
  opacity: 1;
}

.rubrique-column-right .column-heading {
  background: linear-gradient(180deg, #fffafa, #f8f6f6);
}

.rubrique-column-left .column-heading {
  background: linear-gradient(180deg, #fbfdfb, #f4f8f5);
}

.rubrique-column-right .column-heading .eyebrow,
.rubrique-column-right .column-heading h2 {
  color: #9d1f2b;
}

.rubrique-column-left .column-heading .eyebrow,
.rubrique-column-left .column-heading h2 {
  color: #006233;
}

.rubrique-column .rubrique-box-category {
  display: block;
  margin: 0 -14px 10px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
}

.rubrique-box.no-image .rubrique-box-category {
  margin-top: -14px;
}

.rubrique-column-right .rubrique-box-category {
  color: #9d1f2b;
  background: #fff8f8;
  border-bottom-color: rgba(193, 39, 45, 0.14);
}

.rubrique-column-left .rubrique-box-category {
  color: #006233;
  background: #f6fbf7;
  border-bottom-color: rgba(0, 98, 51, 0.14);
}

.rubrique-box-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin: -14px -14px 12px;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.rubrique-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.rubrique-box-media:hover img {
  transform: scale(1.03);
}

.rubrique-box h3 {
  margin: 7px 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.rubrique-box p {
  font-size: 13px;
  line-height: 1.65;
}

.rubrique-box .read-link,
.latest-item .read-link,
.news-card .read-link {
  color: var(--red);
  font-size: 13px;
}

.archive-button {
  margin-top: 10px;
  background: var(--green);
}

.archive-button:hover {
  background: #004e29;
}

.search-box {
  width: min(100%, 310px);
  gap: 5px;
}

.search-box label {
  font-size: 12px;
}

.search-box input {
  min-height: 40px;
  border-radius: 7px;
  font-size: 14px;
}

.contact-section {
  width: min(calc(100% - 32px), var(--boxed-width));
  padding-block: 42px;
}

.contact-section p {
  font-size: 16px;
  line-height: 1.8;
}

.contact-panel {
  box-shadow: 0 1px 0 rgba(24, 33, 36, 0.04);
  border-top: 4px solid var(--green);
}

.site-footer {
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 26px auto 18px;
  border-radius: 8px;
  border-top: 5px solid var(--green);
  background:
    linear-gradient(90deg, #7f1820, var(--red-dark) 48%, #2a1718);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(42, 23, 24, 0.18);
}

.site-footer a,
.site-footer span {
  color: inherit;
}

.page-hero {
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 14px auto 0;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 8px;
  background:
    linear-gradient(270deg, rgba(0, 98, 51, 0.96), rgba(193, 39, 45, 0.86)),
    var(--green);
}

.page-hero h1 {
  font-size: clamp(29px, 4.2vw, 50px);
  line-height: 1.18;
}

.page-hero p:not(.eyebrow) {
  margin-top: 12px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
}

.article-page {
  width: min(calc(100% - 32px), 960px);
  max-width: none;
  margin-top: 24px;
}

.article-header h1 {
  color: var(--green);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
}

.article-header > p:not(.article-meta),
.article-body {
  font-size: 17px;
}

.article-gallery img {
  max-height: 520px;
}

@media (max-width: 1180px) {
  .site-header {
    align-items: stretch;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .service-shortcuts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    width: min(calc(100% - 20px), var(--boxed-width));
    min-height: 360px;
    padding-block: 40px;
  }

  .boxed-home-shell {
    grid-template-columns: 1fr;
  }

  .latest-heading {
    align-items: stretch;
  }

  .latest-item {
    grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
  }

  .metrics,
  .service-shortcuts,
  .contact-section,
  .site-footer,
  .article-page,
  .page-hero {
    width: min(calc(100% - 20px), var(--boxed-width));
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(calc(100% - 16px), var(--boxed-width));
    margin-top: 8px;
    padding: 8px 10px;
  }

  .brand strong {
    font-size: 13px;
  }

  .top-nav a {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(27px, 8vw, 38px);
  }

  .metrics,
  .service-shortcuts {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 96px;
  }

  .latest-item {
    grid-template-columns: 1fr;
  }

  .latest-thumb img {
    min-height: 180px;
    max-height: 230px;
  }

  .article-page {
    width: min(calc(100% - 16px), var(--boxed-width));
    margin-top: 12px;
    margin-bottom: 28px;
    padding: 18px;
  }

  .article-header {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .article-header h1 {
    font-size: 24px;
  }

  .article-gallery {
    padding: 8px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.85;
  }

  .site-footer {
    align-items: flex-start;
  }
}

/* Professional editorial direction */
body {
  background: #f3f5f1;
}

.site-header {
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 14px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(24, 33, 36, 0.08);
  border-top: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(24, 33, 36, 0.08);
}

.brand-logo {
  width: 52px;
  height: 52px;
  border: 1px solid #e3e8df;
  border-radius: 10px;
}

.brand strong {
  font-size: 15px;
  color: #14221c;
}

.brand small {
  color: #6b766d;
}

.top-nav {
  gap: 2px;
}

.top-nav a {
  padding: 8px 10px;
  color: #394941;
  border-radius: 999px;
  font-size: 13px;
}

.top-nav a:hover {
  color: #006233;
  background: #edf5ef;
}

.hero {
  width: min(calc(100% - 32px), var(--boxed-width));
  min-height: 390px;
  margin: 14px auto 0;
  padding: clamp(34px, 5vw, 58px);
  border: 0;
  border-radius: 14px;
  background: #0d3d2c;
  box-shadow: 0 20px 50px rgba(24, 33, 36, 0.14);
}

.hero-media {
  grid-template-columns: 0.85fr 1.2fr 0.95fr;
}

.hero-media img {
  filter: saturate(1.02) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(270deg, rgba(7, 68, 42, 0.92), rgba(7, 68, 42, 0.76) 42%, rgba(7, 68, 42, 0.24)),
    linear-gradient(0deg, rgba(13, 22, 18, 0.58), rgba(13, 22, 18, 0.06));
}

.hero-content {
  max-width: 720px;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f1d7d7;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(30px, 3.6vw, 45px);
  line-height: 1.18;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  font-size: clamp(15px, 1.45vw, 18px);
}

.button,
.load-more {
  min-height: 42px;
  border-radius: 999px;
}

.button.primary,
.load-more {
  background: #c1272d;
  box-shadow: 0 10px 24px rgba(193, 39, 45, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.metrics {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 72px), 1120px);
  margin: -24px auto 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 33, 36, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 33, 36, 0.1);
}

.metrics article,
.metrics article:nth-child(odd),
.metrics article:nth-child(even) {
  padding: 18px 24px;
  border: 0;
  border-inline-start: 1px solid #edf0ec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.metrics article:last-child {
  border-inline-start: 0;
}

.metrics strong {
  color: #006233;
  font-size: clamp(27px, 2.8vw, 36px);
}

.metrics span {
  color: #66736b;
}

.service-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 18px auto 0;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-card {
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid rgba(24, 33, 36, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 33, 36, 0.06);
}

.service-card::before {
  inset-block: auto 14px;
  inset-inline-start: 18px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #d7e3dc;
}

.service-card-red::before {
  background: #e8c7c9;
}

.service-card-green::before {
  background: #bfd7c9;
}

.service-card span {
  color: #7a847e;
}

.service-card strong {
  font-size: 17px;
}

.service-card em {
  color: #9f1d25;
}

.service-card-green em {
  color: #006233;
}

.boxed-home-section {
  margin-top: 30px;
  padding: 34px 16px 52px;
  background: #edf2ed;
  border-block: 1px solid rgba(24, 33, 36, 0.06);
}

.boxed-home-shell {
  grid-template-columns: minmax(245px, 0.76fr) minmax(0, 1.42fr) minmax(245px, 0.76fr);
  gap: 0;
  overflow: hidden;
  max-width: var(--boxed-width);
  background: #fff;
  border: 1px solid rgba(24, 33, 36, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(24, 33, 36, 0.09);
}

.rubrique-column,
.latest-column {
  padding: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.latest-column {
  border-inline: 1px solid #e2e8e2;
}

.rubrique-column-right,
.rubrique-column-left {
  border-color: transparent;
}

.column-heading,
.rubrique-column .column-heading,
.rubrique-column-right .column-heading,
.rubrique-column-left .column-heading,
.latest-heading {
  margin: -18px -18px 16px;
  padding: 17px 18px 15px;
  min-height: 66px;
  background: #fbfcfb;
  border: 0;
  border-bottom: 1px solid #e7ece7;
  border-radius: 0;
  box-shadow: none;
}

.column-heading h2,
.rubrique-column .column-heading h2,
.rubrique-column-right .column-heading h2,
.rubrique-column-left .column-heading h2 {
  color: #17221c;
  font-size: clamp(19px, 1.55vw, 23px);
}

.column-heading .eyebrow,
.rubrique-column .column-heading .eyebrow,
.rubrique-column-right .column-heading .eyebrow,
.rubrique-column-left .column-heading .eyebrow {
  color: #78837b;
}

.latest-heading h2 {
  font-size: clamp(22px, 1.85vw, 27px);
}

.latest-list,
.rubrique-box-list {
  gap: 0;
}

.latest-item,
.rubrique-box,
.news-card {
  border-color: #e4e9e3;
  border-radius: 10px;
}

.latest-item {
  grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
  margin-bottom: 12px;
  border: 1px solid #e4e9e3;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 33, 36, 0.045);
}

.latest-thumb img {
  min-height: 162px;
}

.latest-item-body {
  padding: 16px 17px;
}

.latest-item .meta {
  color: #006233;
  font-size: 12px;
}

.latest-item h3 {
  margin: 8px 0 9px;
  color: #14221c;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.36;
}

.latest-item p {
  color: #59675f;
  font-size: 14px;
}

.rubrique-box {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e7ece7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rubrique-box:first-child {
  padding-top: 0;
}

.rubrique-box:last-child {
  border-bottom: 0;
}

.rubrique-box-media {
  margin: 0 0 10px;
  border: 0;
  border-radius: 10px;
}

.rubrique-column .rubrique-box-category,
.rubrique-column-right .rubrique-box-category,
.rubrique-column-left .rubrique-box-category,
.rubrique-box.no-image .rubrique-box-category {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid #e3e9e3;
  border-radius: 999px;
  background: #f7faf7;
  color: #006233;
  font-size: 11px;
}

.rubrique-box h3 {
  margin: 0 0 8px;
  color: #18251f;
  font-size: 15.5px;
}

.rubrique-box p {
  color: #637067;
}

.rubrique-box .read-link,
.latest-item .read-link,
.news-card .read-link {
  color: #9f1d25;
}

.archive-button {
  margin-top: 6px;
  background: #006233;
  box-shadow: none;
}

.archive-button:hover {
  background: #004e29;
}

.contact-section {
  width: min(calc(100% - 32px), var(--boxed-width));
  padding-block: 46px;
}

.contact-panel {
  border-top: 0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(24, 33, 36, 0.07);
}

.site-footer {
  width: min(calc(100% - 32px), var(--boxed-width));
  margin: 24px auto 18px;
  border: 0;
  border-radius: 12px;
  background: #15382b;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(21, 56, 43, 0.16);
}

@media (max-width: 900px) {
  .hero,
  .metrics,
  .service-shortcuts,
  .contact-section,
  .site-footer,
  .page-hero {
    width: min(calc(100% - 20px), var(--boxed-width));
  }

  .metrics {
    margin-top: 12px;
  }

  .boxed-home-shell {
    grid-template-columns: 1fr;
  }

  .latest-column {
    border-inline: 0;
    border-block: 1px solid #e2e8e2;
  }

  .latest-item {
    grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    overflow-x: hidden;
  }

  .site-header,
  .hero,
  .metrics,
  .service-shortcuts,
  .contact-section,
  .site-footer,
  .page-hero {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px);
    margin-right: auto;
    margin-left: auto;
  }

  .site-header {
    align-items: stretch;
    gap: 12px;
  }

  .brand,
  .brand span {
    min-width: 0;
  }

  .brand strong {
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .top-nav a {
    min-width: 0;
    min-height: 36px;
    padding: 7px 6px;
    white-space: normal;
    text-align: center;
  }

  .hero {
    min-height: 390px;
    padding: 30px 22px;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(25px, 7vw, 32px);
    overflow-wrap: anywhere;
  }

  .hero p:not(.eyebrow) {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-shortcuts,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: 12px;
  }

  .metrics article {
    min-width: 0;
    border-inline-start: 0;
    border-bottom: 1px solid #edf0ec;
    text-align: center;
  }

  .boxed-home-section {
    padding-inline: 8px;
  }

  .boxed-home-shell,
  .rubrique-column,
  .latest-column,
  .service-card {
    min-width: 0;
  }

  .boxed-home-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .service-card {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .latest-item {
    grid-template-columns: 1fr;
  }
}
