/* ══ Site « Création de site web » — Microtiq ══ */
:root {
  --bg: #F5F7FB;
  --bg-nav: rgba(245, 247, 251, .82);
  --text: #0F172A;
  --text-dim: #64748B;
  --line: rgba(15, 23, 42, .1);
  --blue: #2563EB;
  --blue-soft: #3B82F6;
  --green: #059669;
  --green-soft: #10B981;
  --purple: #9333EA;
  --purple-soft: #A855F7;
  --orange: #EA580C;
  --orange-soft: #F97316;
  --teal: #0D9488;
  --teal-soft: #14B8A6;
  --card-bg: rgba(255, 255, 255, .72);
  --card-bg-hover: rgba(255, 255, 255, .95);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(600px 600px at 85% -10%, rgba(13, 148, 136, .10), transparent 70%),
    radial-gradient(500px 500px at 0% 100%, rgba(168, 85, 247, .06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2.5rem;
}

/* ══ TOPBAR ══ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem clamp(1.25rem, 4vw, 3rem);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { margin: 0; font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.topbar-logo span { color: var(--teal); }
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .25s, border-color .25s;
}
.topbar-back:hover { color: var(--teal); border-color: var(--teal); }
.topbar-back svg { width: 14px; height: 14px; }

/* ══ HERO ══ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: min(78vh, 640px);
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, .78), rgba(8, 12, 24, .72) 50%, rgba(8, 12, 24, .86)),
    radial-gradient(600px 600px at 80% 20%, rgba(13, 148, 136, .22), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.2rem, 4vw, 2.5rem);
}
.hero--photo .hero-kicker {
  color: #fff;
  background: rgba(8, 12, 24, .55);
  border-color: rgba(255, 255, 255, .45);
}
.hero--photo .hero-kicker::before { background: var(--teal-soft); box-shadow: 0 0 6px rgba(20, 184, 166, .8); }
.hero--photo .hero-title { color: #fff; text-shadow: 0 2px 18px rgba(8, 12, 24, .55); }
.hero--photo .hero-accent {
  background: linear-gradient(92deg, #2DD4BF, #7DD3FC 55%, #C4B5FD);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero--photo .hero-sub { color: rgba(255, 255, 255, .95); text-shadow: 0 1px 10px rgba(8, 12, 24, .5); }
.hero--photo .btn-ghost { background: rgba(8, 12, 24, .45); border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero--photo .btn-ghost:hover { background: rgba(8, 12, 24, .65); border-color: #fff; color: #fff; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .8rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(13, 148, 136, .08);
  border: 1px solid rgba(13, 148, 136, .25);
}
.hero-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px rgba(13, 148, 136, .6);
}
.hero-title {
  margin: 0 0 .9rem;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.hero-accent {
  background: linear-gradient(92deg, var(--teal), var(--blue-soft) 50%, var(--purple-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin: 0 auto; max-width: 46rem; font-size: clamp(.95rem, 1.6vw, 1.1rem); color: var(--text-dim); line-height: 1.6; }
.hero-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(92deg, var(--teal), var(--teal-soft)); color: #fff; box-shadow: 0 8px 22px rgba(13, 148, 136, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 148, 136, .45); }
.btn-ghost { background: var(--card-bg); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ══ SECTIONS ══ */
.section { margin-top: clamp(2.5rem, 6vh, 4rem); text-align: center; }
.section-kicker {
  display: inline-flex;
  margin: 0 0 .8rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .22);
}
.section-title {
  margin: 0 0 .6rem;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.section-sub { margin: 0 auto 1.8rem; max-width: 46rem; font-size: clamp(.92rem, 1.5vw, 1.05rem); color: var(--text-dim); }

/* ══ FORMULES ══ */
.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
  text-align: left;
}
.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  transition: transform .3s, background .3s, box-shadow .3s;
}
.formule:hover { transform: translateY(-4px); background: var(--card-bg-hover); box-shadow: 0 16px 34px rgba(15, 23, 42, .09); }
.formule--star { border-color: rgba(13, 148, 136, .45); }
.formule-badge {
  position: absolute;
  top: -11px; right: 16px;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(92deg, var(--teal), var(--teal-soft));
}
.formule h3 { margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 800; }
.formule p { margin: 0 0 1rem; font-size: .88rem; color: var(--text-dim); line-height: 1.55; }
.formule-price { margin-bottom: 1.1rem; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.formule-price small { font-size: .75rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0; }
.formule ul { margin: 0 0 1.4rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.formule li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--text-dim); line-height: 1.45; }
.formule li svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--teal); }
.formule .btn { margin-top: auto; justify-content: center; }

/* ══ SERVICES ══ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
  text-align: left;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  transition: transform .3s, background .3s;
}
.service:hover { transform: translateY(-4px); background: var(--card-bg-hover); }
.service svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: .8rem; }
.service-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  margin-bottom: 1rem;
}
.service h3 { margin: 0 0 .4rem; font-size: 1.02rem; font-weight: 700; }
.service p { margin: 0; font-size: .86rem; color: var(--text-dim); line-height: 1.55; }

/* ══ MÉTIERS ══ */
.metiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
}
.metier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s;
}
.metier:hover { transform: translateY(-4px); border-color: var(--mc, var(--teal)); }
.metier { padding: 0; overflow: hidden; }
a.metier { display: flex; }
.metier img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.metier strong { font-size: .92rem; font-weight: 700; }
.metier strong, .metier-hint { padding: .35rem 1rem; text-align: center; }
.metier-hint { font-size: .78rem; font-weight: 600; color: var(--mc, var(--teal)); padding-bottom: .9rem; }

/* ══ PROCESS ══ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
  text-align: left;
}
.step { padding: 1.5rem 1.4rem; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.step-num {
  display: inline-block;
  margin-bottom: .7rem;
  width: 34px; height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(92deg, var(--teal), var(--teal-soft));
}
.step h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 700; }
.step p { margin: 0; font-size: .86rem; color: var(--text-dim); line-height: 1.55; }

/* ══ AGENCES ══ */
.agences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
  text-align: left;
}
.agence-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
}
.agence-card h3 { margin: 0 0 .45rem; font-size: 1.15rem; font-weight: 700; }
.agence-card p { margin: 0 0 .35rem; font-size: .92rem; color: var(--text-dim); line-height: 1.55; }
.agence-tel { font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); transition: border-color .25s; }
.agence-tel:hover { border-color: var(--teal); }
.agence-map { margin-top: 1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.agence-map iframe { display: block; width: 100%; height: 220px; border: 0; }

/* ══ FOOTER ══ */
.footer {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.footer p { margin: 0; }
.footer a { color: var(--text); border-bottom: 1px solid var(--line); transition: border-color .25s; }
.footer a:hover { border-color: var(--teal); }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .topbar { flex-direction: column; gap: .7rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Confort : on coupe les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ══ FAQ ══ */
.faq-list { max-width: 760px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: .8rem; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 1.1rem 1.4rem;
  transition: border-color .25s;
}
.faq-list details[open] { border-color: var(--teal); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal);
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: .8rem 0 0; font-size: .92rem; color: var(--text-dim); line-height: 1.65; }

/* ══ FORMULAIRE DEVIS ══ */
.contact-form {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
}
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit;
  color: var(--text);
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: center; border: 0; cursor: pointer; padding: .95rem 2.2rem; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-note { text-align: center; font-size: .82rem; color: var(--text-dim); margin: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
