/* ==========================================================================
   MTB 3D — feuille de style unique
   1. Polices            6. En-tête & navigation   11. Fiches techniques
   2. Variables          7. Bandeaux (hero, appel)  12. Bandeau d'appel (CTA)
   3. Base               8. Cartes & services       13. Infos & horaires
   4. Mise en page       9. Contenu éditorial       14. Pied de page
   5. Boutons           10. Contrats & atouts       15. Responsive
   ========================================================================== */

/* 1. Polices (sous-ensemble latin, auto-hébergées)
   ========================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* 2. Variables
   ========================================================================== */
:root {
  --red: #bf0404;
  --red-dark: #a60311;
  --red-bright: #e30613;
  --pink: #f2295b;
  --orange: #f27405;
  --text: #7a7a7a;
  --text-dark: #6e6e6e;
  --grey-bg: #f2f2f2;
  --light-bg: #f9f9f9;
  --white: #fff;
  --black: #000;

  --gradient-bar: linear-gradient(180deg, var(--red) 0%, var(--pink) 100%);
  --gradient-cta: linear-gradient(170deg, var(--red-dark) 21%, var(--red-bright) 100%);
  --shadow: 1px 0 10px -1px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 0 10px rgba(0, 0, 0, 0.15);

  --font-title: "Montserrat", Arial, sans-serif;
  --font-body: "Hind Siliguri", Arial, sans-serif;
  --font-ui: "Roboto", Arial, sans-serif;

  --container: 1140px;
  --gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Le sprite d'icônes SVG ne doit jamais s'afficher */
svg[hidden] {
  display: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.2;
  color: var(--red-dark);
}

p,
ul,
ol {
  margin: 0 0 1em;
}

strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 15px;
  background: var(--white);
  color: var(--red);
}

.skip-link:focus {
  top: 10px;
}

/* 4. Mise en page
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 60px 0;
}

.section--grey {
  background: var(--grey-bg);
}

.section--light {
  background: var(--light-bg);
}

.section--red {
  background: var(--red);
}

.section-title {
  margin-bottom: 40px;
  font-size: 26px;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 145px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--red-dark);
}

.section-title--plain::after {
  display: none;
}

.section--red .section-title {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 30px;
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 5. Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 1px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  background: var(--red);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.btn--pill {
  padding: 10px 15px;
  border-radius: 20px;
}

.btn--pill:hover {
  background: var(--red-dark);
}

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

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

.btn--outline {
  background: transparent;
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

/* 6. En-tête & navigation
   ========================================================================== */
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header__logo img {
  width: 250px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Pastille téléphone (remplace l'ancienne image tel-docteur-1.png) */
.phone-pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--red);
  border-radius: 20px;
  overflow: hidden;
  font-family: "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--red-dark);
  text-decoration: none;
}

.phone-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 44px;
  background: var(--red);
  border-radius: 0 20px 20px 0;
}

.phone-pill__icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.phone-pill__number {
  padding: 4px 14px 2px 10px;
}

.site-nav {
  background: var(--red);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px var(--gutter);
  border: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

/* 7. Bandeaux : hero d'accueil, hero de page, barre d'atouts, barre d'appel
   ========================================================================== */
.hero {
  padding: 40px 0;
  background: url("../img/le-desinsectiseur2-1-1.jpg") center / cover no-repeat;
}

.hero .container {
  display: flex;
  justify-content: flex-end;
}

.urgency {
  padding: 20px;
  border-radius: 5px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero .urgency {
  width: 100%;
  max-width: 360px;
}

.urgency__title {
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red-bright);
}

.urgency p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.urgency__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badges {
  background: var(--gradient-bar);
}

.badges__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.badges__item + .badges__item {
  border-left: 1px solid rgba(0, 0, 0, 0.25);
}

.badges__item a {
  display: block;
  text-decoration: none;
}

.page-hero {
  padding: 120px 0;
  background: center / cover no-repeat var(--black);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: 0.14;
}

.page-hero h1 {
  position: relative;
  margin: 0;
  font-size: 44px;
  text-align: center;
  color: var(--white);
}

.page-hero--rongeurs {
  background-image: url("../img/menu-rats-2.png");
}

.page-hero--insectes {
  background-image: url("../img/22.jpg");
}

.page-hero--punaises {
  background-image: url("../img/punaise-de-lit-1.png");
}

.page-hero--frelon {
  background-image: url("../img/frelon-asiatique.jpg");
}

.page-hero--contact {
  background-image: url("../img/qui-somme-nous.png");
}

.call-bar {
  padding: 10px 0;
  background: var(--red);
}

.call-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
}

.call-bar__label {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.call-bar .btn {
  justify-self: center;
  min-width: 175px;
}

/* 8. Cartes & services
   ========================================================================== */
.diag-card {
  display: block;
  text-align: center;
  text-decoration: none;
}

.diag-card img {
  margin: 0 auto 20px;
}

.diag-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 24px;
  text-transform: uppercase;
}

.treatment-card {
  display: block;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  transition: transform 0.3s;
}

.treatment-card:hover {
  transform: translateY(-4px);
}

.treatment-card img {
  width: 100%;
  margin-bottom: 15px;
  background: var(--grey-bg);
}

.treatment-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--black);
}

/* 9. Contenu éditorial (pages de service)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}

.split--center {
  align-items: center;
}

.split--aside {
  grid-template-columns: 1.6fr 1fr;
}

.split > img {
  margin: 0 auto;
}

/* Enchaînement des blocs d'un article */
.article > * + * {
  margin-top: 60px;
}

