/* =========================================================
   ADEH-ONG — feuille de style publique
   Refonte UI/UX : hiérarchie, rythme typographique, couleurs,
   composants, responsive et micro-interactions.
   Aucune classe n'a été supprimée : le HTML et le JS existants
   fonctionnent à l'identique.
========================================================= */

:root {
  /* Verts institutionnels */
  --green-950: #082513;
  --green-900: #0c3319;
  --green-800: #114b26;
  --green-700: #17612f;
  --green-600: #218043;
  --green-500: #2e9450;
  --green-100: #e3f1e4;
  --green-50: #f2f7f1;

  /* Accent récolte (utilisé avec parcimonie) */
  --ochre: #c68a16;
  --ochre-soft: #f0d9a4;
  --sand: #f4efe4;

  /* Neutres */
  --ink: #14201a;
  --ink-soft: #2c382f;
  --muted: #5b6960;
  --line: #dfe6de;
  --line-strong: #c9d4c9;
  --white: #ffffff;

  /* Ombres : trois niveaux au lieu d'une ombre unique */
  --shadow-sm: 0 1px 2px rgba(12, 51, 25, 0.06), 0 2px 6px rgba(12, 51, 25, 0.05);
  --shadow: 0 2px 4px rgba(12, 51, 25, 0.05), 0 12px 28px rgba(12, 51, 25, 0.09);
  --shadow-lg: 0 4px 10px rgba(12, 51, 25, 0.07), 0 26px 60px rgba(12, 51, 25, 0.16);

  /* Typographie */
  --font-body: "Archivo", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Échelle d'espacement (base 4) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --container: 1200px;
  --header-h: 88px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* --- Jetons de thème (mode clair) ---
     Toutes les surfaces du site passent par ces variables :
     le mode sombre se contente de les redéfinir plus bas. */
  --bg: #ffffff;
  --bg-soft: var(--green-50);
  --surface: #ffffff;
  --surface-alt: #fbfcfa;
  --field-bg: #fcfdfc;
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-bg-scrolled: rgba(255, 255, 255, 0.97);
  --logo-plate: transparent;
  --logo-plate-pad: 0px;
}

/* =========================================================
   MODE SOMBRE
   Activé par <html data-theme="dark"> (choix mémorisé ou
   préférence système). Les sections déjà sombres du site
   gardent volontairement leur vert profond.
========================================================= */

[data-theme="dark"] {
  --ink: #e7efe8;
  --ink-soft: #cfdccf;
  --muted: #a3b3a6;
  --line: #24332a;
  --line-strong: #32443a;

  --bg: #0d1712;
  --bg-soft: #111d16;
  --surface: #14201a;
  --surface-alt: #182620;
  --field-bg: #101a14;
  --header-bg: rgba(13, 23, 18, 0.86);
  --header-bg-scrolled: rgba(13, 23, 18, 0.97);

  /* Le logo est fourni sur fond clair : on lui pose une plaque
     blanche arrondie pour qu'il reste net sur fond sombre. */
  --logo-plate: #ffffff;
  --logo-plate-pad: 6px;

  /* Verts éclaircis pour rester lisibles sur fond sombre */
  --green-700: #4bab68;
  --green-800: #3d9558;
  --green-600: #5cbb7a;
  --green-500: #6ec98a;
  --green-100: #1d3527;
  --green-50: #16241c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 34px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 6px 14px rgba(0, 0, 0, 0.4), 0 30px 64px rgba(0, 0, 0, 0.5);
}

/* Éléments qui doivent rester lisibles quel que soit le thème */
[data-theme="dark"] .btn-dark {
  color: #08170e;
  background: var(--green-600);
}

[data-theme="dark"] .btn-dark:hover,
[data-theme="dark"] .btn-dark:focus-visible {
  background: var(--green-500);
}

[data-theme="dark"] .site-form .btn-primary {
  color: #08170e;
  background: var(--green-600);
}

[data-theme="dark"] .site-form .btn-primary:hover,
[data-theme="dark"] .site-form .btn-primary:focus-visible {
  background: var(--green-500);
}

[data-theme="dark"] .card-icon {
  color: var(--green-600);
}

[data-theme="dark"] .info-panel,
[data-theme="dark"] .section-dark {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(46, 148, 80, 0.14), transparent 60%),
    #0b170f;
}

[data-theme="dark"] .resource-icon {
  background: #a33c3c;
}

[data-theme="dark"] .form-group input[type="file"] {
  background: var(--surface-alt);
}

[data-theme="dark"] .site-footer {
  background: #09130d;
}

