/* =========================================================
   Dreyer Peinture Sàrl — feuille de style
   Reproduction du site d'origine (Duda) en HTML/CSS statique
   ========================================================= */

@font-face { font-family: "Gudea"; src: url("../fonts/gudea-400.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gudea"; src: url("../fonts/gudea-400i.woff2") format("woff2"); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gudea"; src: url("../fonts/gudea-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sansita One"; src: url("../fonts/SansitaOne.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --red: #930302;
  --grey: #6e706f;
  --light: #f1f1f1;
  --text: #212522;
  --sub: #464f4a;
  --black: #111111;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Gudea", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 4px; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }

.container { max-width: calc(var(--container) + 30px); margin: 0 auto; padding: 0 15px; }

.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; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  border: 0; text-decoration: none !important; transition: background-color .2s, color .2s;
}
.btn-red { background: var(--red); color: #fff; height: 46px; padding: 0 25px; }
.btn-red:hover { background: #7a0201; }
.btn-white { background: #fff; color: var(--text); height: 55px; padding: 0 30px; border-radius: 3px; min-width: 180px; }
.btn-white:hover { background: var(--light); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url("../img/hero.jpg") center center / cover no-repeat fixed;
  min-height: 972px;
  padding-top: 396px;
  text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .4); }
.hero > * { position: relative; }
.hero > .hero-logo, .hero > .hero-band { position: absolute; }
.hero-logo { position: absolute; top: 40px; left: 0; right: 0; text-align: left; }
.hero-logo .container > a { display: inline-block; margin-left: 21px; }
.hero-logo img { width: 556px; }
.hero h1 {
  font-size: 50px; line-height: 55px; color: var(--red);
  max-width: 900px; margin: 0 auto;
}
.hero .tagline {
  font-family: "Sansita One", "Gudea", serif;
  font-size: 28px; line-height: 40px; color: var(--sub);
  margin: 20px auto 0;
}
.hero .btn-white { margin-top: 38px; }
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-band .band {
  background: var(--grey); color: #fff;
  height: 72px; padding-top: 20px;
  font-size: 20px; line-height: 32px; text-align: center;
  margin: 0 15px;
}
.hero-band .band a { color: #fff; font-weight: 700; }

/* ---------- Atouts (bande rouge) ---------- */
.features { background: var(--red); padding: 80px 0 20px; min-height: 208px; }
.features ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1000px; margin-left: 35px;
}
.features li { text-align: center; color: #fff; font-size: 20px; line-height: 32px; }
.features li span { color: var(--text); font-size: 16px; margin-right: 6px; }

/* ---------- Cartes services ---------- */
.cards { padding: 60px 0 20px; }
.cards .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 15px; }
.card {
  background: var(--grey); color: #fff; text-align: center;
  min-height: 480px; padding: 40px 30px 40px;
  display: flex; flex-direction: column; align-items: center;
}
.card img { width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--red); }
.card h3 { font-size: 26px; line-height: 1.2; margin: 50px 0 20px; }
.card p { line-height: 1.6; max-width: 300px; }
.card .btn { margin-top: auto; }

/* ---------- Sections texte + image ---------- */
.split { padding: 60px 0 40px; }
.split.light { background: var(--light); }
.split .row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; padding: 0 15px; }
.split h2 { font-size: 26px; line-height: 1.2; margin: 18px 0 14px; color: var(--text); }
.split p { line-height: 1.6; margin-bottom: 6px; }
.split .img img { width: 100%; max-width: 555px; aspect-ratio: 555 / 416; object-fit: cover; }
.split .btn-white { margin-top: 24px; }
.split .narrow { max-width: 430px; }

.services-list {
  list-style: none; margin: 28px 0 0; padding: 0 0 0 10px;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto);
  column-gap: 30px;
}
.services-list li { line-height: 32px; margin-bottom: 7px; padding-left: 16px; position: relative; font-size: 15px; }
.services-list li::before { content: "•"; position: absolute; left: 0; }

