/* CSS System - Artisan Couvreur Nettoyage Toiture Landes (Charte Ziegler) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Titillium+Web:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&display=swap');

:root {
  --or-500: #E5931B;
  --or-600: #C97F12;
  --noir: #111213;
  --ardoise-400: #8A9196;
  --ardoise-500: #3A4145;
  --texte: #4A4F54;
  --gris-fond: #F4F5F6;
  --bordure: #E3E5E7;
  --or-voile: #FDF3E2;
  --blanc: #FFFFFF;

  --font-titres: 'Titillium Web', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-corps: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* RÈGLE CHARTE ZIEGLER : ANGLES VIFS PARTOUT */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-corps);
  font-weight: 300;
  color: var(--texte);
  background-color: var(--blanc);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* GRILLE & CONTENEURS */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHIE */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titres);
  color: var(--noir);
  line-height: 1.2;
}

h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 68ch;
}

p.lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--ardoise-500);
}

a {
  color: var(--or-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--noir);
}

/* TITRES DE SECTION AVEC FILET ORANGE */
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--or-500);
}

.section-title.left-aligned {
  text-align: left;
}

.section-title.left-aligned::after {
  left: 0;
  transform: none;
}

/* BANDEAU EN-TÊTE HAUT (ORANGE) */
.top-contact-bar {
  background-color: var(--or-500);
  color: var(--noir);
  padding: 10px 0;
  font-family: var(--font-titres);
  font-size: 14px;
  font-weight: 600;
}

.top-contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-phone-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-phone-links a {
  color: var(--noir);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.top-phone-links a:hover {
  color: var(--blanc);
}

.top-callback-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-callback-form span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-callback-form input {
  padding: 8px 12px;
  border: 1px solid var(--noir);
  background: var(--blanc);
  font-family: var(--font-corps);
  font-size: 13px;
  outline: none;
  height: 38px;
  width: 180px;
}

.btn-callback {
  background-color: var(--noir);
  color: var(--blanc);
  border: none;
  padding: 8px 16px;
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  height: 38px;
  transition: background-color 0.2s ease;
}

.btn-callback:hover {
  background-color: var(--ardoise-500);
}

/* NAVIGATION PRINCIPALE (NOIR) */
.main-navbar {
  background-color: var(--noir);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--or-500);
}

.main-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--blanc);
}

.site-logo .logo-brand {
  font-family: var(--font-titres);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--or-500);
  line-height: 1;
}

.site-logo .logo-sub {
  font-family: var(--font-corps);
  font-size: 11px;
  color: var(--ardoise-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  height: 100%;
  align-items: center;
}

.nav-menu li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-titres);
  font-weight: 600;
  font-size: 13px;
  color: var(--blanc);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 5px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--or-500);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--or-500);
}

/* BOUTONS CHARTE */
.btn-primary {
  background-color: var(--or-500);
  color: var(--noir);
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--or-600);
  color: var(--blanc);
}

.btn-secondary {
  background-color: var(--noir);
  color: var(--blanc);
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--ardoise-500);
}

.btn-outline {
  background-color: transparent;
  color: var(--noir);
  border: 2px solid var(--noir);
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--noir);
  color: var(--blanc);
}

/* SECTIONS GLOBALES */
.section-padding {
  padding: 84px 0;
}

.section-bg-light {
  background-color: var(--gris-fond);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

.section-bg-dark {
  background-color: var(--noir);
  color: var(--blanc);
}

.section-bg-dark h2, .section-bg-dark h3 {
  color: var(--blanc);
}

/* HERO SECTION ACCUEIL */
.hero-section {
  position: relative;
  background-color: var(--noir);
  color: var(--blanc);
  padding: 60px 0 80px 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(17, 18, 19, 0.92) 0%, rgba(17, 18, 19, 0.78) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  color: var(--blanc);
  font-size: 42px;
  line-height: 1.15;
}

.hero-text h1 span {
  color: var(--or-500);
}

.hero-badges-trust {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px 16px;
  border-left: 3px solid var(--or-500);
}

.trust-badge-item .badge-num {
  font-family: var(--font-titres);
  font-weight: 900;
  font-size: 26px;
  color: var(--or-500);
  line-height: 1;
}

.trust-badge-item .badge-txt {
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--blanc);
  font-weight: 600;
}

/* FORMULAIRE DE DEVIS NOIR */
.quote-form-card {
  background-color: var(--noir);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 32px;
  color: var(--blanc);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quote-form-card h2 {
  color: var(--blanc);
  font-size: 24px;
  margin-bottom: 6px;
}

.quote-form-card p.form-sub {
  color: var(--ardoise-400);
  font-size: 13px;
  margin-bottom: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ardoise-400);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background-color: #1a1c1e;
  border: 1px solid var(--ardoise-500);
  color: var(--blanc);
  font-family: var(--font-corps);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea.form-control {
  height: 110px;
  padding: 12px 16px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--or-500);
  background-color: #222528;
}

/* PRESTATIONS / CARTE PRESTATIONS CHARTE */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.presta-card {
  position: relative;
  height: 380px;
  background-color: var(--noir);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.presta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.presta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,18,19,0.95) 0%, rgba(17,18,19,0.35) 60%, rgba(17,18,19,0.1) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.3s ease;
}

.presta-card:hover img {
  transform: scale(1.06);
}

.presta-card:hover .presta-card-overlay {
  background: linear-gradient(to top, rgba(17,18,19,0.98) 0%, rgba(17,18,19,0.55) 70%, rgba(17,18,19,0.2) 100%);
}

