/* Mozaic — feuille de style principale (reprise du design Squarespace) */
:root {
  --navy: #13212b;
  --text: #3d4c57;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --gray: #f2f5f7;
  --white: #fff;
  --border: #d5dde3;
  --radius: 12px;
  --radius-lg: 40px;
  --max: 2200px;
  --gutter: max(16px, 4vw);
  --font-head: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.25vw, 19.7px);
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(34px, 4.2vw, 53px); }
h2 { font-size: clamp(28px, 3.2vw, 40.5px); }
h3 { font-size: clamp(23px, 2.4vw, 31px); }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--navy); color: #d8e0e6; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.6em;
  border-radius: 8px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--small { padding: .7em 1.2em; font-size: 14.4px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--white); text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-size: 19px; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12) !important; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 100px); align-items: center; }
.hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 6; max-height: 78vh; width: 100%; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__sub { font-size: 1em; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); }

.banner { position: relative; background: var(--navy); min-height: 500px; display: flex; align-items: center; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,33,43,.55), rgba(19,33,43,.05) 70%); }
.banner .container { position: relative; z-index: 1; }
.banner h2 { color: var(--white); max-width: 16em; margin: 0; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px clamp(32px, 7vw, 140px); }
.service-card h3 { margin-bottom: .4em; }
.service-card p { font-size: .9em; }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-top: 16px; border-radius: var(--radius); }

.cta-block { max-width: 560px; }

/* ---------- Pages services ---------- */
.page-title { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-title h1 { margin: 0; }

.service { padding: clamp(48px, 7vw, 90px) 0; }
.service .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 140px); align-items: start; }
.service__media { position: sticky; top: 104px; }
.service__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service--reverse .service__media { order: 2; }
.service h2 { font-size: clamp(23px, 2.4vw, 31px); }
.service__body p, .service__body li { font-size: .9em; }
.service__body ul { padding-left: 1.2em; margin: 0 0 1.6em; }
.service__body li { margin-bottom: .55em; }

.prose { max-width: 820px; }

/* ---------- Vitrerie ---------- */
.lp-hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.lp-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lp-hero p { font-size: .9em; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.8em; }
.checklist li { font-weight: 600; font-size: .85em; padding-left: 1.2em; position: relative; margin-bottom: .6em; color: var(--navy); }
.checklist li::before { content: "•"; position: absolute; left: 0; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.features h3 { font-size: 18px; margin-bottom: .5em; }
.features p { margin: 0; font-size: .9em; }

.h-small { font-size: 18px; margin-bottom: .5em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; }
.pills { list-style: none; padding: 0; }
.pill a { text-decoration: none; }
.pill a:hover { text-decoration: underline; }
.step { background: var(--gray); border-radius: var(--radius); padding: 28px; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: #233f7a; color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; margin: 0 auto 16px; }
.step p { font-size: .85em; margin: 0; }

.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pill { background: var(--white); border-radius: var(--radius); padding: 18px 20px; font-weight: 600; font-size: .8em; color: var(--navy); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.05em; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5em; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; margin: 0; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--gray); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); color: var(--navy); }
.section--dark .form-card { background: var(--white); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.field .hint { font-size: 13px; color: var(--text); margin-top: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 1px solid #a9b4bc; border-radius: 4px;
}
.field input[type="file"] { padding: 10px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.hidden { display: none; }
.form-card .btn { width: 100%; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 100px); align-items: start; }
.contact-info p { margin-bottom: .6em; }
.contact-info a:not(.btn) { text-decoration: none; }
.contact-info a:not(.btn):hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #d8e0e6; padding: 56px 0 32px; font-size: 16px; }
.site-footer .container { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 32px; align-items: start; }
.site-footer .logo { font-size: 24px; }
.site-footer a:not(.btn) { color: #d8e0e6; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 14px; color: #93a3ae; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container, .services-grid, .service .container, .lp-hero .container,
  .split, .contact-grid { grid-template-columns: 1fr; }
  .service--reverse .service__media { order: 0; }
  .service__media { position: static; }
  .hero__img { aspect-ratio: 4 / 3; border-radius: 28px; }
  .banner { min-height: 340px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pills { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .features, .pills, .site-footer .container { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Mentions légales ---------- */
.legal h2 { font-size: clamp(20px, 2vw, 24px); margin-top: 1.8em; }
.legal p { font-size: .9em; }

/* ---------- Barre d'appel mobile ---------- */
.call-bar { display: none; }
@media (max-width: 860px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy); box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  .call-bar .btn { padding: .8em .6em; font-size: 15px; }
  .call-bar .btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
  body { padding-bottom: 72px; }
}

/* ---------- Tuiles services (accueil) ---------- */
.hero .btn-row { margin-top: 1.4em; }
.tiles { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tiles a { display: block; height: 100%; background: var(--white); border-radius: var(--radius); padding: 18px 20px; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); text-decoration: none; border: 1px solid transparent; transition: border-color .2s, color .2s; }
.tiles a::after { content: " →"; color: var(--accent); }
.tiles a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
