/*
Theme Name:  PrestigeiaPro
Theme URI:   https://prestigeiapro.com
Description: Thème officiel PrestigeiaPro — Mise en relation artisans & clients
Author:      PrestigeiaPro
Version:     2.1.0
Text Domain: prestigeia-pro
*/

:root {
  --bleu:    #0A2463;
  --terra:   #E8622A;
  --blanc:   #FFFFFF;
  --gris:    #F5F5F5;
  --texte:   #1a1a2e;
  --muted:   #6b7280;
  --ombre:   0 4px 24px rgba(10,36,99,0.10);
  --radius:  12px;
  --font:    'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── UTILITAIRES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terra); color: var(--blanc);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,98,42,.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blanc);
  padding: 13px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--blanc); }

/* ── NAVIGATION ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--bleu);
  box-shadow: 0 2px 16px rgba(10,36,99,.18);
  transition: background .3s;
}
#site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.site-logo {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -1px;
  color: var(--blanc);
}
.site-logo span { color: var(--terra); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: rgba(255,255,255,.85); padding: 8px 16px;
  border-radius: 8px; font-size: .9rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--blanc); background: rgba(255,255,255,.1); }
.site-nav .nav-cta {
  background: var(--terra); color: var(--blanc) !important;
  padding: 9px 22px; border-radius: 50px; font-weight: 700;
  margin-left: 8px;
}
.site-nav .nav-cta:hover { background: #d4561f !important; }

/* ── BURGER ── */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.burger span { width: 26px; height: 2px; background: var(--blanc); border-radius: 4px; transition: .3s; display: block; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .site-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bleu); flex-direction: column; align-items: stretch;
    padding: 16px 24px 24px; gap: 4px; transform: translateY(-120%);
    transition: transform .3s; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 16px; font-size: 1rem; }
  .site-nav .nav-cta { text-align: center; margin: 8px 0 0; }
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bleu) 0%, #1a3a7a 60%, #0d2f5e 100%);
  display: flex; align-items: center; padding-top: 68px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,98,42,.2); border: 1px solid rgba(232,98,42,.4);
  color: #f5a07a; padding: 6px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--blanc); line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero-title span { color: var(--terra); }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat span { display: block; }
.hero-stat strong { font-size: 1.8rem; font-weight: 900; color: var(--terra); }
.hero-stat em { font-size: .85rem; color: rgba(255,255,255,.6); font-style: normal; }

/* Carte hero */
.hero-map-card {
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 28px; box-shadow: var(--ombre);
}
.hero-map-card h3 { color: var(--blanc); font-size: 1.1rem; margin-bottom: 16px; }
#map-mini {
  width: 100%; height: 260px; border-radius: 12px; overflow: hidden;
  background: #1a3a7a;
}
@media (max-width: 900px) { .hero-map-card { display: none; } }

/* ── SECTIONS COMMUNES ── */
.section { padding: 80px 0; }
.section-alt { background: var(--gris); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--bleu);
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.section-sub {
  color: var(--muted); font-size: 1.05rem;
  margin-bottom: 48px; max-width: 600px;
}

/* ── DEVIS ── */
.devis-wrap {
  background: var(--bleu); border-radius: 20px;
  padding: 48px; box-shadow: var(--ombre);
}
.devis-wrap .section-title { color: var(--blanc); }
.devis-wrap .section-sub { color: rgba(255,255,255,.7); }

/* ── MÉTIERS ── */
.metiers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.metier-card {
  background: var(--blanc); border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.metier-card:hover {
  transform: translateY(-4px); border-color: var(--terra);
  box-shadow: 0 8px 24px rgba(232,98,42,.15);
}
.metier-icon { font-size: 2.2rem; margin-bottom: 10px; }
.metier-card h4 { font-size: .9rem; font-weight: 700; color: var(--bleu); }

/* ── PLANS ── */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: start;
}
.plan-card {
  background: var(--blanc); border: 2px solid #e5e7eb;
  border-radius: 20px; padding: 36px; position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.plan-card:hover { border-color: var(--terra); box-shadow: var(--ombre); }
.plan-card.featured {
  border-color: var(--terra);
  box-shadow: 0 8px 32px rgba(232,98,42,.2);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--terra); color: var(--blanc);
  padding: 4px 20px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 1.2rem; font-weight: 800; color: var(--bleu); margin-bottom: 8px; }
.plan-price { font-size: 2.6rem; font-weight: 900; color: var(--terra); line-height: 1; }
.plan-price sup { font-size: 1.2rem; }
.plan-price sub { font-size: .9rem; color: var(--muted); }
.plan-features { list-style: none; margin: 24px 0 32px; }
.plan-features li {
  padding: 8px 0; border-bottom: 1px solid #f3f4f6;
  font-size: .9rem; color: var(--texte); display: flex; gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--terra); font-weight: 900; }

/* ── FOOTER ── */
#site-footer {
  background: var(--bleu); color: rgba(255,255,255,.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col h4 {
  color: var(--blanc); font-size: .95rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: .5px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.6);
  font-size: .88rem; padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--terra); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .83rem;
  color: rgba(255,255,255,.4);
}

/* ── PAGES INTÉRIEURES ── */
.page-wrap {
  padding-top: 68px; min-height: 80vh;
}
.page-content {
  max-width: 900px; margin: 0 auto; padding: 60px 24px;
}
.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--bleu);
  margin-bottom: 32px; font-weight: 900;
}

/* ══════════════════════════════════
   ÉTAPES (comment ça marche)
══════════════════════════════════ */
.etapes-grid {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 8px; flex-wrap: wrap;
}
.etape-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; flex: 1; min-width: 180px; max-width: 220px;
  position: relative;
}
.etape-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--terra); color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900;
}
.etape-icon { font-size: 2.2rem; margin-bottom: 12px; }
.etape-card h3 { font-size: .95rem; font-weight: 800; color: var(--bleu); margin-bottom: 8px; }
.etape-card p  { font-size: .83rem; color: var(--muted); line-height: 1.6; }
.etape-arrow   { font-size: 1.8rem; color: var(--terra); padding-top: 60px; flex-shrink: 0; }
@media (max-width: 768px) { .etape-arrow { display: none; } }

/* ══════════════════════════════════
   MÉTIERS (description)
══════════════════════════════════ */
.metier-desc { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ══════════════════════════════════
   GARANTIES
══════════════════════════════════ */
.garanties-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.garantie-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: background .2s;
}
.garantie-card:hover { background: rgba(255,255,255,.13); }
.garantie-icon { font-size: 2.4rem; margin-bottom: 14px; }
.garantie-card h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.garantie-card p  { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.6; }

/* ══════════════════════════════════
   TÉMOIGNAGES
══════════════════════════════════ */
.temoignages-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.temoignage-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--ombre);
}
.temoignage-stars { font-size: 1rem; margin-bottom: 12px; }
.temoignage-texte {
  font-size: .92rem; color: #374151; line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.temoignage-auteur {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid #f3f4f6;
}
.temoignage-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bleu); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; flex-shrink: 0;
}
.temoignage-auteur strong { display: block; color: var(--bleu); font-size: .9rem; }
.temoignage-auteur span   { font-size: .78rem; color: var(--muted); }

/* ── NAVIGATION — Espace utilisateur ── */
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900;
}
.nav-user-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.nav-link-espace {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 6px 14px !important;
  font-size: .82rem !important;
}
.nav-logout {
  font-size: .78rem !important;
  color: rgba(255,255,255,.5) !important;
  padding: 6px 10px !important;
}
.nav-logout:hover { color: #fca5a5 !important; }
