/* Les Couvreurs FG — ardoise, acier et chrome, les couleurs du logo */
:root {
  --slate: #232a31;         /* fond foncé, comme le G du logo */
  --slate-2: #2f3841;
  --steel: #3d6694;         /* bleu acier : boutons d'appel */
  --steel-deep: #2f5279;
  --sky: #8aa6c6;           /* bleu du manche du marteau : accent sur fond foncé */
  --chrome: #e8edf2;        /* fond clair, reflet chromé */
  --ink: #1d242b;
  --muted: #5a6672;
  --line: #d3dbe3;
  --white: #ffffff;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.hero :focus-visible, .callband :focus-visible, .winter :focus-visible { outline-color: var(--white); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
img.missing { visibility: hidden; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; line-height: 1.1;
  text-decoration: none; padding: 13px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-steel { background: var(--steel); color: var(--white); }
.btn-steel:hover { background: var(--steel-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); color: var(--slate); }
.btn-white { background: var(--white); color: var(--slate); }
.btn-white:hover { background: var(--chrome); }
.btn-lg { font-size: 1.25rem; padding: 15px 26px; }
.btn-xl { font-size: 1.9rem; padding: 14px 28px 14px 22px; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(61, 102, 148, .8); }
.btn-xl svg { width: 30px; height: 30px; }
.btn-stack { display: grid; text-align: left; line-height: 1.05; }
.btn-stack small { font-family: var(--text); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: 2px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { margin-right: auto; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-family: var(--display); font-weight: 500; font-size: 1.1rem; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--steel); }
.header-call { padding: 10px 16px; }

/* ---------- Accueil ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--slate); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(138, 166, 198, .22), transparent 60%),
    linear-gradient(90deg, rgba(35,42,49,.95) 0%, rgba(35,42,49,.8) 45%, rgba(35,42,49,.35) 100%);
}
.hero-inner { position: relative; padding-top: 104px; padding-bottom: 200px; }
.hero h1 {
  margin: 0 0 22px; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 6.8rem); line-height: .95; letter-spacing: .005em; max-width: 12ch; text-wrap: balance;
}
.hero-lead { margin: 0 0 38px; max-width: 46ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: rgba(255,255,255,.78); font-size: .98rem; }
.trust li { padding-left: 14px; border-left: 3px solid var(--sky); }

/* Le sceau « 20 ans » qui tourne lentement, comme un poinçon */
.stamp { position: absolute; top: 72px; right: 20px; width: 190px; height: 190px; color: var(--sky); }
.stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(35, 42, 49, .72); backdrop-filter: blur(4px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.stamp svg { position: relative; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.stamp text { fill: currentColor; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 2px; }
.stamp-num {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: .9; color: var(--white);
}
.stamp-num small { font-size: 1.1rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
@keyframes spin { to { transform: rotate(360deg); } }

/* La signature : une ligne de toits qui se trace au bas du bandeau */
.roofline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; }
.roof-fill { fill: var(--white); }
.roof-line { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Fabricants ---------- */
.brands { padding: 24px 0 8px; }
.brands-inner { display: grid; grid-template-columns: 1fr 2.4fr; gap: 32px; align-items: center; }
.brands h2 { margin: 0; font-family: var(--text); font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: var(--muted); max-width: 24ch; }
.brands ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; justify-items: center; }
.brands img { max-height: 72px; width: auto; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.title { margin: 0 0 44px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.02; max-width: 22ch; text-wrap: balance; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; background: var(--chrome); border-radius: 14px; padding: 32px 28px 28px; display: flex; flex-direction: column; overflow: hidden; }
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--steel), var(--sky)); }
.service-icon { width: 46px; height: 46px; color: var(--steel); margin-bottom: 18px; }
.service h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.service p { margin: 0 0 22px; color: var(--muted); }
.service-call { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--steel); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.service-call::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.service-call:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Bande d'appel ---------- */
.callband { background: var(--steel); color: var(--white); position: relative; overflow: hidden; }
.callband::after { content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border: 3px solid rgba(255,255,255,.12); transform: rotate(45deg); }
.callband-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.callband h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.callband p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.88); }
.callband-phone {
  justify-self: end; display: inline-flex; align-items: center; gap: 16px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1;
  background: var(--white); color: var(--slate); padding: 20px 30px; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
  transition: transform .2s var(--ease);
}
.callband-phone svg { width: .7em; height: .7em; color: var(--steel); }
.callband-phone:hover { transform: translateY(-2px); }

/* ---------- Réalisations ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery li { border-radius: 12px; overflow: hidden; background: var(--chrome); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease); }
.gallery li:hover img { transform: scale(1.03); }
.gallery-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px 26px; border: 2px solid var(--line); border-radius: 12px; }
.gallery-cta p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }

/* ---------- Hiver ---------- */
.winter { background: var(--slate); color: var(--white); }
.winter-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.flake { width: 56px; height: 56px; color: var(--sky); }
.winter h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; }
.winter p { margin: 0; color: rgba(255,255,255,.8); max-width: 50ch; }

/* ---------- Contact ---------- */
.contact { background: var(--chrome); }
.contact-lead { margin: -24px 0 18px; max-width: 52ch; font-size: 1.15rem; color: var(--muted); }
.contact-phone { display: inline-block; margin-bottom: 40px; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 9vw, 6.4rem); line-height: 1; color: var(--steel); text-decoration: none; }
.contact-phone:hover { color: var(--steel-deep); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 2px solid var(--ink); }
.contact-item { padding: 22px 24px 4px 0; }
.contact-item + .contact-item { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-item h3 { margin: 0 0 8px; font-family: var(--text); font-size: .95rem; font-weight: 600; color: var(--muted); }
.contact-item p { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.contact-item a { text-underline-offset: 4px; text-decoration-color: var(--sky); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--slate); color: rgba(255,255,255,.7); padding: 28px 0 32px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

.callbar { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-call span { display: none; }
  .hero-inner { padding-top: 48px; padding-bottom: 120px; }
  .roofline { height: 80px; }
  .stamp { position: relative; top: auto; right: auto; width: 120px; height: 120px; margin-bottom: 22px; }
  .stamp-num { font-size: 2.3rem; }
  .stamp-num small { font-size: .75rem; }
  .btn-xl { font-size: 1.6rem; width: 100%; justify-content: flex-start; }
  .hero-actions .btn-ghost { width: 100%; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .callband-inner { grid-template-columns: 1fr; gap: 24px; }
  .callband-phone { justify-self: stretch; justify-content: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .brands-inner { grid-template-columns: 1fr; gap: 18px; }
  .brands ul { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
  .brands img { max-height: 60px; }
  .gallery-cta .btn { width: 100%; }
  .winter-inner { grid-template-columns: 1fr; gap: 16px; }
  .winter .btn { width: 100%; }
  .contact-lead { margin-top: -20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item, .contact-item + .contact-item { padding: 18px 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .callbar .btn { width: 100%; font-size: 1.35rem; padding: 10px 16px; }
  body { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .roof-line { stroke-dashoffset: 0; }
}
