/* =========================================================
   EVE Framework CSS
   Ne pas modifier ce fichier - utiliser style.css
========================================================= */

/* =========================================================
   1. Base / Reset
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  font-size: var(--base-font-size, 18px);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
}

body {
  font-family: "Courier New", Courier, monospace;
  color: #333;
}

/* Skip link pour accessibilité */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
}

.skip-to-content:focus {
  top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* =========================================================
   2. Layout global
========================================================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
}


/* =========================================================
   3. Header
========================================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2000;
  min-height: 56px;
  margin-top: -10px;
  padding: 0 10px;
  text-align: right;
  background: #fff;
}

.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  margin: 20px;
}

.site-header .site-logo img {
  max-height: 90px;
  width: auto;
}

.site-header .burger {
  margin-left: auto;
}

.site-header .lang-switch {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}

.lang-switch a {
  padding: 1px;
  border: none;
}

.burger {
  display: inline-block;
  background: none;
  border: 0;
  font: inherit;
  padding: 8px;
  cursor: pointer;
}
.burger:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}
/* =========================================================
   4. Font size control
========================================================= */
.font-size-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.font-size-control button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}

.font-size-control button:hover,
.font-size-control button:focus {
  background: #000;
  color: #fff;
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Breadcrumb avec séparateurs */
.site-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-breadcrumb li:not(:last-child)::after {
  content: "»";
  margin-left: 8px;
  color: var(--color-gray);
  font-weight: normal;
}

.site-breadcrumb a {
  font-weight: normal;
}

.site-breadcrumb .breadcrumb-current {
  font-weight: bold;
}

.content {
  width: 75%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space);
}

.content h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

/* =========================================================
   5. Zones principales
========================================================= */
.sidebar,
.content {
  padding: 10px;
  min-height: 200px;
  background: #fff;
}


/* =========================================================
   6. Sidebar
========================================================= */
.sidebar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 16px;
  max-width: 100vw;
  width: max-content;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 3000;
  background: #fff;
}

body.menu-open .sidebar,
body.nav-open .sidebar {
  transform: translateX(0);
}

body.menu-open,
body.nav-open {
  overflow: hidden;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2500;
}

.backdrop[hidden] {
  display: none;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-inner h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.sidebar-menu {
  margin-left: 12px;
}

.sidebar-menu li + li {
  margin-top: 8px;
}


/* --- Logo sidebar --- */
.sidebar-logo-link {
  position: relative;
  display: block;
  padding: 16px 0;
  margin-bottom: 16px;
  text-align: center;
}

.sidebar-logo-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -16px;
  right: -16px;
  height: 1px;
  background: #000;
}

.sidebar .sidebar-logo {
  display: block;
  width: 100%;
  max-width: 90px;
  height: auto;
  margin: 0 auto;
}


/* --- Categories accordion --- */
.sidebar-inner details > summary {
  position: relative;
  padding-left: 20px;
  cursor: pointer;
  list-style: none;
}

.sidebar-inner details > summary:hover {
  text-decoration: underline;
}

.sidebar-inner details > summary::-webkit-details-marker {
  display: none;
}

.sidebar-inner details > summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
}

.sidebar-inner details[open] > summary::before {
  content: "−";
}

.sidebar-inner details > ul.sidebar-menu {
  padding-left: 20px !important;
  margin: 12px 0;
}

.sidebar-inner details + details {
  margin-top: 12px;
}


/* --- Language block --- */
.sidebar-lang {
  margin-top: auto;
  position: relative;
  padding-top: 16px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.sidebar-lang::before {
  content: "";
  position: absolute;
  top: 0;
  left: -16px;
  right: -16px;
  height: 1px;
  background: #000;
}

.sidebar-lang-list li + li {
  margin-top: 8px;
}


/* =========================================================
   7. Footer
========================================================= */
.site-footer {
  width: 100%;
  margin-top: auto;
  margin-bottom: -10px;
  background: #fff;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
}

.site-footer a {
  display: inline-block;
  padding: 6px 10px;
}


/* =========================================================
   8. CSV Tables
========================================================= */
.csv-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
}

.csv-table thead {
  background: #f5f5f5;
  border-bottom: 2px solid #000;
}

.csv-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.csv-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.csv-table tbody tr:hover {
  background: #fafafa;
}

.csv-table tbody tr:last-child td {
  border-bottom: none;
}


/* =========================================================
   9. Formulaire de contact
========================================================= */
.form-container {
  max-width: 600px;
  margin: 2rem 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group .required {
  color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #555;
}

.btn-submit {
  background: #000;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #333;
}

.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid;
}

.alert-success {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}

.alert-error {
  background: #ffebee;
  border-color: #f44336;
  color: #c62828;
}


/* =========================================================
   10. Responsive
========================================================= */
@media (max-width: 900px) {
  .content-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .content-two-col .col-media {
    margin-bottom: 20px;
  }

  .content-two-col .col-media figure {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .csv-table {
    font-size: 0.875rem;
  }
  
  .csv-table th,
  .csv-table td {
    padding: 8px 12px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}
