/* DOPLAN SAS - styles.css final stable */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

section[id] {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
}

/* Layout helpers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
  background-color: #f9fafb;
}

.section.alt {
  background-color: #ffffff;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}

.section-header p {
  margin: 0;
  color: #4b5563;
  max-width: 760px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header.center p {
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 8px 0;
  gap: 24px;
}

.main-logo {
  height: 90px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #4b5563;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background-color: #e5f2fb;
  color: #1d4ed8;
}

.nav a.cta {
  background-color: #1d4ed8;
  color: #ffffff;
  font-weight: 600;
}

.nav a.cta:hover {
  background-color: #1e40af;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #e0f2fe, #eff6ff 40%, #f9fafb 70%);
  padding: 26px 0 36px;
  margin-top: -4px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #1d4ed8;
  font-size: 0.88rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.hero-badge strong {
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 2.2rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 760px;
}

.lead {
  margin: 0 0 14px;
  color: #4b5563;
  max-width: 760px;
  font-size: 1.04rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
  max-width: 760px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.92rem;
  color: #4b5563;
}

.hero-kpis b {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 6px;
  color: #111827;
}

.hero-panel {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.hero-panel p {
  margin: 0 0 12px;
}

.hero-panel ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.hero-panel li {
  margin-bottom: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background-color: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.btn.primary:hover {
  background-color: #1e40af;
}

.btn.secondary {
  background-color: #ffffff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn.secondary:hover {
  background-color: #eff6ff;
}

/* Métiers */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

section#metiers .card h3 {
  color: #3BA7E1;
}

/* Zones */
#zones .section-header p {
  max-width: 720px;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.steps li {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.kpi {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  min-width: 180px;
}

.kpi b {
  display: block;
  font-size: 1.3rem;
}

/* Other sections */
.cards.small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partners span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* Contact */
.two-col,
#contact .two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: flex-start;
}

#contact h3 {
  margin-top: 0;
}

.form,
form {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 18px 18px 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.actions {
  margin-top: 12px;
}

.privacy {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #e5e7eb;
  padding: 20px 0;
  margin-top: 40px;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

  section[id] {
    scroll-margin-top: 96px;
  }

  .header-inner {
    min-height: 88px;
    padding: 8px 0;
    gap: 16px;
  }

  .main-logo {
    max-height: 72px;
  }

  .hero {
    padding: 24px 0 28px;
    margin-top: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hero-tags span {
    font-size: 0.86rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .two-col,
  #contact .two-col {
    grid-template-columns: 1fr;
  }
}


/* Ajouts garanties, prestations et formulaire qualifiant */
.prestation-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prestation-page-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.prestation-page-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.prestation-page-card span {
  color: #4b5563;
  font-size: 0.92rem;
}

.prestation-page-card:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.zones-card-primary {
  border-color: #bfdbfe;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.10);
}

.guarantee-card {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.form-row select,
.form-row input[type="file"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #ffffff;
}

.form-row select:focus,
.form-row input[type="file"]:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.form-help {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.optional {
  color: #6b7280;
  font-weight: 400;
}

.page-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
  padding: 52px 0 36px;
}

.page-hero h1 {
  margin: 0 0 12px;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.page-hero .lead {
  max-width: 820px;
}

.page-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.page-aside {
  position: sticky;
  top: 110px;
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

@media (max-width: 900px) {
  .page-content-grid {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
  }
}


/* Ajouts DOPLAN - formulaire, garanties et pages locales */
.form-row select,
.form-row input[type="file"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
  background-color: #ffffff;
}

.form-help {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.82rem;
}

.local-page-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.local-page-card a:hover h3,
.card-link {
  color: #1d4ed8;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
}

.page-hero {
  background: radial-gradient(circle at top left, #e0f2fe, #eff6ff 46%, #f9fafb 76%);
  padding: 54px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 860px;
}

.page-hero .lead {
  max-width: 820px;
}

.page-breadcrumb {
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 0.9rem;
}

.page-breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
}

.page-cta-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 22px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  text-decoration: none;
  background-color: #ffffff;
  font-weight: 650;
}

/* Guide pratique de la rénovation */
.section-kicker {
  margin: 0 0 6px;
  color: #1d4ed8 !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.guide-feature-image {
  display: block;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.guide-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

.guide-feature-image:hover img {
  transform: scale(1.015);
}

.guide-feature-content h3 {
  margin: 10px 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.guide-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-caution,
.guide-disclaimer {
  color: #475569;
  font-size: 0.9rem;
}

.guides-more {
  margin: 18px 0 0;
  text-align: center;
}

.guides-more a {
  color: #1d4ed8;
  font-weight: 700;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.guide-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.guide-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid #e5e7eb;
}

.guide-card-content {
  padding: 20px;
}

.guide-card-content h2,
.guide-card-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.guide-card-content p {
  color: #4b5563;
}

.guide-sheet {
  max-width: 1500px;
  margin: 0 auto;
}

.guide-sheet--portrait {
  max-width: 900px;
}

.guide-theme + .guide-theme {
  margin-top: 54px;
}

.guide-theme-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbeafe;
}

.guide-theme-header h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}

.guide-theme-header p {
  margin: 0;
  color: #4b5563;
}

.guide-theme-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: #0b4f91;
  color: #ffffff;
  font-weight: 850;
}

.guide-card-image-portrait {
  object-position: center 7% !important;
}

.guide-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-sheet-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.guide-note {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 4px solid #1d4ed8;
  border-radius: 12px;
  background: #eff6ff;
}

.guide-note h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.guide-note p {
  margin: 0;
}

@media (max-width: 900px) {
  .guide-feature-card {
    grid-template-columns: 1fr;
  }

  .guide-feature-content h3 {
    font-size: 1.35rem;
  }

  .guide-card img {
    height: auto;
  }
}
