:root {
  --bg: #f5f6f7;
  --ink: #0a0b0c;
  --muted: #4a4f57;
  --blue: #0047ff;
  --blue-band: #3d6bff;
  --lavender: #e7e9fd;
  --line: #dfe2e6;
  --card: #ffffff;
  --radius: 999px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* En-tête */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 17px; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink); }

/* Héros */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 60vh; }
.hero-text { padding: 32px 24px 48px max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.hero h1 { font-size: clamp(44px, 6.2vw, 108px); text-transform: uppercase; margin: 16px 0 28px; }
.hero p { max-width: 520px; font-size: 20px; margin: 0 0 32px; }
.hero-img { height: 100%; min-height: 440px; background: url("../images/hero-nuages.jpg") center / cover no-repeat; }
.index { font-size: 14px; letter-spacing: .15em; color: var(--muted); }

.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 17px;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #0036c4; }
.btn-sm { padding: 10px 24px; font-size: 15px; }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(36px, 4.5vw, 64px); margin-bottom: 40px; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; }
.service h3 { font-size: 22px; margin: 10px 0 8px; text-transform: uppercase; font-family: "Inter", sans-serif; }
.service .sub { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.service p { margin: 0; }

.split-sec { background: #eceef1; }
.split img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 20px; }
.split h4 { margin: 20px 0 4px; font-size: 20px; }
.split p { margin: 0; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer { background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.offer h3 { font-family: "Inter", sans-serif; font-size: 22px; margin-bottom: 12px; }
.offer .meta { color: var(--muted); font-size: 16px; }
.offer .price { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.offer .btn { align-self: flex-start; margin-top: auto; }

/* Contact */
.contact { background: var(--lavender); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 24px; }
.contact address { font-style: normal; font-size: 19px; line-height: 1.5; }
.contact address p { margin: 0 0 24px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
form label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
form input, form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 17px; font-weight: 400;
  padding: 10px 4px; border: 0; border-bottom: 1px solid #9aa0aa; background: transparent; color: var(--ink);
}
form input:focus, form textarea:focus { outline: none; border-bottom-color: var(--blue); }
form .btn { width: 100%; margin-top: 8px; padding: 16px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; margin-bottom: 24px; background: #fff; border-left: 4px solid var(--blue); }

/* Bandeau défilant */
.band { background: var(--blue-band); color: #fff; overflow: hidden; padding: 32px 0; }
.band-track { display: flex; width: max-content; animation: defile 30s linear infinite; }
.band-track span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(28px, 3.5vw, 56px); white-space: nowrap; padding-right: .4em; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* Pied de page */
.site-footer { padding: 40px 0; font-size: 16px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; border-top: 1px solid var(--ink); padding-top: 40px; }
.site-footer img { height: 30px; width: auto; }
.site-footer .right { text-align: right; }
.site-footer p { margin: 0; }

/* Blog */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(40px, 5vw, 72px); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 64px; }
.post-card { background: var(--card); border: 1px solid var(--line); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.post-card:hover { border-color: var(--blue); }
.post-card h2 { font-size: 22px; line-height: 1.2; }
.post-card p { margin: 0; color: var(--muted); font-size: 17px; }
.post-card .date { font-size: 15px; color: var(--muted); }

.article { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.article h1 { font-size: clamp(34px, 4.5vw, 56px); margin: 12px 0 16px; }
.article h2 { font-size: 28px; margin: 44px 0 14px; }
.article h3 { font-size: 21px; margin: 32px 0 10px; font-family: "Inter", sans-serif; }
.article p, .article li { font-size: 19px; }
.article .date { color: var(--muted); font-size: 16px; }
.article .back { font-size: 16px; }

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 24px 24px; z-index: 10; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav li { padding: 12px 0; }
  .site-header { position: relative; }
  .hero, .split, .services, .offers, .contact .wrap, .posts, .site-footer .wrap, form .row { grid-template-columns: 1fr; }
  .hero-text { padding: 24px; }
  .hero { min-height: 0; }
  .hero-img { min-height: 260px; }
  .split { gap: 0; }
  .split > div:last-child { padding: 28px 0 0; }
  .split-sec { padding-top: 0; }
  section { padding: 44px 0; }
  .section-title { margin-bottom: 28px; }
  .services { gap: 28px; }
  .contact .wrap { gap: 24px; }
  .site-footer .right { text-align: left; }
}