.presta-card h3 {
  color: var(--blanc);
  font-size: 22px;
  margin-bottom: 8px;
}

.presta-card p {
  color: var(--ardoise-400);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-card-discover {
  align-self: flex-start;
  background-color: rgba(255,255,255,0.15);
  color: var(--blanc);
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border: 1px solid var(--blanc);
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.presta-card:hover .btn-card-discover {
  background-color: var(--or-500);
  color: var(--noir);
  border-color: var(--or-500);
  opacity: 1;
}

/* CARTE INTERACTIVE DES LANDES (40) & RECHERCHE ALPHABÉTIQUE */
.landes-map-section {
  background-color: var(--blanc);
}

.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 30px;
}

.alphabet-btn {
  width: 38px;
  height: 38px;
  background-color: var(--gris-fond);
  border: 1px solid var(--bordure);
  color: var(--noir);
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.alphabet-btn:hover,
.alphabet-btn.active {
  background-color: var(--or-500);
  color: var(--noir);
  border-color: var(--or-500);
}

.search-city-box {
  max-width: 600px;
  margin: 0 auto 40px auto;
  display: flex;
  gap: 10px;
}

.search-city-input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: 2px solid var(--noir);
  font-family: var(--font-corps);
  font-size: 16px;
  outline: none;
}

.search-city-input:focus {
  border-color: var(--or-500);
}

.map-and-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.svg-map-container {
  background-color: var(--gris-fond);
  border: 1px solid var(--bordure);
  padding: 24px;
  text-align: center;
  position: relative;
}

.landes-svg {
  width: 100%;
  max-height: 480px;
}

.landes-svg polygon, .landes-svg path {
  fill: #D3DAE0;
  stroke: var(--blanc);
  stroke-width: 2;
  transition: fill 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.landes-svg g:hover polygon, .landes-svg g:hover path, .landes-svg g.active polygon {
  fill: var(--or-500);
}

.landes-svg text {
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 11px;
  fill: var(--noir);
  pointer-events: none;
}

.cities-scroll-list {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--bordure);
  background-color: var(--blanc);
  padding: 16px;
}

.cities-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.city-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: var(--gris-fond);
  color: var(--noir);
  text-decoration: none;
  font-family: var(--font-titres);
  font-weight: 600;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.city-link-item:hover {
  background-color: var(--or-voile);
  border-left-color: var(--or-500);
  color: var(--or-600);
}

.city-link-item .zip-code {
  font-family: var(--font-corps);
  font-size: 12px;
  color: var(--ardoise-400);
  font-weight: 300;
}

/* BANDEAU AVIS CLIENTS ORANGE */
.reviews-banner {
  background-color: var(--or-500);
  color: var(--noir);
  padding: 60px 0;
  text-align: center;
}

.reviews-banner h2 {
  color: var(--noir);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.stars-rating {
  font-size: 24px;
  color: var(--blanc);
  margin-bottom: 20px;
}

.review-quote {
  font-family: var(--font-corps);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px auto;
  color: var(--noir);
}

.review-author {
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--noir);
}

/* GUIDES ARTICLES */
.guides-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.guide-card {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.guide-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 8px solid var(--blanc);
}

.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--ardoise-400);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.guide-card-body h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.guide-card-body p {
  font-size: 14px;
  color: var(--texte);
  margin-bottom: 20px;
  flex: 1;
}

/* ARTICLE / GUIDE DETAIL */
.guide-header-hero {
  background-color: var(--noir);
  color: var(--blanc);
  padding: 60px 0;
}

.guide-header-hero h1 {
  color: var(--blanc);
  font-size: 38px;
}

.guide-body-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
  color: var(--texte);
}

.guide-body-content h2 {
  font-size: 30px;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--or-500);
  color: var(--noir);
}

.guide-body-content h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--noir);
}

.guide-body-content ul, .guide-body-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.guide-body-content li {
  margin-bottom: 10px;
}

.guide-toc {
  background-color: var(--gris-fond);
  border-left: 4px solid var(--or-500);
  padding: 24px;
  margin-bottom: 40px;
}

.guide-toc h4 {
  font-family: var(--font-titres);
  font-size: 18px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc li {
  margin-bottom: 8px;
}

.guide-toc a {
  text-decoration: none;
  color: var(--noir);
  font-weight: 600;
}

.guide-toc a:hover {
  color: var(--or-600);
}

.photo-framed {
  border: 8px solid var(--blanc);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  margin: 32px 0;
}

/* PIED DE PAGE CHARTE ZIEGLER (NOIR & ARDOISE) */
.site-footer {
  background-color: var(--noir);
  color: var(--blanc);
  padding-top: 60px;
  border-top: 4px solid var(--or-500);
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--or-500);
}

.footer-col p {
  color: var(--ardoise-400);
  font-size: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--ardoise-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--or-500);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ardoise-400);
  font-size: 14px;
}

.footer-contact-item svg {
  color: var(--or-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  background-color: #0b0c0d;
  padding: 20px 0;
  font-size: 13px;
  color: var(--ardoise-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* REVEAL ON SCROLL */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-content-wrapper,
  .map-and-list-grid,
  .cards-grid-3,
  .guides-grid-3,
  .footer-grid-4 {
    grid-template-columns: 1fr;
  }

  .top-contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .main-navbar-inner {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }

  h1 {
    font-size: 32px;
  }

  .cities-grid-compact {
    grid-template-columns: 1fr;
  }
}