:root {
  --primary: #2c624b;
  --secondary: #6e8b4a;
  --bg: #ffffff;
  --surface: #fcfcfa;
  --text: #1b1f0f;
  --muted: #59614b;
  --border: #d9ded3;
  --dark: #14180f;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 40px rgba(27, 31, 15, 0.08);
}


html,
body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}




* {
  box-sizing: border-box;
  }
a { text-decoration: none; color: inherit; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrapper {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.logo {
  height: 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}


.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: center;
  gap: 28px;
  min-height: 370px;
  margin-top: 12px;
  padding: 48px;
  border-radius: 40px;
}

/* image pour les jeu*/

.hero-pattern {
  background: url("https://uploads.onecompiler.io/44ggwuaxa/44ggw39ct/sage_green_motif.jpg") center/cover no-repeat;
}

.img-quiz {
  background: url("https://i.pinimg.com/736x/0b/9f/e8/0b9fe8b341292d8ef200e28ecdb72535.jpg") center/cover no-repeat;
}

.img-mots {
  background: url("https://i.pinimg.com/736x/1f/55/72/1f55725531be7c67499d4d70f8bc0211.jpg") center/cover no-repeat;
}

.img-salon {
  background: url("../images/salon.jpg") center/cover no-repeat;
}

.img-pdf {
  background: url("https://i.pinimg.com/736x/2c/5a/62/2c5a62f34201aa471affcbca42e9e915.jpg") center/cover no-repeat;
}
.img-rapidite {
  background: url("https://i.pinimg.com/736x/65/0a/a3/650aa3a1c94368e26c4e8179a9252566.jpg") center/cover no-repeat;
}
.img-duel {
  background: url("https://i.pinimg.com/1200x/1f/6c/8e/1f6c8e525f0536085ef4eeff45f797c2.jpg") center/cover no-repeat;
}




.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero p {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #233222;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}



.blob-logo {
  width: 500px;
  height: auto;
  object-fit: contain;
}

.search-panel {
  margin: 28px 0 8px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-form input {
  height: 62px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-form input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(110, 139, 74, 0.12);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 36px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 2rem;
}

.section-link {
  font-weight: 700;
  color: var(--primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}


.game-card {
  padding: 18px;
}

.game-img {
  height: 155px;
  margin-bottom: 16px;
  border-radius: 22px;
}
.game-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 34px 0 48px;
}

.info-card {
  padding: 24px;
}

.footer {
  margin-top: 36px;
  background: var(--dark);
  color: var(--white);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.full {
  width: 100%;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--primary);
  color: var(--primary);
}
.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  .section-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form,
  .games-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .logo {
    height: 48px;
  }
}

.game-card:hover,
.info-card:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 40px rgba(27, 31, 15, 0.12);
  
}










/* ===== PAGE LOGIN ===== */


.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 30px 0 50px;
  min-height: calc(100vh - 220px);
}
.login-visual {
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.login-visual-overlay {
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.28);
  
}


.login-visual h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.login-visual p {
  max-width: 460px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #233222;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0 0 22px;
  font-size: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form label {
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.login-form input {
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  outline: none;
  background: #fff;
}

.login-form input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(110, 139, 74, 0.12);
}

.login-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.login-links {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.login-links a {
  color: var(--primary);
  font-weight: 500;
}

.message {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}

.message.error {
  background: #f3e5e5;
  color: #8a2d2d;
}

.message.success {
  background: #e3f0d3;
  color: #365021;
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 320px;
  }
}







/* ===== PAGE JEUX ===== */

.games-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin: 30px 0 50px;
  align-items: start;
}

.games-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 20px;
}

.games-sidebar h2 {
  margin: 0 0 20px 0;
  font-size: 1.8rem;
}

.games-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.games-filter-form label {
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}

.games-filter-form input,
.games-filter-form select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  outline: none;
}

.games-filter-form input:focus,
.games-filter-form select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(110, 139, 74, 0.12);
}

.games-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.games-grid-page {
  grid-template-columns: repeat(3, 1fr);
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}

.empty-state h3 {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .games-page {
    grid-template-columns: 1fr;
  }

  .games-sidebar {
    position: static;
  }

  .games-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .games-grid-page {
    grid-template-columns: 1fr;
  }
}








.captcha-question {
    padding: 14px 16px;
    background: #f6f6f2;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--primary);
    font-weight: 700;
    margin: 4px 0 8px;
}









#captcha-puzzle {
    width: 300px;
    height: 300px;
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 2px;
    margin-top: 20px;
}

.captcha-piece {
    width: 100px;
    height: 100px;
    background-repeat: no-repeat;
    background-color: #ddd;
    border: 1px solid #999;
}

.captcha-piece:active {
    cursor: grabbing;
}

@media (max-width: 480px) {
    .captcha-puzzle {
        grid-template-columns: repeat(3, 75px);
        grid-template-rows: repeat(3, 75px);
    }

    .captcha-piece {
        width: 75px;
        height: 75px;
    }
}


.img-tournoi {
    background-image: url('https://i.pinimg.com/736x/53/4f/f9/534ff924bbec1ad4235b78eb7d164037.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
}


