/*
Theme Name: ATOO Theme
Theme URI: https://atoo.co
Author: ATOO
Author URI: https://atoo.co
Description: Base du thème custom ATOO pour la migration progressive de l'application métier.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: atoo-theme
*/

:root {
  --atoo-primary: #0f766e;
  --atoo-text: #1f2937;
  --atoo-bg: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--atoo-text);
  background: var(--atoo-bg);
}

.site-header {
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}


.site-title {
  margin: 0;
  font-size: 1.25rem;
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.atoo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

a {
  color: var(--atoo-primary);
}


#wrapper {
  min-height: 100vh;
  display: flex;
  background: #f8fafc;
}

#header {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 280px;
  min-height: 100vh;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}

.logoSite {
  display: inline-flex;
}

#logo_site {
  max-width: 170px;
  height: auto;
}

.atoo-greeting {
  margin: 0;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 0.5rem;
  font-weight: 600;
}

#menu ul,
#menu_bas ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

#menu a,
#menu_bas a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  border-radius: 0.5rem;
  color: #334155;
  transition: background-color 0.2s ease;
}

#menu a:hover,
#menu_bas a:hover {
  background: #e2e8f0;
}

#menu_bas {
  margin-top: auto;
}

.menu-text {
  line-height: 1.2;
}

.toggle-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

#container {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 2rem 2rem;
}

@media (max-width: 900px) {
  #wrapper {
    flex-direction: column;
  }

  #header {
    position: static;
    width: 100%;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  #menu ul,
  #menu_bas ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #menu_bas {
    margin-top: 0;
  }

  #container {
    padding: 1.5rem;
  }
}
