/* ===========================
   STYLES PRINCIPAUX — BALTAZAR PHONE
   =========================== */

:root {
  --max-width: 1100px;
  --accent: #2b7cff;
  --bg: #fafafa;
  --text: #222;
  --muted: #666;
  --radius: 8px;
  --gap: 20px;
  --color-white: #fff;
  --color-text: #222;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ===========================
   STRUCTURE GLOBALE
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.brand img {
  height: 40px;
}

.main-nav a {
  margin-left: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

#menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 20px;
}

/* ===========================
   SECTION HERO
   =========================== */
.hero {
  background: white;
  padding: 64px 0;
  border-bottom: 1px solid #eee;
}

.hero-inner {
  text-align: left;
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0 0 10px;
}

.lead {
  color: var(--muted);
  margin-bottom: 18px;
}

.accent {
  color: var(--accent);
}

/* ===========================
   BOUTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.primary {
  background: var(--accent);
  color: white;
}

.primary:hover {
  opacity: 0.9;
}

.ghost {
  background: transparent;
  border-color: #ddd;
  color: var(--text);
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================
   SECTIONS DE CONTENU
   =========================== */
h2 {
  margin-top: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.card {
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20, 20, 30, 0.04);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.member {
  text-align: center;
}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.contact-form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.form-note {
  color: var(--muted);
  margin-top: 10px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #fff;
  padding: 18px;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer-nav a {
  margin-left: 12px;
  text-decoration: none;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

/* ===========================
   HAMBURGER MENU
   =========================== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation du burger en croix */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   MENU MOBILE
   =========================== */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.5rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav a {
    font-size: 1.2rem;
    color: var(--color-text);
    width: 100%;
  }

  .main-nav.active {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   BANNIÈRE COOKIES
   =========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons .btn {
  flex: 1;
}

@media (min-width: 600px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-content p {
    max-width: 70%;
    margin: 0;
  }
  .cookie-buttons {
    flex-shrink: 0;
  }
}

/* ===========================
   UTILITAIRES
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.map-placeholder {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
