/* ==========================================================================
   Labbéille & Toit — feuille de style principale
   Lutte raisonnée contre les nuisibles · Maine-et-Loire (49)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Palette de marque */
  --color-primary: #0c1b33;   /* Bleu Nuit  */
  --color-accent: #f6a818;    /* Jaune Miel */
  --color-bg-alt: #f4f6f8;    /* Gris Clair */
  --color-bg: #ffffff;        /* Blanc Pur  */

  /* Déclinaisons utiles */
  --color-primary-700: #16294a;
  --color-primary-500: #2c4066;
  --color-accent-ink: #8a5a05;   /* jaune assombri, lisible sur fond clair */
  --color-accent-deep: #d98d0a;  /* survol des boutons jaunes */
  --color-text: #16202f;
  --color-muted: #566275;
  --color-line: #dde3ea;
  --color-line-dark: rgba(255, 255, 255, 0.16);

  /* Typographie */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rythme */
  --wrap: 1140px;
  --gutter: 1.5rem;
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 88px;

  --shadow-sm: 0 1px 2px rgba(12, 27, 51, 0.06), 0 4px 14px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 10px 34px rgba(12, 27, 51, 0.13);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--color-accent-ink); }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.14;
  letter-spacing: -0.008em;
  font-weight: 700;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 68ch; }

