/* ======================
   GLOBAL
====================== */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  font-size: clamp(14px, 1.2vw, 18px);
}

/* zone principale */
.main {
  flex: 1;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* ======================
   HEADER
====================== */
.header {
  position: sticky;
  top: 0;
  left:0;
  width:100%;
  z-index: 1000;

  background: url("repair1.jpg") center/cover no-repeat;
  color: white;
}

/* overlay */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.header-top,
.menu {
  position: relative;
  z-index: 2;
}

/* TOP */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
}

/* LOGO */
.logo {
  position: absolute;
  left: 20px;
}

.logo img {
  height: 50px;
  border-radius: 8px;
}

/* TITRE */
.title {
  text-align: center;
}

.title h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 42px);
}

.title p {
  margin: 0;
  font-size: clamp(14px, 2vw, 20px);
  color: #27ae60;
}

/* ======================
   MENU
====================== */
.menu {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  position: relative;
  transition: 0.3s;
}

/* animation underline */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #27ae60;
  transition: 0.3s;
}

.menu a:hover {
  color: #27ae60;
}

.menu a:hover::after {
  width: 100%;
}
.info-box-footer{
  color:rgb(240, 245, 245)
}
/* ======================
   CARDS / CONTENU
====================== */
.card {
  background: white;
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h1,
h2 {
  color: #27ae60;
}

/* ======================
   BOUTONS
====================== */
.btn {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #219150;
}

/* ======================
   GALERIE PHOTOS
====================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.gallery img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ======================
   LOGIN
====================== */
.login-card {
  max-width: 350px;
  margin: 80px auto;
  padding: 25px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-card input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login-card button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #27ae60;
  color: white;
  cursor: pointer;
}

.login-card button:hover {
  background: #219150;
}

/* ======================
   FOOTER
====================== */
.footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 20px 10px;
  margin-top: auto;
}

.footer p {
  margin: 5px 0;
}

/* ======================
   BURGER
====================== */
.burger {
  display: none;
  font-size: 2em;
  cursor: pointer;
  position: absolute;
  right: 20px;
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {

  .burger {
    display: block;
  }

  .gallery {
    grid-template-columns: 1fr !important;
  }

  .gallery img {
    height: 300px;
    object-fit: cover;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    right: 0%;
    width: 30%;
    text-align: center;
  }

  .menu a {
    padding: 15px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu.show {
    display: flex;
  }

}
/* =========================
   TABLEAUX
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th {
  background: #2c3e50;
  color: white;
  padding: 10px;
  text-align: left;
}

td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: #f9f9f9;
}

/* =========================
   FORMULAIRES
========================= */

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #1a242f;
}

/* =========================
   SIDEBAR ADMIN
========================= */
.sidebar {
  width: 220px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #2c3e50;
  color: white;
  padding: 20px;
}

.sidebar a {
  display: block;
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 5px;
}

.sidebar a:hover {
  background: #34495e;
}

.sidebar-header {
  margin-bottom: 10px;
}
/* =========================
   LOGIN / CENTER PAGE
========================= */

.login-box {
  max-width: 400px;
  margin: 80px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
}

/* =========================
   TITRES
========================= */

h1, h2 {
  margin-top: 0;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
  }

  table {
    font-size: 14px;
  }
}