[data-theme="dark"] .brand,
[data-theme="dark"] .footer-brand {
  color: var(--ink);
}

[data-theme="dark"] .menu-toggle span {
  background: var(--ink);
}

[data-theme="dark"] .filter-btn.active {
  color: #08170e;
}

[data-theme="dark"] ::selection {
  background: var(--green-700);
  color: #08170e;
}

[data-theme="dark"] .main-nav .nav-contact {
  color: #08170e;
  background: var(--green-600);
}

[data-theme="dark"] .main-nav .nav-contact:hover,
[data-theme="dark"] .main-nav .nav-contact:focus {
  color: #08170e;
  background: var(--green-500);
}

/* =========================================================
   BASE
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

::selection {
  background: var(--green-100);
  color: var(--green-900);
}

/* Focus clavier visible et homogène sur tout le site */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10000;
  padding: 12px 18px;
  color: var(--white);
  background: var(--green-800);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   RYTHME VERTICAL DES SECTIONS
========================================================= */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-dark {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(33, 128, 67, 0.22), transparent 60%),
    var(--green-950);
  color: var(--white);
}

/* =========================================================
   TYPOGRAPHIE
========================================================= */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  margin-bottom: var(--sp-3);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

h2 {
  margin-bottom: var(--sp-5);
  font-size: clamp(1.95rem, 1.2rem + 2.4vw, 3.1rem);
}

p {
  margin-bottom: var(--sp-4);
  max-width: 68ch;
}

/* Étiquette de section : petit repère + filet ocre, en casse normale
   (plus sobre et plus lisible qu'un label en capitales espacées) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--sp-4);
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--ochre);
  border-radius: 2px;
}

.eyebrow.light {
  color: var(--ochre-soft);
}

.eyebrow.light::before {
  background: var(--ochre);
}

.section-heading {
  max-width: 62ch;
  margin-bottom: var(--sp-7);
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.heading-light > p:last-child {
  color: #c9d8c8;
}

.split-heading {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.split-heading > p {
  margin-bottom: 0;
  padding-bottom: 6px;
  color: var(--muted);
}

/* =========================================================
   EN-TÊTE
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

/* Classe ajoutée par script.js au défilement */
.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(12, 51, 25, 0.07);
}

.header-content {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  text-decoration: none;
}

/* Logo de la navbar : hauteur fixe, largeur automatique — le ratio
   d'origine (177 x 93) est donc préservé, sans déformation. */
.brand img {
  width: auto;
  height: 64px;
  max-width: 132px;
  object-fit: contain;
  padding: var(--logo-plate-pad);
  background: var(--logo-plate);
  border-radius: 10px;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.main-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 9px 11px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  background: var(--ochre);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:not(.nav-contact):hover,
.main-nav a:not(.nav-contact):focus {
  color: var(--green-800);
  background: var(--green-50);
}

/* Section courante : classe posée par script.js */
.main-nav a.is-active:not(.nav-contact) {
  color: var(--green-800);
  font-weight: 600;
}

.main-nav a.is-active:not(.nav-contact)::after,
.main-nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
}

.main-nav .nav-contact {
  margin-left: 8px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--green-700);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(23, 97, 47, 0.28);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact:focus {
  color: var(--white);
  background: var(--green-800);
  box-shadow: 0 6px 18px rgba(23, 97, 47, 0.32);
  transform: translateY(-1px);
}

/* Outils de l'en-tête : sélecteur de langue, bascule de thème, burger */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  order: 3;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-btn {
  padding: 4px 8px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--green-700);
}

.lang-btn.is-active {
  color: #fff;
  background: var(--green-700);
}

[data-theme="dark"] .lang-btn.is-active {
  color: #08170e;
}

.lang-sep {
  color: var(--line-strong);
  font-size: 0.8rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Une seule icône visible à la fois, selon le thème actif */
.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      104deg,
      rgba(5, 25, 12, 0.95) 0%,
      rgba(8, 37, 18, 0.88) 42%,
      rgba(8, 37, 18, 0.42) 78%,
      rgba(8, 37, 18, 0.24) 100%
    ),
    url("assets/photos/photo-01.jpg") center 30% / cover no-repeat,
    var(--green-900);
}

