/* ================================
   FLAT DESIGN 2025 - BEE NATUREL
   Couleurs: Orange #f59e16 | Marron #572616
   Police: Open Sans
   ================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #f59e16;
  --marron: #572616;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --text-dark: #2d2d2d;
  --text-light: #6b6b6b;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #fafafa url("fondbg.png") repeat;
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   MENU NAVIGATION TOP
   ================================ */

.top-nav {
  background: transparent;
  padding: 16px 0;
  position: relative;
  z-index: 100;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-nav li {
  margin: 0;
}

.top-nav a {
  background: #f59e16;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: bold;
  text-decoration: none;
}

.top-nav a:hover {
  background: #572616;
  text-decoration: none;
  color: #fff;
}

.main-content {
  padding: 24px 16px;
}

/* ================================
   FLOCONS DE NEIGE - Style minimaliste
   ================================ */

.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 9999;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ================================
   CONTAINER PRINCIPAL - Flat Design
   ================================ */

.container {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

/* ================================
   TITRES - Flat Design
   ================================ */

h1 {
  background: var(--marron);
  color: white;
  margin: -32px -32px 24px -32px;
  padding: 24px 32px;
  font-size: 24px;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  text-align: center;
  letter-spacing: -0.5px;
}

h2 {
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

h3 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

/* ================================
   SUBTITLE - Flat Design
   ================================ */

.subtitle {
  background: var(--orange);
  color: white;
  margin: 0 -32px 24px -32px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.2px;
}

/* ================================
   BOXES - Flat Design
   ================================ */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.box:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 12px var(--shadow);
}

.box h2 {
  margin-bottom: 12px;
}

.box p {
  margin-bottom: 20px;
}

/* ================================
   SECTION LOTS - Flat Design
   ================================ */

.lot-section {
  background: none;
  border: 5px dotted var(--orange);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px 0;
  color: #572616;
  text-align: center;
}

.lot-section h3 {
  color: #572616;
  font-weight: 600;
  margin-bottom: 8px;
}

.lot-section p {
  color: #572616;
  font-weight: 400;
  opacity: 0.95;
}

/* ================================
   FORMULAIRES - Flat Design
   ================================ */

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.2s ease;
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 22, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

/* ================================
   BOUTONS - Flat Design
   ================================ */

.btn {
  background: var(--marron);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: #6d2f1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(87, 38, 22, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--orange);
  color: white;
}

.btn-secondary:hover {
  background: #ff8a00;
  box-shadow: 0 4px 12px rgba(245, 158, 22, 0.2);
}

/* ================================
   MESSAGES - Flat Design
   ================================ */

.erreur {
  background: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #c33;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

.succes {
  background: #efe;
  color: #2a7f2f;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #2a7f2f;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

/* ================================
   INFO BOX - Flat Design
   ================================ */

.info-box {
  background: #fef5e7;
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 4px solid var(--orange);
  margin: 16px 0;
  color: var(--text-dark);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.info-text {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.6;
  text-align: center;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  body {
    padding: 16px 8px;
  }

  .container {
    padding: 20px;
    border-radius: 8px;
  }

  h1 {
    font-size: 20px;
    margin: -20px -20px 16px -20px;
    padding: 16px 20px;
  }

  .subtitle {
    margin: 0 -20px 16px -20px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .box {
    padding: 20px;
  }
}

/* ================================
   UTILITAIRES - Flat Design
   ================================ */

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-2 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 32px;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--marron);
  text-decoration: underline;
}

/* Animation fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
