/* ==========================================================================
   Thème Thibault Guêpes & Frelons — design system
   ========================================================================== */

:root {
  --radius: 0.625rem;
  --background: #fbfaf7;
  --foreground: #2c2c35;
  --ink: #191922;
  --card: #ffffff;
  --primary: #f5bf2b;
  --primary-foreground: #191922;
  --secondary: #eeece7;
  --secondary-foreground: #2c2c35;
  --muted-foreground: #6b6b7a;
  --accent: #d9622a;
  --border: #e2ded7;
  --safety: #2f9e5f;
  --warning: #e9a723;
  --hero-overlay: rgba(25, 25, 34, 0.62);
  --container: 72rem;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: scale(1.02); }
.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 24px rgba(25, 25, 34, 0.18);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-weight: 600;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; justify-content: center; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 0.6rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
.brand__name { font-size: 0.9rem; font-weight: 700; margin: 0; }
.brand__tag {
  margin: 0;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted-foreground);
}
.brand__text { display: none; }
@media (min-width: 640px) { .brand__text { display: block; } }

.main-nav { display: none; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.main-nav a { color: var(--muted-foreground); }
.main-nav a:hover { color: var(--foreground); }
@media (min-width: 900px) { .main-nav { display: flex; align-items: center; } }
.header-phone__label { display: none; }
@media (min-width: 640px) { .header-phone__label { display: inline; } }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__inner {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem;
}
.hero__content { max-width: 42rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--warning);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; text-wrap: balance; }
.hero__lead { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin-top: 1.5rem; }
.hero__lead strong { color: var(--primary); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__points {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 2rem; color: rgba(255,255,255,0.9);
  font-size: 0.875rem; font-weight: 500;
}
.hero__points li { display: flex; align-items: center; gap: 0.4rem; }
.hero__points .icon { color: var(--primary); }

/* Bandeau urgence -------------------------------------------------------- */
.urgency { background: var(--primary); padding-block: 0.75rem; }
.urgency__inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .urgency__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.urgency p { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--primary-foreground); }
.urgency a {
  font-size: 0.875rem; font-weight: 700; color: var(--primary-foreground);
  text-decoration: underline; text-underline-offset: 2px;
  display: inline-flex; align-items: center; gap: 0.25rem;
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }
.section--alt { background: rgba(238, 236, 231, 0.5); border-top: 1px solid var(--border); }
.section--dark { background: var(--ink); color: #fff; border-top: 1px solid var(--border); }

.section__head { max-width: 42rem; margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
.section__head p { color: var(--muted-foreground); margin-top: 1rem; }

.grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { margin-top: 0; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(25,25,34,0.05);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 8px 20px rgba(25,25,34,0.08); }
.card__icon {
  width: 3rem; height: 3rem; border-radius: 0.85rem;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(245, 191, 43, 0.22); color: var(--ink);
}
.card h3 { font-size: 1.125rem; font-weight: 600; }
.card p { color: var(--muted-foreground); font-size: 0.9rem; margin-top: 0.5rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tag {
  background: var(--secondary); color: var(--secondary-foreground);
  border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 500;
}

.card--row { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
.card--row .icon { color: var(--safety); width: 1.5rem; height: 1.5rem; }
.card--row p { font-size: 0.9rem; font-weight: 500; color: var(--foreground); margin: 0; }

/* Zone ------------------------------------------------------------------- */
.zone h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
.zone p { color: var(--muted-foreground); }
.cities {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem; margin-top: 1.5rem;
  font-size: 0.9rem; color: var(--muted-foreground);
}
.cities li { display: flex; align-items: center; gap: 0.5rem; }
.cities .icon { color: var(--accent); width: 0.95rem; height: 0.95rem; }
.map-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem;
}

/* Listes à puces cochées -------------------------------------------------- */
.checklist { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--muted-foreground); }
.checklist .icon { color: var(--safety); width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }

/* Contact ---------------------------------------------------------------- */
.contact h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
.contact__lead { color: rgba(255,255,255,0.8); margin-top: 1rem; }
.contact__list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.1); border-radius: 1rem; padding: 1rem;
}
.contact__item:hover { background: rgba(255,255,255,0.16); }
.contact__bullet {
  width: 3rem; height: 3rem; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--primary); color: var(--primary-foreground);
}
.contact__bullet--soft { background: rgba(255,255,255,0.12); color: #fff; }
.contact__label {
  margin: 0; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; color: rgba(255,255,255,0.6);
}
.contact__value { margin: 0; font-size: 1.05rem; font-weight: 700; }
.contact__panel {
  background: rgba(255,255,255,0.06); border-radius: 1rem; padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
}
.contact__panel h3 { font-size: 1.25rem; font-weight: 600; }
.contact__panel ul { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.contact__panel li { display: flex; align-items: center; gap: 0.5rem; }
.contact__panel .icon { color: var(--primary); }
.contact__panel .btn { margin-top: 2rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--background); padding-block: 2rem; }
.site-footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
@media (min-width: 640px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-footer strong { display: block; }
.site-footer p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer__contact { font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer__contact a { font-weight: 500; color: var(--foreground); }
.site-footer__contact a:hover { text-decoration: underline; }
.legal { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.5rem; }

/* Pages / articles standards ---------------------------------------------- */
.page-content { padding-block: 3rem; }
.page-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.page-content .entry { max-width: 48rem; }
.page-content .entry a { color: var(--accent); text-decoration: underline; }
