/* SOS ARTISAN - Design professionnel sobre */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --primary-light: #2a5380;
  --accent: #c9a961;
  --accent-dark: #a88e44;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-dark: #0f2640;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --success: #2d7a4a;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1180px;
  --font-display: Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--primary-dark); letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .6rem; }
p { margin-bottom: 1rem; color: var(--text-soft); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; color: var(--text-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* SVG icons - cohérence partout */
svg { flex-shrink: 0; }

/* === TOPBAR === */
.topbar {
  background: var(--primary-dark); color: #f0f0f0; font-size: .87rem;
  padding: .55rem 0; border-bottom: 2px solid var(--accent);
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.topbar a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a svg { width: 14px; height: 14px; }

/* === HEADER === */
header {
  background: #fff; padding: .9rem 0; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
nav ul { list-style: none; display: flex; gap: 1.6rem; padding: 0; margin: 0; }
nav a { color: var(--text); font-weight: 500; font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; transition: all .2s; }
nav a:hover, nav a.active { color: var(--primary); border-bottom-color: var(--accent); }
.btn-call {
  background: var(--primary); color: #fff !important; padding: .65rem 1.2rem;
  border-radius: var(--radius); font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .45rem; transition: all .2s;
  border: 1px solid var(--primary);
}
.btn-call:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff !important; }
.btn-call svg { width: 16px; height: 16px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary-dark); padding: .25rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  text-align: center; cursor: pointer; transition: all .2s; border: 1px solid transparent;
  text-decoration: none; line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff !important; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--primary-dark) !important; border-color: var(--accent); font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff !important; }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { display: flex; width: 100%; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 30%, rgba(201,169,97,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; position: relative; }
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.92); margin-bottom: 1.8rem; line-height: 1.6; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-meta-item { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.85); font-size: .92rem; }
.hero-meta-item strong { color: var(--accent); font-weight: 700; }
.hero-meta-item svg { width: 18px; height: 18px; color: var(--accent); }
.hero-card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent);
}
.hero-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--primary-dark); }

/* === TRUST === */
.trust { background: var(--bg-soft); padding: 2.2rem 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { text-align: center; padding: 0 .5rem; }
.trust-item-icon { width: 48px; height: 48px; margin: 0 auto .75rem; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.trust-item-icon svg { width: 22px; height: 22px; }
.trust-item h4 { font-family: inherit; font-size: 1rem; color: var(--primary-dark); margin-bottom: .25rem; }
.trust-item p { font-size: .87rem; color: var(--muted); margin: 0; }

/* === SECTIONS === */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header .eyebrow { color: var(--accent-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; margin-bottom: .6rem; display: block; }
.section-header h2 { margin-bottom: .8rem; }
.section-header p { color: var(--text-soft); font-size: 1.05rem; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all .25s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; margin-bottom: 1.25rem; background: var(--primary); color: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { font-size: .95rem; margin-bottom: 1.2rem; }
.service-card .link { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-weight: 600; font-size: .9rem; }
.service-card .link svg { width: 14px; height: 14px; transition: transform .2s; }
.service-card:hover .link svg { transform: translateX(3px); }

/* === TARIFS === */
.tarif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 920px; margin: 0 auto; }
.tarif-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center; position: relative; transition: all .25s;
}
.tarif-card.highlight { border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow-md); }
.tarif-card.highlight::before {
  content: 'Recommandé'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary-dark); font-size: .72rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: var(--radius); letter-spacing: .05em;
}
.tarif-card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--primary-dark); }
.tarif-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--primary); margin: .8rem 0; }
.tarif-price small { font-size: .85rem; color: var(--muted); font-weight: 400; display: block; }
.tarif-card p { font-size: .92rem; color: var(--text-soft); margin: 0; }
.tarif-note { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; font-style: italic; }

/* === PROCESS === */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step { text-align: center; padding: 0 .5rem; }
.process-num {
  width: 50px; height: 50px; margin: 0 auto 1rem; background: var(--primary);
  color: #fff; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  border: 2px solid var(--accent);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.process-step p { font-size: .92rem; color: var(--text-soft); }

/* === ZONES === */
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.zone-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: all .2s; text-align: center;
}
.zone-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.zone-card a { color: var(--primary-dark); font-weight: 600; display: block; }
.zone-card .dept { color: var(--accent-dark); font-size: .8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: .25rem; }
.zone-card .count { color: var(--muted); font-size: .82rem; margin-top: .25rem; }