ul { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  color: var(--color-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--alt { background: var(--color-bg-alt); }
.section--ink { background: var(--color-primary); color: #e8edf4; }
.section--ink h2,
.section--ink h3 { color: #ffffff; }
.section--ink p { color: #c3cddc; }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--color-muted); margin-bottom: 0; }
.section--ink .section-head p { color: #b9c4d4; }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn--accent:hover { background: var(--color-accent-deep); color: var(--color-primary); }

.btn--ink {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--ink:hover { background: var(--color-primary-700); color: #ffffff; }

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; border-color: #ffffff; }

.btn--block { width: 100%; }
.btn { white-space: nowrap; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-primary);
  margin-right: auto;
}
.brand:hover { color: var(--color-primary); }
.brand img {
  width: auto;
  height: 64px;
  flex: none;
  object-fit: contain;
}


.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav { display: flex; align-items: center; gap: 0.35rem; }

.site-nav a {
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
  border-radius: var(--radius);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover { background: var(--color-bg-alt); }
.site-nav a[aria-current="page"] {
  position: relative;
  font-weight: 600;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.site-nav .btn {
  margin-left: 0.5rem;
  padding-block: 0.7rem;
}
.site-nav .btn:hover { background: var(--color-accent-deep); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #ffffff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2245.03%22%20height%3D%2278%22%20viewBox%3D%220%200%2045.03%2078%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F6A818%22%20stroke-width%3D%221.5%22%3E%3Cpath%20d%3D%22M22.52%2C0.00%2045.03%2C13.00%2045.03%2C39.00%2022.52%2C52.00%200.00%2C39.00%200.00%2C13.00Z%22%2F%3E%3Cpath%20d%3D%22M0.00%2C39.00%2022.52%2C52.00%2022.52%2C78.00%200.00%2C91.00%20-22.52%2C78.00%20-22.52%2C52.00Z%22%2F%3E%3Cpath%20d%3D%22M45.03%2C39.00%2067.55%2C52.00%2067.55%2C78.00%2045.03%2C91.00%2022.52%2C78.00%2022.52%2C52.00Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: repeat;
  background-size: 45px 78px;
  opacity: 0.14;
  pointer-events: none;
}
.page-head::before { opacity: 0.09; }
.page-head .wrap { position: relative; z-index: 1; }

.hero .wrap { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero h1 { color: #ffffff; margin-bottom: 1rem; }
.hero p { color: #c6d0de; max-width: 44ch; }
.hero .lede { color: #d5dde9; }

.hero-flag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

/* Carte de réassurance à droite du hero */
.hero-card {
  background: rgba(8, 19, 37, 0.78);
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.hero-card h2 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-line-dark);
  color: #d5dde9;
  font-size: 0.98rem;
}
.hero-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--color-accent); }

.hero-phone {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.hero-phone:hover { color: #ffffff; }
.hero-phone span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #b9c4d4;
  letter-spacing: 0;
}

/* Bandeau page intérieure */
.page-head {
  background: var(--color-primary);
  color: #ffffff;
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-head h1 { color: #ffffff; margin-bottom: 0.8rem; }
.page-head p { color: #c6d0de; margin-bottom: 0; }

.breadcrumb {
  font-size: 0.9rem;
  color: #98a6ba;
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: #c6d0de; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. Grilles & cartes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.card p { color: var(--color-muted); margin-bottom: 1.2rem; }
.card p:last-of-type { flex: 1; }

.card-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--color-accent);
  padding-bottom: 2px;
}
.card-link:hover { box-shadow: inset 0 -10px 0 var(--color-accent); color: var(--color-primary); }

/* Badge hexagonal — clin d'œil à l'alvéole de la marque */
.hex {
  width: 52px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin-bottom: 1.25rem;
}
.hex svg { width: 26px; height: 26px; color: var(--color-primary); }
.hex--ink { background: var(--color-primary); }
.hex--ink svg { color: var(--color-accent); }

.trio {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   8. Listes de nuisibles / prestations
   -------------------------------------------------------------------------- */
.pest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}
.pest-list li {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0;
}
.pest-list strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}
.pest-list span { font-size: 0.94rem; color: var(--color-muted); line-height: 1.5; }

/* Liste à puces cochées */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 13px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* --------------------------------------------------------------------------
   9. Étapes numérotées (véritable séquence d'intervention)
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--color-line);
  margin: 0;
}
.steps li:last-child { border-bottom: 1px solid var(--color-line); }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-ink);
  line-height: 1;
  padding-top: 0.2rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin-bottom: 0; color: var(--color-muted); }

/* --------------------------------------------------------------------------
   10. Zone d'intervention
   -------------------------------------------------------------------------- */
.zone-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.commune-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.commune-list li { margin: 0; }
.commune-list span {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.94rem;
  color: var(--color-primary);
}
.section--ink .commune-list span {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-line-dark);
  color: #e8edf4;
}

/* --------------------------------------------------------------------------
   11. Formulaire de devis
   -------------------------------------------------------------------------- */
.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.quote-form {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}
.field .hint {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid #c8d1dc;
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(246, 168, 24, 0.5);
  outline-offset: 0;
}

.form-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0.9rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
}
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: #c0392b; }

/* --------------------------------------------------------------------------
   12. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: #b9c4d4;
  padding-block: 3.5rem 2rem;
  font-size: 0.96rem;
}
.site-footer h2 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #dfe6ef; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer p { color: #b9c4d4; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.social-link svg { flex: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  display: inline-block;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.15rem;
}
.footer-brand img { width: auto; height: 96px; object-fit: contain; }

.footer-bottom {
  border-top: 1px solid var(--color-line-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   13. Barre d'appel fixe (mobile)
   -------------------------------------------------------------------------- */
.call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--color-line);
  gap: 0.6rem;
}
.call-bar .btn { flex: 1; padding-block: 0.8rem; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .brand img { height: 56px; }
  .site-nav a { font-size: 0.92rem; padding-inline: 0.55rem; }
  .site-nav a[aria-current="page"]::after { left: 0.55rem; right: 0.55rem; }
}

@media (max-width: 960px) {
  .hero-inner,
  .zone-grid,
  .form-panel { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.social-link svg { flex: none; }

.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .brand img { height: 52px; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0.6rem; font-size: 1.05rem; white-space: normal; }
  .site-nav .btn { margin-left: 0; margin-top: 0.5rem; }

  .grid--3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }

  body { padding-bottom: 78px; }
  .call-bar { display: flex; }
}

@media (max-width: 520px) {
  .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.social-link svg { flex: none; }

.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .steps li { grid-template-columns: 2.2rem 1fr; gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .call-bar, .quote-form { display: none; }
  body { padding-bottom: 0; }
}
