/* ========================================
   SOS Essaim 06 — Style principal
   Mobile first — breakpoint : 768px
   ======================================== */

/* --- Variables --- */
:root {
  --color-primary: #000;
  --color-secondary: #F5B015;
  --color-text: #74726E;
  --color-cta: #F5B015;
  --color-cta-phone: #26ab00;
  --color-bg: #F7F3F0;
  --color-white: #fff;

  --font-heading: "Saira Extra Condensed", sans-serif;
  --font-body: "Kreon", serif;

  --max-width: 1140px;
  --gutter: 1rem;
}

/* --- Reset / Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utilitaires --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.85;
}

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

.btn--phone {
  background-color: var(--color-cta-phone);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-cta);
  color: var(--color-primary);
}

/* --- Bouton duo (CTA + téléphone) --- */
.btn-duo {
  display: inline-flex;
  align-items: stretch;
  border-radius: 50px;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  cursor: pointer;
}

.btn-duo:hover {
  opacity: 0.85;
}

.btn-duo__label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1.6rem;
  background: #e0dcd8;
  color: var(--color-primary);
}

.btn-duo__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.6rem;
  background: var(--color-cta-phone);
  color: var(--color-white);
}


.is-scrolled span.btn-duo__label {
    display: none;
}

/* --- Icône téléphone SVG inline --- */
.icon-phone {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0 0;
  font-size: 0.85rem;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
  margin-top: -20px;
}

.header-logo img {
  height: 45px;
  width: auto;
}

/* Nav mobile : hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-cta);
}

.header-cta {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.site-header.is-scrolled .header-top {
  display: none;
}

.site-header.is-scrolled .header-cta {
  opacity: 1;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

/* Bandeau panoramique pages internes */
.hero--inner {
  padding-top: 0;
}

.hero--inner .page-banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* Placeholder tant que la vraie photo n'est pas disponible */
.hero--inner .page-banner--placeholder {
  background: linear-gradient(135deg, #e8dfd4 0%, #c9b99a 50%, #a88f6a 100%);
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #e0dcd8;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-cta);
}

/* ========================================
   SECTIONS COMMUNES
   ======================================== */
section {
  padding: 2.5rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.bee-decoration {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  padding: 0;
}

/* ========================================
   SECTION — UN ESSAIM CHEZ VOUS
   ======================================== */
.essaim-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.essaim-text p {
  margin-bottom: 1rem;
}

.essaim-text strong {
  color: var(--color-primary);
}

.essaim-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e0dcd8;
}

.essaim-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ========================================
   SECTION — QUE FAIRE
   ======================================== */
.steps-section {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.step-card__image {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.step-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;  
}

.step-card__badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);  
  width: 36px !important; 
  aspect-ratio: unset !important;
  height: auto;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 15px;
}

.step-card p {
  font-size: 1.1rem;
  max-width: 30ch;
}

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ========================================
   SECTION — INTERVENTION
   ======================================== */
.intervention-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intervention-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e0dcd8;
}

.intervention-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.intervention-text p {
  margin-bottom: 1rem;
}

.intervention-text .btn {
  margin-top: 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: url("../img/footer-bg.png") center bottom / cover no-repeat;
  text-align: center;
  padding: 4rem 0 200px;
  margin-top: 1rem;
}

.footer-logo img {
  height: 48px;
  margin: 0 auto 1.25rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-info {
  margin-bottom: 1.5rem;
}

.footer-info p {
  font-size: 0.95rem;
}

.footer-info .footer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.footer-info .footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.footer-cities {
  color: var(--color-cta);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--color-text);
}

.footer-legal a {
  text-decoration: underline;
}

/* ========================================
   DESKTOP — min-width: 768px
   ======================================== */
@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }

  /* Header */
  .header-top {
    display: flex;
  }

  .header-logo img {
    height: 85px;
  }

    .is-scrolled .header-logo img {
        height: 60px;
    }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
    background: transparent;
    align-self: flex-end;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .main-nav a {
    padding: 0;
    font-size: 1.25rem;
  }

  .site-header.is-scrolled .header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Hero */
  .hero {
    padding: 0rem 0 1.5rem;
  }

  .hero-images {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
  }

  .bee-decoration {
    max-width: 450px;
  }

  /* Essaim */
  .essaim-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .essaim-text {
    flex: 1;
  }

  .essaim-image {
    flex: 0 0 40%;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Intervention */
  .intervention-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .intervention-image {
    flex: 0 0 45%;
  }

  .intervention-text {
    flex: 1;
  }

  .intervention-text h2 {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-logo img {
    height: 76px;
    width: auto;
  }
}

/* ========================================
   DESKTOP LARGE — min-width: 1024px
   ======================================== */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .intervention-text h2 {
    font-size: 2rem;
  }

  .bee-decoration {
    max-width: 600px;
  }
}

/* ========================================
   PAGE — ZONE D'INTERVENTION
   ======================================== */
.zone-section {
  padding: 2.5rem 0 3rem;
}

.zone-intro {
 
  margin-bottom: 2rem;
}

.zone-intro p {
  margin-top: 0.75rem;
}

/* Carte Leaflet */
.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  margin-bottom: 2.5rem;
}

#map-intervention {
  height: 380px;
  width: 100%;
  background: #e8e0d5;
}

/* Marqueur personnalisé */
.map-marker__dot {
  width: 20px;
  height: 20px;
  background: #DF622D;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Villes couvertes */
.zone-cities {
  margin-top: 1rem;
}

.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1.25rem 0 1rem;
}

.cities-grid li {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding-left: 1rem;
  position: relative;
}

.cities-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-cta);
  border-radius: 50%;
}

.zone-note {
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.steps-cta-section {
  padding: 1rem 0 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  #map-intervention {
    height: 480px;
  }

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

/* ========================================
   FAQ — Accordéon
   ======================================== */

.faq-section {
  padding: 3rem 0 4rem;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--color-bg);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-cta);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Icône +/× */
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  transition: transform 0.25s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after  { width: 2px;  height: 10px; transition: transform 0.25s; }

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  padding: 1rem 1.25rem 1.25rem;
}

.faq-answer p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faq-cta p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .faq-question {
    font-size: 1.35rem;
  }
}