/* ---------- Réseaux sociaux ---------- */
.social { padding: 60px 0 20px; text-align: center; }
.social p { font-size: 26px; line-height: 1.6; max-width: 1140px; margin: 0 auto; }
.social-icons { display: flex; justify-content: center; gap: 6px; margin: 18px 0 22px; }
.social-icons a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}
.social-icons svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- Contact ---------- */
.contact { background: var(--grey); color: #fff; padding: 60px 0; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; }
.contact .col-left { padding: 0 100px 0 25px; }
.contact .col-right { padding: 0 15px 0 100px; border-left: 1px solid rgba(255,255,255,.9); }
.contact h2 { font-size: 26px; line-height: 1.2; margin: 0 0 18px; }
.contact p { line-height: 29px; margin: 0; font-size: 15px; }
.contact a { color: #fff; text-decoration: underline; }
.contact .spacer { height: 24px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 15px; }
.hours td { padding: 2px 0; line-height: 25px; }
.hours td:last-child { text-align: right; }
.contact h2.h-hours { margin-top: 28px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 2px; margin-top: 8px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 15px; line-height: 1.2; margin-bottom: 2px; padding-left: 2px; }
.form input, .form textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: #454545;
  background: var(--light); border: 1px solid #cfcfcf; border-radius: 0;
  height: 40px; padding: 8px 10px;
}
.form textarea { height: 80px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.form .btn-red { height: 45px; padding: 0 26px; margin-top: 10px; justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; font-size: 16px; margin: 6px 0 0; }
.form-msg[hidden] { display: none; }

/* ---------- Carte (consentement) ---------- */
.map { position: relative; height: 500px; background: #e5e3df; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.map-consent .box {
  background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.15);
  max-width: 480px; padding: 18px 26px 14px; text-align: center; font-size: 14px; line-height: 21px; color: #000;
}
.map-consent button {
  margin-top: 10px; background: #000; color: #fff; border: 0; border-radius: 3px;
  font: 700 14px "Gudea", Arial, sans-serif; padding: 9px 22px; cursor: pointer;
}

/* ---------- Pied de page ---------- */
.footer { background: var(--red); color: #fff; padding: 50px 0; font-size: 13px; line-height: 20.8px; }
.footer .row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 15px; }
.footer .row > div { padding-right: 15px; }
.footer .row > div:first-child { padding-left: 10px; }
.footer strong { font-weight: 700; display: block; }
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: underline; }
.footer .row > .social-out { display: flex; gap: 8px; justify-content: flex-end; padding-right: 85px; }
.footer .social-out a {
  width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer .social-out svg { width: 18px; height: 18px; fill: #fff; }

.bottom-bar { background: var(--black); padding: 8px 0 8px; }
.bottom-bar a { color: #ddd; font-size: 16px; line-height: 30px; padding-left: 10px; }

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed; right: 42px; bottom: 48px; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); border: 1px solid #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; }

/* ---------- Pages intérieures ---------- */
.page-header { background: var(--text); padding: 40px 0 20px; }
.page-header .container > a { display: inline-block; margin-left: 21px; }
.page-header img { width: 556px; }
.page-content { padding: 54px 0; font-size: 13px; line-height: 2; }
.page-content .inner { padding: 0 15px 0 25px; }
.page-content h2 { font-size: 26px; line-height: 1.2; margin: 0 0 16px; }
.page-content h2 + p { margin-top: 0; }
.page-content .gap { height: 34px; }

.legal { padding: 54px 0; }
.legal .inner { padding: 0 15px 0 25px; max-width: 1100px; }
.legal h1 { font-size: 50px; line-height: 1.1; color: var(--text); margin-bottom: 30px; }
.legal h3 { font-size: 20px; line-height: 1.3; margin: 30px 0 10px; }
.legal h4 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 24px; }
.legal li { margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { background-attachment: scroll; min-height: 820px; padding-top: 300px; }
  .hero-logo img, .page-header img { width: 420px; }
  .hero h1 { font-size: 40px; line-height: 46px; padding: 0 20px; }
  .cards .grid { gap: 20px; }
  .card { padding: 30px 20px; }
  .contact .col-left { padding: 0 40px 0 15px; }
  .contact .col-right { padding: 0 15px 0 40px; }
  .footer .row > .social-out { padding-right: 0; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .hero { min-height: 0; padding: 180px 0 0; }
  .hero-logo { top: 24px; }
  .hero-logo .container > a, .page-header .container > a { margin-left: 0; }
  .hero-logo img, .page-header img { width: 100%; max-width: 360px; }
  .hero h1 { font-size: 30px; line-height: 36px; padding: 0; }
  .hero .tagline { font-size: 20px; margin-top: 16px; }
  .hero .tagline br { display: none; }
  .hero .btn-white { margin-top: 26px; }
  .hero > .hero-band { position: relative; margin-top: 60px; }
  .hero .tagline { line-height: 1.3; }
  .hero-band .container { padding: 0; }
  .hero-band .band { margin: 0; height: auto; padding: 16px; font-size: 17px; line-height: 26px; }

  .features { padding: 30px 0; min-height: 0; }
  .features ul { grid-template-columns: 1fr; gap: 10px; margin-left: 0; }

  .cards { padding: 40px 0 10px; }
  .cards .grid, .split .row, .footer .row { padding: 0; }
  .cards .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 26px; }
  .card .btn { margin-top: 26px; }

  .split { padding: 40px 0; }
  .split .row { grid-template-columns: 1fr; gap: 24px; }
  .split .row.img-first-mobile .img { order: -1; }
  .split .narrow { max-width: none; }
  .services-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }

  .social { padding: 40px 0 10px; }
  .social p { font-size: 20px; }

  .contact { padding: 40px 0; }
  .contact .row { grid-template-columns: 1fr; gap: 36px; }
  .contact .col-left, .contact .col-right { padding: 0; border: 0; }
  .form { grid-template-columns: 1fr; }

  .map { height: 360px; }
  .map-consent .box { margin: 0 16px; }

  .footer { padding: 36px 0; }
  .footer .row { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer .row > div:first-child { padding-left: 0; }
  .footer .row > .social-out { justify-content: flex-start; }

  .to-top { right: 16px; bottom: 20px; width: 44px; height: 44px; }

  .page-content .inner, .legal .inner { padding: 0; }
  .legal h1 { font-size: 32px; }
}

/* Page « protection des données » : en-tête blanc et titre rouge comme l'original */
.page-header.light { background: #fff; }
.legal h1 { color: var(--red); }