/* Voile discret : dégradé bas + trame verticale très légère,
   à la place de l'ancien motif à pois. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to top, rgba(6, 28, 13, 0.85), transparent 38%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 88px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(96px, 14vh, 140px);
  color: var(--white);
}

.hero .eyebrow {
  max-width: 44ch;
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: var(--sp-5);
  font-size: clamp(2.6rem, 1.3rem + 5vw, 4.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  color: #d9ead0;
}

.hero-text {
  max-width: 58ch;
  color: #dde7dc;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(40px, 7vh, 72px);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-signature span {
  padding: 7px 14px;
  color: #e6f0e0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* =========================================================
   BOUTONS ET LIENS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #0d2413;
  background: #dbeccf;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--green-900);
  border-color: var(--white);
  background: var(--white);
}

.btn-dark {
  color: var(--white);
  background: var(--green-800);
  box-shadow: 0 4px 14px rgba(17, 75, 38, 0.25);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--green-950);
  box-shadow: 0 10px 26px rgba(17, 75, 38, 0.3);
}

/* Bouton de soumission dans une carte blanche : version pleine,
   nettement plus lisible que le vert pâle sur fond blanc. */
.site-form .btn-primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 4px 14px rgba(23, 97, 47, 0.25);
}

.site-form .btn-primary:hover,
.site-form .btn-primary:focus-visible {
  background: var(--green-800);
  box-shadow: 0 10px 26px rgba(23, 97, 47, 0.3);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 2px;
  color: var(--green-700);
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--green-900);
}

[data-theme="dark"] .text-link:hover,
[data-theme="dark"] .text-link:focus-visible {
  color: var(--green-500);
}

.text-link span[aria-hidden="true"] {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.text-link:hover span[aria-hidden="true"],
.text-link:focus-visible span[aria-hidden="true"] {
  transform: translateX(5px);
}

/* =========================================================
   INTRODUCTION
========================================================= */

.intro-section {
  padding-block: clamp(56px, 8vw, 104px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.intro-grid h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.7rem);
}

.intro-content {
  max-width: 56ch;
  color: var(--muted);
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 2px solid var(--green-100);
}

.intro-content p {
  font-size: 1.05rem;
}

/* =========================================================
   ENGAGEMENT (vision / mission / ambition)
========================================================= */

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  align-items: start;
}

.commitment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-6) var(--sp-7);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.commitment-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--sp-6);
  width: 44px;
  height: 3px;
  background: var(--ochre);
  border-radius: 0 0 3px 3px;
}

.commitment-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.commitment-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.commitment-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-5);
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 16px;
  font-size: 1.5rem;
  line-height: 1;
}

/* =========================================================
   DOMAINES D'INTERVENTION
========================================================= */

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-5);
}

/* Chaque domaine est illustré par une photo de mission réelle :
   image nette (object-fit: cover, ratio constant), sans filtre
   assombrissant, surmontée du seul numéro de la case. */
.domain-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.domain-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.domain-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-100);
}

.domain-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.domain-card:hover .domain-media img {
  transform: scale(1.05);
}

.domain-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 5px 12px;
  color: #fff;
  background: rgba(7, 26, 13, 0.72);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease);
}

.domain-card:hover .domain-number {
  background: var(--ochre);
}

.domain-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}

.domain-card h3 {
  font-size: 1.08rem;
}

.domain-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   RÉALISATIONS (photos mises en avant)
========================================================= */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
}

.featured-card {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  background: var(--green-800);
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.featured-card:hover,
.featured-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.featured-card:hover img,
.featured-card:focus-visible img {
  transform: scale(1.07);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 20, 9, 0) 42%,
    rgba(4, 20, 9, 0.42) 68%,
    rgba(3, 17, 8, 0.88) 100%
  );
}

.featured-content {
  position: absolute;
  right: var(--sp-5);
  bottom: var(--sp-5);
  left: var(--sp-5);
  display: grid;
  gap: 7px;
}

.featured-content small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ochre-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.featured-content small::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ochre);
}

.featured-content strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.22;
}

.featured-content span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.featured-content span::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.25s var(--ease);
}

.featured-card:hover .featured-content span::after,
.featured-card:focus-visible .featured-content span::after {
  transform: translateX(4px);
}

/* =========================================================
   PROJETS
========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.projects-text {
  max-width: 58ch;
  margin-bottom: var(--sp-6);
  color: var(--muted);
  font-size: 1.04rem;
}

.info-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  color: var(--white);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(46, 148, 80, 0.4), transparent 62%),
    var(--green-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.info-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.info-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: var(--sp-6);
  color: var(--ochre-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.info-panel-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--ochre);
  border-radius: 2px;
}

.info-panel h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.info-panel p {
  position: relative;
  z-index: 1;
  color: #d6e6d5;
}

.info-panel .text-link {
  position: relative;
  z-index: 1;
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.info-panel .text-link:hover {
  color: var(--ochre-soft);
}

/* =========================================================
   ZONES DE TERRAIN
========================================================= */