.article > .section-title {
  margin-bottom: 0;
}

.article > .section-title + * {
  margin-top: 40px;
}

.prose {
  color: var(--text-dark);
}

.prose ul {
  padding-left: 20px;
}

.prose--lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.prose--justify p {
  text-align: justify;
}

.article-title {
  padding: 5px 0 5px 10px;
  border-left: 2px solid var(--red-dark);
  font-size: 26px;
}

.intro-title {
  font-size: 27px;
  text-transform: uppercase;
}

.urgency--aside {
  margin: 20px 20px 0;
  box-shadow: var(--shadow);
  border-radius: 0;
}

/* Pages simples : mentions légales, page 404 */
.page-text {
  max-width: 800px;
  margin: 0 auto;
}

.page-text h2 {
  margin-top: 40px;
}

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

.page-text--center .urgency__actions {
  justify-content: center;
}

/* 10. Contrats professionnels & atouts
   ========================================================================== */
.contracts__intro {
  max-width: 1000px;
  margin: 0 auto 40px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: var(--red);
}

.contracts__intro strong {
  font-weight: 700;
}

.contracts__intro::after {
  content: "";
  display: block;
  width: 145px;
  height: 1px;
  margin: 30px auto 0;
  background: var(--red-dark);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
}

.feature {
  padding: 30px 20px;
  text-align: center;
}

.feature + .feature {
  border-left: 1px solid var(--grey-bg);
}

.feature svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  fill: var(--red);
}

.feature h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--red);
}

.feature p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

/* 11. Fiches techniques & secteurs professionnels
   ========================================================================== */
.fiche-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 10px;
}

.fiche-row + .fiche-row {
  margin-top: 40px;
}

.fiche-cat {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 252px;
  padding: 0 10px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: center top / contain no-repeat;
}

.fiche-cat--rongeurs {
  background-image: url("../img/menu-rats-1-2.png");
}

.fiche-cat--rampants {
  background-image: url("../img/rampants-1.png");
}

.fiche-cat--volants {
  background-image: url("../img/volants.png");
}

.fiche-cat--sector {
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 20px;
  margin: 0;
  font-family: var(--font-title);
  font-size: 20px;
  text-transform: uppercase;
  background: var(--red-dark);
}

.fiche-item {
  margin: 0;
  text-align: center;
}

.fiche-item img {
  width: 100%;
  background: var(--grey-bg);
}

.fiche-item figcaption {
  padding-top: 10px;
  font-family: var(--font-title);
  line-height: 1.5;
  color: var(--black);
}

/* 12. Bandeau d'appel « Des nuisibles chez vous ? » & partenaires
   ========================================================================== */
.cta-band {
  padding: 30px 0;
  color: var(--white);
  background: var(--gradient-cta);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-band h2 {
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
}

.cta-band p {
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-band img {
  flex-shrink: 0;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 40px 30px;
  background: var(--white);
}

.logos img {
  width: auto;
  max-height: 48px;
}

.cert-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

/* 13. Infos de contact & horaires
   ========================================================================== */
.info-box {
  padding: 20px;
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--white);
  background: var(--red);
}

.info-box h3 {
  margin: 15px 0 10px;
  font-size: 22px;
  color: var(--white);
}

.info-box h3:first-child {
  margin-top: 0;
}

.info-box__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.info-box__item a {
  text-decoration: none;
}

.info-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
}

.info-box__icon svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-weight: 700;
}

.hours th,
.hours td {
  width: 50%;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  text-align: left;
}

.contact-question {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--red-bright);
}

/* 14. Pied de page
   ========================================================================== */
.site-footer {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
}

.site-footer__main {
  padding: 50px 0;
  background: var(--grey-bg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.site-footer__logo {
  width: 250px;
  margin-bottom: 15px;
}

.site-footer h2 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red-bright);
}

.site-footer address {
  font-style: normal;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

.site-footer__phones a {
  font-weight: 700;
  color: var(--black);
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 15px;
  background: var(--red);
}

.social svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.site-footer__bottom {
  padding: 15px 0;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  font-weight: 700;
}

.site-footer__bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* 15. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header__actions {
    gap: 20px;
  }

  .fiche-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .fiche-cat {
    grid-row: span 2;
  }

  .split--aside {
    grid-template-columns: 1fr;
  }

  .urgency--aside {
    margin: 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }

  .site-header__top {
    flex-direction: column;
  }

  .site-header__logo img {
    width: 200px;
  }

  .site-header__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav__list {
    display: none;
    flex-direction: column;
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
  }

  .site-nav__list a {
    padding: 10px var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero .container {
    justify-content: center;
  }

  .badges__list,
  .call-bar .container,
  .grid--2,
  .grid--3,
  .grid--4,
  .split,
  .features,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .treatment-card {
    padding: 10px;
  }

  .treatment-card h3 {
    font-size: 15px;
  }

  .badges__item {
    flex-direction: column;
    gap: 10px;
    padding: 20px 10px;
    text-align: center;
  }

  .badges__item + .badges__item,
  .feature + .feature {
    border-left: 0;
  }

  .feature + .feature {
    border-top: 1px solid var(--grey-bg);
  }

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

  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .split--reverse-mobile > :first-child {
    order: 2;
  }

  .fiche-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .fiche-cat {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .fiche-cat--sector {
    min-height: 120px;
  }

  .cta-band .container {
    flex-direction: column;
    text-align: center;
  }

  .intro-title {
    font-size: 22px;
  }
}