.villes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin: 1.25rem 0 2rem; }
.villes-list a {
  background: #fff; border: 1px solid var(--border); padding: .6rem .85rem;
  border-radius: var(--radius); font-size: .9rem; color: var(--text); transition: all .2s;
}
.villes-list a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === FAQ === */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .6rem; overflow: hidden;
}
.faq-question {
  padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); color: var(--primary-dark); font-size: 1.05rem;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--accent-dark); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: all .3s; color: var(--text-soft); }
.faq-item.open .faq-answer { padding: 0 1.3rem 1.2rem; max-height: 800px; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  background: #fff; padding: 1.8rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); position: relative;
}
.testimonial-stars { color: var(--accent); margin-bottom: .8rem; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { font-style: italic; margin-bottom: 1rem; color: var(--text-soft); font-size: .96rem; line-height: 1.6; }
.testimonial-author { font-weight: 600; color: var(--primary-dark); font-size: .92rem; }
.testimonial-author small { color: var(--muted); font-weight: 400; display: block; margin-top: .15rem; font-size: .82rem; }

/* === FORM === */
.quote-form { background: var(--bg-soft); padding: 2.2rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; color: var(--primary-dark); }
input, select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border-dark); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
textarea { resize: vertical; min-height: 110px; }

/* === CTA BAND === */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 3.5rem 0; text-align: center; position: relative;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201,169,97,.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; position: relative; }
.cta-band .btn { position: relative; }

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 3.5rem 0 3rem; text-align: center;
}
.page-header .breadcrumb { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.page-header .breadcrumb a { color: var(--accent); }
.page-header h1 { color: #fff; margin-bottom: .8rem; font-size: 2.4rem; }
.page-header p { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 700px; margin: 0 auto; }

/* === CONTENT === */
.content { padding: 3.5rem 0; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.content-main h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: .8rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.content-main p { font-size: 1rem; line-height: 1.75; }
.content-main ul li, .content-main ol li { font-size: 1rem; line-height: 1.7; }
.content-main ul li.check { list-style: none; padding-left: 1.8rem; position: relative; }
.content-main ul li.check::before { content: ''; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.sidebar { background: var(--bg-soft); padding: 1.8rem 1.5rem; border-radius: var(--radius-lg); height: fit-content; position: sticky; top: 90px; border: 1px solid var(--border); }
.sidebar h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.sidebar a { display: block; padding: .55rem 0; color: var(--text); font-size: .92rem; border-bottom: 1px solid var(--border); }
.sidebar a:hover { color: var(--primary); padding-left: .25rem; }
.sidebar a:last-child { border-bottom: none; }

/* === FOOTER === */
footer { background: var(--bg-dark); color: #c0c8d4; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
footer h4 { color: #fff; font-family: inherit; font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: .8rem; font-weight: 700; }
.footer-brand span { color: var(--accent); }
footer a { color: #c0c8d4; }
footer a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid #1f3a5a; padding-top: 1.5rem; text-align: center; font-size: .82rem; color: #8a96a8; }

/* === FLOATING CALL === */
.floating-call {
  position: fixed; bottom: 1.2rem; right: 1.2rem; background: var(--primary);
  color: #fff !important; padding: .9rem 1.4rem; border-radius: 50px;
  box-shadow: 0 8px 20px rgba(26,58,92,.3); font-weight: 600; z-index: 99;
  display: none; font-size: .95rem; border: 2px solid var(--accent);
  align-items: center; gap: .5rem;
}
.floating-call svg { width: 18px; height: 18px; }
.floating-call:hover { background: var(--primary-dark); }

/* === ARTICLE === */
.article { max-width: 760px; margin: 0 auto; }
.article p, .article ul, .article ol { font-size: 1.02rem; line-height: 1.8; }
.article h2 { font-size: 1.7rem; margin-top: 2.2rem; margin-bottom: .8rem; }
.article h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.article blockquote { border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--text-soft); }
.info-box { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.info-box strong { color: var(--primary-dark); }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid, .testimonials-grid, .process-grid, .tarif-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); padding: 1rem; border-top: 1px solid var(--border); }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav li { border-bottom: 1px solid var(--border); }
  nav li:last-child { border-bottom: none; }
  nav a { padding: .85rem 0; display: block; }
  .menu-toggle { display: block; }
  .btn-call { display: none; }
  .floating-call { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .topbar .container { justify-content: center; }
  .topbar span { display: none; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-meta { gap: 1rem; }
  .services-grid, .testimonials-grid, .process-grid, .tarif-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .villes-list { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 1rem; }
  .logo img { height: 38px; }
}
