/* GeoSol Studio — styles.css */
:root {
  --hdr:    #6B4C2A;
  --dark:   #4A2E1A;
  --orange: #C77B3D;
  --beige:  #C9A880;
  --bg:     #FDFAF7;
  --card:   #F0EBE4;
  --card2:  #FBF6EE;
  --sep:    #D0C8BE;
  --text:   #2E2014;
  --white:  #FFFFFF;
  --ok:     #1A5C38;
  --err:    #8B2500;
}

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

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 38px; }
.nav-logo span {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: #E8DDD1;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.93rem;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--orange);
  color: var(--white);
}
.btn-lang {
  background: transparent;
  border: 1px solid var(--beige);
  color: var(--beige);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-lang:hover { background: var(--beige); color: var(--dark); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--hdr); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--hdr); }

/* ── Sections communes ───────────────────────────────────────────────────── */
section { padding: 72px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 1.9rem;
  color: var(--hdr);
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}
.section-sub {
  font-size: 1rem;
  color: var(--orange);
  font-style: italic;
  text-align: center;
  margin-bottom: 48px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(74,46,26,0.08);
  border: 1px solid var(--sep);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(74,46,26,0.14);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--card);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.card h3 { color: var(--hdr); font-size: 1.05rem; margin-bottom: 8px; }
.card p  { font-size: 0.9rem; color: #5a4030; line-height: 1.5; }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: bold;
}
.badge-orange { background: #FDE9D4; color: var(--orange); }
.badge-green  { background: #D4EDDA; color: var(--ok); }
.badge-brown  { background: var(--card); color: var(--hdr); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: #D7CCC8;
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 36px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: #B0938A; }
footer h4 { color: var(--beige); font-size: 0.9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #B0938A; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--beige); }
.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #7A6058;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.5rem; }
  section { padding: 48px 16px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Chatbot widget ──────────────────────────────────────────────────────── */
#geosol-chat { position: fixed; right: 20px; bottom: 20px; z-index: 200; font-family: inherit; }
#geosol-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--orange); color: var(--white); cursor: pointer;
  box-shadow: 0 6px 20px rgba(74,46,26,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
#geosol-chat-toggle:hover { background: var(--hdr); transform: scale(1.06); }
#geosol-chat-toggle svg { width: 26px; height: 26px; }
#geosol-chat-panel {
  position: absolute; right: 0; bottom: 72px; width: 340px; max-height: 480px;
  background: var(--white); border-radius: 14px; box-shadow: 0 12px 40px rgba(74,46,26,0.28);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sep);
}
#geosol-chat-panel.hidden { display: none; }
.geosol-chat-header {
  background: var(--dark); color: var(--white); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: bold; font-size: 0.92rem;
}
.geosol-chat-header button { background: none; border: none; color: var(--white); font-size: 1.2rem; cursor: pointer; line-height: 1; }
#geosol-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); min-height: 220px; max-height: 300px; }
.geosol-msg { max-width: 85%; padding: 9px 12px; border-radius: 10px; font-size: 0.86rem; line-height: 1.45; }
.geosol-msg-bot { align-self: flex-start; background: var(--card); color: var(--text); border-bottom-left-radius: 2px; }
.geosol-msg-user { align-self: flex-end; background: var(--orange); color: var(--white); border-bottom-right-radius: 2px; }
.geosol-msg-typing { align-self: flex-start; background: var(--card); color: #8a6b50; font-style: italic; }
#geosol-chat-form { display: flex; border-top: 1px solid var(--sep); }
#geosol-chat-input { flex: 1; border: none; padding: 12px; font-size: 0.85rem; font-family: inherit; background: var(--white); color: var(--text); }
#geosol-chat-input:focus { outline: none; }
#geosol-chat-form button { background: var(--orange); color: var(--white); border: none; width: 44px; font-size: 1rem; cursor: pointer; }
#geosol-chat-form button:hover { background: var(--hdr); }
.geosol-chat-note { font-size: 0.68rem; color: #8a6b50; text-align: center; padding: 6px 0; background: var(--white); }
@media (max-width: 480px) {
  #geosol-chat-panel { width: calc(100vw - 32px); }
}
