:root {
  color-scheme: light dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25em;
  background: #dcdcdc;
  color: #273216;
  --bg: #fffafa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --card-bg: #ffffff;
  --border: #d1d5db;
  --card-border: #d1d5db;
  --text: #2f4f4f;
  --text-header: #F6E7C1;
  --muted: #475569;
  --primary: #fef3c6;
  --primary-soft: #e8fdeb;
  --shadow: #0f172a14;
  --hr-epaisseur: 1px;
  --hr-couleur-defaut: #daa520;
  --hr-separation-verticale: 1px;
}

[data-theme='dark'] {
  background: #0b1220;
  color: #e2e8f0;
  --bg: #0b1220;
  --surface: #111827;
  --surface-soft: #1e293b;
  --card-bg: #111827;
  --border: #334155;
  --card-border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #fff8dc;
  --primary-soft: #312e81;
  --shadow: #0f172a59;
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 2vh;
  background: linear-gradient(180deg, #fdf8ef 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

nav {
  width: min(100%, 900px);
  margin: 0 auto 20px auto;
  position: sticky;
  top: 0px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.0rem;
  margin-left: auto;
}

.site-nav li {
  float: none;
  width: auto;
  text-align: center;
}

.site-nav ul::after {
  content: " ";
  display: table;
  clear: both;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: #fef3c6;
  border-radius: 0.9rem;
  padding: 10px 10px 10px 10px;
}

.site-nav a:hover {
  color: #daa520;
  background-color: #739140;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #fef3c6;
  border-radius: 999px;
}

.conteneur {
  margin: 0px 20px;
  height: 1500px;
}

section {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/*
 a:hover {
  text-decoration: underline;
}
*/

button,
input,
select {
  font: inherit;
}

hr {
  border: none;
  height: var(--hr-epaisseur);
  background-color: var(--hr-couleur-defaut);
  margin: var(--hr-separation-verticale) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, #556b2f 0%, #6f7f3a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

[data-theme='dark'] .site-header {
  background: #daa520;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-header);
  flex-wrap: wrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 0.9rem;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.brand-logo0 {
  display: block;
  width: min(100%, 900px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.brand-logo1 {
  display: block;
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
  border-radius: 1.5rem;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.brand-logo2 {
  display: block;
  width: min(100%, 250px);
  height: auto;
  max-width: 250px;
  object-fit: contain;
  border-radius: 1.5rem;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.brand-logo3 {
  display: block;
  width: min(100%, 150px);
  height: auto;
  max-width: 150px;
  margin: 0 0 1rem 0;
  object-fit: contain;
  border-radius: 1.5rem;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--text-header);
  font-size: 0.85rem;
}

.ligne {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #f3e7c8;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 8px 24px rgba(87, 96, 47, 0.06);
}

.gauche {
  width: 40%;
}

.gauche1 {
  width: 20%;
}

.droite {
  width: 60%;
}

.droite1 {
  width: 80%;
}

.colonne-gauche1,
.colonne-droite1 {
  width: 100%;
}

.colonne {
  box-sizing: border-box;
}

.table {
  width: 100%;
}

td,
th {
  width: 33.33%;
  padding: 10px;
  text-align: center;
  vertical-align: top;
}

.table1 {
  width: 100%;
}

.td1,
.th1 {
  width: 33.33%;
  padding-left: 25px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #fdf5e6;
  border-radius: 1.5rem;
}

.introduction {
  margin-top: 10px;
  margin-bottom: 0px;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fdf5e6 50%, #fffafa 100%);
  color: #273216;
  border-radius: 1.4rem;
  box-shadow: 0 12px 30px rgba(87, 96, 47, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 1fr);
  align-items: start;
  gap: 0.5rem;
  padding: clamp(0.5rem, 1vw, 1rem) 0.5rem;
  background: linear-gradient(135deg, #fdf5e6 50%, #fffafa 100%);
  color: #273216;
}

.hero-copy {
  display: grid;
  gap: 0.5rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #daa520;
  font-size: 1.2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.0;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.0rem, 4vw, 3rem);
  line-height: 1.0;
}

.lead {
  margin: 0;
  max-width: 640px;
  line-height: 1.0;
  color: #2f4f4f;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.14));
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: #556b2f;
  color: #F6E7C1;
  font-weight: 700;
}

.ghost {
  background: #739140;
  color: #f6e7c1;
  border-color: rgba(255,255,255,0.18);
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-card {
  background: #ffffff29;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 1.5rem;
  padding: 2rem;
  display: grid;
  align-items: center;
  min-height: 220px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-card p {
  margin: 0;
  line-height: 1.8;
  color: #2f4f4f;
}

.grid-container {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 0;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0px 0px 0px 0px;
}

.box {
  margin: 0;
  background: linear-gradient(135deg, #fdf5e6 50%, #fffafa 100%);
  padding: 20px 20px 0px 20px;
  text-align: left;
  font-family: inherit;
  color: #273216;
  border-radius: 1.2rem;
}

.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }
}

main {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.section {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.category-grid,
.visual-grid,
.document-list {
  display: grid;
  gap: 1rem;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card,
.visual-card,
.document-card,
.editor-panel,
.filters,
.note,
.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.35rem;
  box-shadow: 0 20px 55px var(--shadow);
}

.category-card,
.visual-card,
.document-card {
  padding: 1.5rem;
}

.category-card h3,
.visual-card h3,
.document-card h3 {
  margin: 0 0 0.75rem;
}

.category-card p,
.visual-card p,
.document-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.visual-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  box-shadow: 0 34px 70px #605d9c17;
  overflow: hidden;
  word-break: break-word;
}

.service-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(167, 139, 250, 0.14));
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  color: var(--text);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-wrap;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at top left, rgba(79, 70, 229, 0.14) 0%, transparent 50%), radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.14) 0%, transparent 38%);
  pointer-events: none;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filters input,
.filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  color: var(--text);
}

.document-list {
  grid-template-columns: 1fr;
}

.document-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.document-card h3 {
  margin: 0;
}

.document-card a {
  font-weight: 700;
  color: var(--primary);
}

.editor-panel {
  padding: 2rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.editor-settings {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.settings-group {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.35rem;
  padding: 1.5rem;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.settings-group h3 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.color-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 1rem;
}

.color-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.color-grid input[type="color"] {
  height: 50px;
  border: 2px solid var(--card-border);
  border-radius: 1rem;
  cursor: pointer;
}

.field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field-row label,
.settings-group label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.settings-group input,
.settings-group textarea {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
}

.settings-group input:focus,
.settings-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.settings-group textarea {
  min-height: 100px;
  resize: vertical;
}

.editor-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--surface-soft);
  border-radius: 1rem;
  border: 1px solid var(--card-border);
}

.editor-row input,
.editor-row textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
}

.editor-row textarea {
  min-height: 85px;
  resize: vertical;
}

.editor-row button {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #f8f8ff;
  color: var(--text);
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.editor-row button:hover {
  background: #ededff;
}

#menu-editor,
#service-editor {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-group button {
  margin-top: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-group button:hover {
  background: #f0f0ff;
  border-color: var(--primary);
}

.editor-actions button,
.import-button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.95rem 1.4rem;
  cursor: pointer;
}

.import-button {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 2rem 2rem;
  background: linear-gradient(90deg, #556b2f 0%, #6f7f3a 100%);
  color: #fef3c6;
  margin-top: 1.5rem;
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .document-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  main {
    width: min(1120px, calc(100% - 1.25rem));
    gap: 1.25rem;
  }

  .site-header {
    padding: 0.9rem 0.9rem 0.75rem;
    align-items: flex-start;
  }

  .brand {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  nav {
    width: 100%;
    margin-bottom: 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-left: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    padding: 0.8rem 0.9rem;
    background: rgba(255,255,255,0.08);
    border-radius: 0.8rem;
  }

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

  .full-width {
    grid-column: span 1;
  }

  .ligne {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .colonne-gauche1,
  .colonne-droite1 {
    width: 100%;
  }

  .brand-logo2,
  .brand-logo3 {
    margin: 0 auto 1rem auto;
  }

  .table1,
  .table1 tr,
  .table1 td,
  .section-head table,
  .section-head tr,
  .section-head td {
    display: block;
    width: 100%;
  }

  .table1 tr,
  .section-head tr {
    display: grid;
    gap: 1rem;
  }

  .td1,
  .section-head td {
    padding: 1rem;
    text-align: left;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem;
  }

  .introduction {
    padding: 1rem;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-actions,
  .editor-actions {
    flex-direction: column;
  }

  .category-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    font-size: 1rem;
  }
}