@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;700&display=swap');

:root {
  --red-main: #C40606;
  --orange-main: #E35412;
  --text-color: #222222;
  --bg-light: #f7f7f7;
  --font-family-main: "Golos Mono", "Golos Text", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-main);
  font-size: 1rem;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Typo */
h1 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-main);
}

h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-family-main);
}

h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-family-main);
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  color: var(--orange-main);
  text-decoration: underline;
}

a:hover {
  color: var(--red-main);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Layout principal */
header {
  background: #ffffff;
  border-bottom: 3px solid var(--red-main);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.header-title {
  text-align: right;
  flex: 1;
}

.header-title small {
  display: block;
  color: #666666;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Menu latéral droit flottant déclenché au survol */
.side-menu-trigger-zone {
  position: fixed;
  top: 0;
  right: 0;
  width: 50px;
  height: 100vh;
  z-index: 998;
  cursor: pointer;
  background: transparent;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--red-main);
  color: #ffffff;
  padding: 1.5rem 1rem;
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--orange-main);
}

.side-menu-trigger-zone:hover ~ .side-menu,
.side-menu:hover {
  right: 0;
}

.side-menu h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.side-menu nav ul {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.side-menu nav ul li {
  margin-bottom: 0.5rem;
}

.side-menu a {
  color: #E35412;
  font-family: var(--font-family-main);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 0.25rem 0.5rem;
  display: block;
  border-radius: 4px;
  background-color: transparent;
}

.side-menu a:hover,
.side-menu a:focus,
.side-menu a.active {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.15);
}

/* Contenu */
.main-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
  min-height: 60vh;
}

.section-image {
  margin: 1.5rem 0;
  text-align: center;
}

.section-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Tableaux */
.table-comparatif {
  margin: 1.5rem 0;
  background-color: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--red-main);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
}

.table tbody td {
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
}

.table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Footer */
footer {
  background-color: var(--orange-main);
  color: #ffffff;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  flex: 1 1 250px;
}

.footer-links h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer-links ul {
  list-style: disc;
  margin: 0;
  padding-left: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  text-decoration-color: #ffffff;
  color: #ffffff;
}

.footer-logo {
  flex: 0 0 auto;
  text-align: right;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
}

.footer-legal {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Responsiveness */
@media (max-width: 767.98px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-title {
    text-align: left;
    width: 100%;
  }

  .header-title h1 {
    font-size: 1.5rem;
  }

  .side-menu {
    width: 250px;
    right: -270px;
  }

  .side-menu-trigger-zone {
    width: 30px;
  }

  .side-menu-trigger-zone:hover ~ .side-menu,
  .side-menu:hover {
    right: 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-logo {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}