.zones-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.zones-grid > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.locations-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.location-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-600);
}

.location-tag:hover {
  background: var(--green-100);
  border-color: var(--green-500);
}

/* =========================================================
   GALERIE
========================================================= */

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  padding: 10px 18px;
  color: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--green-600);
  background: var(--green-50);
}

.filter-btn.active {
  color: var(--white);
  border-color: var(--green-800);
  background: var(--green-800);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(17, 75, 38, 0.22);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: var(--sp-4);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: var(--radius);
  background: var(--green-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 20, 9, 0.88) 0%,
    rgba(4, 20, 9, 0.34) 46%,
    rgba(4, 20, 9, 0) 78%
  );
  transition: opacity 0.3s var(--ease);
}

.gallery-meta {
  position: absolute;
  z-index: 1;
  right: var(--sp-4);
  bottom: var(--sp-4);
  left: var(--sp-4);
  color: var(--white);
}

.gallery-meta small {
  display: block;
  margin-bottom: 6px;
  color: var(--ochre-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.gallery-meta strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--sp-6);
  color: var(--muted);
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* =========================================================
   RESSOURCES
========================================================= */

.resources-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.resources-grid p {
  color: var(--muted);
}

.resources-list {
  display: grid;
  gap: var(--sp-4);
}

.resource-placeholder {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.resource-placeholder h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.resource-placeholder p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.resource-item {
  text-decoration: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.resource-item:hover,
.resource-item:focus-visible {
  border-left-color: var(--ochre);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.resource-item:hover h3 {
  color: var(--green-700);
}

.resource-icon {
  flex: 0 0 auto;
  display: grid;
  width: 52px;
  height: 62px;
  place-items: center;
  color: var(--white);
  background: #b34141;
  clip-path: polygon(0 0, 74% 0, 100% 24%, 100% 100%, 0 100%);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================================================
   SOUTIEN
========================================================= */

.support-section {
  position: relative;
  background:
    linear-gradient(rgba(6, 30, 13, 0.9), rgba(6, 30, 13, 0.95)),
    url("assets/photos/photo-29.jpg") center / cover no-repeat fixed,
    var(--green-900);
  color: var(--white);
}

.support-content {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.support-content .eyebrow {
  justify-content: center;
}

.support-content h2 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.3rem);
}

.support-content p {
  max-width: 60ch;
  margin-inline: auto;
  color: #d7e5d6;
  font-size: 1.06rem;
}

.support-content .support-actions {
  justify-content: center;
}

/* =========================================================
   CONTACT ET FORMULAIRES
========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5.5vw, 80px);
  align-items: start;
}

.contact-grid > div > p {
  color: var(--muted);
}

.contact-intro > p {
  color: #d3e3d2 !important;
}

.contact-details {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-details.compact {
  gap: 6px;
  padding-top: var(--sp-4);
  border-top-color: var(--line);
}

.contact-details span {
  display: block;
  margin-bottom: 6px;
  color: var(--ochre-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-details p {
  margin: 0;
  max-width: 42ch;
  color: #d6e4d6 !important;
  font-size: 0.97rem;
}

.contact-details a {
  display: inline-block;
  width: fit-content;
  margin-bottom: 4px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-details a:hover {
  border-bottom-color: currentColor;
  text-decoration: none;
}

.contact-grid:not(.contact-intro) .compact a,
.compact a {
  color: var(--green-800);
  font-weight: 600;
}

.site-form {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-light {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group label span {
  color: #b34141;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--field-bg);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa79d;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--green-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--surface);
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(23, 97, 47, 0.12);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235b6960' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form-group input[type="file"] {
  padding: 9px;
  background: var(--green-50);
  border-style: dashed;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 9px 16px;
  color: var(--white);
  border: 0;
  border-radius: 8px;
  background: var(--green-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.form-group input[type="file"]::file-selector-button:hover {
  background: var(--green-800);
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-status {
  min-height: 22px;
  margin: var(--sp-4) 0 0;
  color: var(--green-700);
  font-size: 0.87rem;
  font-weight: 600;
}

.form-status:not(:empty) {
  padding: 10px 14px;
  background: var(--green-50);
  border-left: 3px solid var(--green-600);
  border-radius: 0 8px 8px 0;
}

/* =========================================================
   PIED DE PAGE
========================================================= */

.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 24px;
  color: #c6d3c7;
  background: #061509;
  border-top: 3px solid var(--ochre);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: var(--sp-7);
}

.footer-grid > div > p {
  font-size: 0.93rem;
}

.footer-brand {
  margin-bottom: var(--sp-4);
  color: var(--white);
}

.footer-brand img {
  width: auto;
  height: 72px;
  max-width: 150px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 6px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.footer-slogan {
  max-width: 34ch;
  margin-top: var(--sp-4);
  padding-left: var(--sp-4);
  color: #e6efe3;
  border-left: 2px solid var(--ochre);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.5;
}

.site-footer h3 {
  margin-bottom: var(--sp-4);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer a:not(.footer-brand) {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #c6d3c7;
  font-size: 0.89rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-footer a:not(.footer-brand):hover {
  color: var(--white);
  transform: translateX(3px);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  margin-bottom: 0 !important;
}

/* =========================================================
   VISIONNEUSE (LIGHTBOX)
========================================================= */

.lightbox {
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100% - 40px);
  padding: 0;
  overflow: visible;
  color: var(--white);
  border: 0;
  border-radius: var(--radius-lg);
  background: #061409;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.lightbox[open] {
  animation: lightboxIn 0.28s var(--ease);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.lightbox::backdrop {
  background: rgba(3, 12, 6, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #0a1a0d;
}

.lightbox figcaption {
  padding: var(--sp-5) clamp(20px, 5vw, 62px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ochre-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.lightbox figcaption span::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--ochre);
}

.lightbox figcaption p {
  max-width: 78ch;
  margin: 8px 0 4px;
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.45;
}

.lightbox figcaption small {
  color: #b9c9ba;
  font-size: 0.85rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(6, 20, 9, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--green-700);
  border-color: var(--green-500);
  transform: scale(1.06);
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* =========================================================
   APPARITION AU DÉFILEMENT
   Activée uniquement si le JS est disponible : sans JS,
   tout le contenu reste visible.
========================================================= */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-anim .reveal {
    opacity: 1;
    transform: none;
  }

  .support-section {
    background-attachment: scroll;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1220px) {
  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 8px 7px;
    font-size: 0.8rem;
  }

  .main-nav .nav-contact {
    padding: 10px 15px;
  }
}

/* En dessous de 1080 px, la navigation passe dans le menu burger :
   le sélecteur de langue et la bascule de thème restent visibles. */
@media (max-width: 1080px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    padding: var(--sp-4) 24px var(--sp-5);
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(8, 31, 14, 0.14);
  }

  .main-nav.open {
    display: grid;
    animation: navDrop 0.24s var(--ease);
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
  }

  .main-nav a {
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 0.97rem;
  }

  .main-nav a:not(.nav-contact)::after {
    display: none;
  }

  .main-nav a.is-active:not(.nav-contact) {
    background: var(--green-50);
  }

  .main-nav .nav-contact {
    display: flex;
    margin-top: var(--sp-3);
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 1000px) {
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .support-section {
    background-attachment: scroll;
  }

  .brand img {
    height: 56px;
  }

  .footer-brand img {
    height: 62px;
  }

  .intro-grid,
  .split-heading,
  .projects-grid,
  .zones-grid,
  .resources-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .split-heading > p {
    padding-bottom: 0;
  }

  .intro-content {
    padding-left: var(--sp-4);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand img {
    height: 48px;
    max-width: 104px;
  }

  .footer-brand img {
    height: 56px;
  }

  .header-tools {
    gap: 6px;
  }

  .lang-switch {
    padding: 3px 5px;
  }

  .lang-btn {
    padding: 4px 6px;
    font-size: 0.76rem;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding-block: 88px 72px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.1rem, 1.2rem + 5.4vw, 2.9rem);
  }

  .hero-signature {
    gap: 8px;
  }

  .hero-signature span {
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .hero-actions .btn,
  .support-actions .btn {
    flex: 1 1 100%;
  }

  .domains-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .domain-body {
    padding: var(--sp-4) var(--sp-4) var(--sp-5);
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .featured-content,
  .gallery-meta {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .featured-content strong {
    font-size: 0.95rem;
  }

  .featured-content span {
    font-size: 0.72rem;
  }

  .gallery-meta small {
    font-size: 0.68rem;
  }

  .gallery-meta strong {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .resource-placeholder {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lightbox {
    width: calc(100% - 20px);
    border-radius: var(--radius);
  }

  .lightbox img {
    max-height: 56vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .lightbox figcaption {
    padding: var(--sp-4) var(--sp-4) 74px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: scale(1.06);
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }
}

@media (max-width: 420px) {
  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   IMPRESSION
========================================================= */

@media print {
  .site-header,
  .menu-toggle,
  .gallery-toolbar,
  .hero-actions,
  .support-actions,
  .lightbox {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding-block: 24px;
  }
}
