/* ==========================================================================
   Mac Phone Boutic (macphoneboutic.fr) — site.css
   Direction : « Atelier high-tech — précision & circuit ».
   Signature : PUCE / tracé de circuit (cyan) + pads corail. Graphite-encre +
   cyan électrique + corail sur gris-froid clair. Anti-footprint : aucune classe
   custom — on cible classes/ids Bootstrap + pseudo-éléments.
   ========================================================================== */

:root {
  --ink: #161a22;          /* graphite-encre */
  --ink-2: #1e2530;
  --ink-deep: #12151c;     /* footer / panneaux */
  --cyan: #11b3c6;         /* cyan électrique */
  --cyan-dark: #0d95a5;
  --cyan-lt: #5fd6e3;
  --coral: #ff5a3c;        /* corail (New / Promo) */
  --coral-dark: #e6461f;
  --surface: #ffffff;
  --cool: #f2f5f8;         /* gris-froid clair (fond) */
  --line: #dde4ec;
  --muted: #6a7484;
  --text: #2a3340;

  --bs-primary: var(--cyan);
  --bs-primary-rgb: 17, 179, 198;
  --bs-secondary: var(--coral);
  --bs-secondary-rgb: 255, 90, 60;
  --bs-body-bg: var(--cool);
  --bs-body-color: #333c48;
  --bs-body-font-family: 'IBM Plex Sans', system-ui, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-link-color: var(--cyan-dark);
  --bs-link-hover-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-emphasis-color: var(--ink);
}

/* ------------------------------ Base --------------------------------- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--cool);
  background-image:
    radial-gradient(1000px 520px at 100% -6%, rgba(17, 179, 198, 0.08), transparent 60%),
    radial-gradient(820px 460px at -8% 2%, rgba(255, 90, 60, 0.05), transparent 55%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Chakra Petch', system-ui, sans-serif;
  font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: 0.01em;
}

::selection { background: var(--cyan); color: #fff; }
a { text-decoration: none; }

a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-link:focus-visible {
  outline: 3px solid rgba(17, 179, 198, 0.55); outline-offset: 2px; box-shadow: none;
}
section[id] { scroll-margin-top: 92px; }

/* Kicker signature : pad carré cyan + trace + libellé mono espacé */
#kicker, #kicker-light, #kicker-promo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Chakra Petch', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem;
  margin-bottom: 0.9rem; color: var(--cyan-dark);
}
#kicker::before, #kicker-light::before, #kicker-promo::before {
  content: ""; width: 22px; height: 10px; flex: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left center / 8px 8px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 8px center / 14px 2px no-repeat;
  border-radius: 2px;
}
#kicker-light { color: var(--cyan-lt); }
#kicker-promo { color: var(--coral); }
#kicker-promo::before { background:
    linear-gradient(var(--coral), var(--coral)) left center / 8px 8px no-repeat,
    linear-gradient(var(--coral), var(--coral)) 8px center / 14px 2px no-repeat; }

/* --------------------------- Boutons --------------------------------- */
.btn {
  --bs-btn-border-radius: 6px; --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: 0.6rem;
  font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.02em;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-lg { --bs-btn-padding-x: 1.8rem; --bs-btn-padding-y: 0.82rem; }
.btn-primary {
  --bs-btn-bg: var(--cyan); --bs-btn-border-color: var(--cyan);
  --bs-btn-hover-bg: var(--cyan-dark); --bs-btn-hover-border-color: var(--cyan-dark);
  --bs-btn-active-bg: var(--cyan-dark); --bs-btn-color: #06232a; --bs-btn-hover-color: #fff;
  box-shadow: 0 12px 24px -12px rgba(17, 179, 198, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(17, 179, 198, 0.7); }
.btn-outline-light {
  --bs-btn-color: var(--cool); --bs-btn-border-color: rgba(242, 245, 248, 0.4);
  --bs-btn-hover-bg: var(--cool); --bs-btn-hover-color: var(--ink);
}
.btn-outline-light:hover { transform: translateY(-2px); }

/* ---------------------------- Topbar --------------------------------- */
#topbar {
  background: var(--ink-deep); color: rgba(242, 245, 248, 0.8);
  font-size: 0.85rem; padding: 0.45rem 0;
}
#topbar-baseline { color: var(--cyan-lt); font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.05em; }
#topbar a { color: rgba(242, 245, 248, 0.9); font-weight: 500; }
#topbar a:hover { color: var(--cyan-lt); }

/* ---------------------------- Navbar --------------------------------- */
#topnav {
  background: rgba(22, 26, 34, 0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(17, 179, 198, 0.28);
  padding: 0.5rem 0;
}
#brand-name { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.18rem; color: #fff; letter-spacing: 0.02em; }
#brand-sub { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
#topnav .nav-link {
  font-family: 'Chakra Petch', sans-serif; font-weight: 500; font-size: 0.92rem;
  color: rgba(242, 245, 248, 0.82); padding: 0.5rem 0.8rem; position: relative;
}
#topnav .nav-link::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.28rem;
  height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform 0.26s cubic-bezier(0.22,1,0.36,1);
}
#topnav .nav-link:hover, #topnav .nav-link:focus { color: var(--cyan-lt); }
#topnav .nav-link:hover::after { transform: scaleX(1); }
#topnav .navbar-toggler-icon { filter: invert(1) sepia(1) saturate(3) hue-rotate(140deg); }

/* ----------------------------- HERO ---------------------------------- */
#hero { position: relative; overflow: hidden; padding: 4.5rem 0; background: var(--ink); color: #fff; }
#hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(17,179,198,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,179,198,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask: radial-gradient(90% 80% at 20% 20%, #000, transparent 75%);
          mask: radial-gradient(90% 80% at 20% 20%, #000, transparent 75%);
}
#hero .container { position: relative; z-index: 1; }
#hero #kicker { color: var(--cyan-lt); }
#hero #kicker::before { background:
    linear-gradient(var(--cyan-lt), var(--cyan-lt)) left center / 8px 8px no-repeat,
    linear-gradient(var(--cyan-lt), var(--cyan-lt)) 8px center / 14px 2px no-repeat; }
#hero-title {
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: 0.01em; line-height: 1.08; margin-bottom: 1.1rem;
}
#hero-lead { color: rgba(242, 245, 248, 0.82); font-size: 1.12rem; max-width: 42ch; }
#hero-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(17, 179, 198, 0.35);
  box-shadow: 0 34px 64px -30px rgba(0, 0, 0, 0.7);
}
#hero-frame img { width: 100%; height: clamp(280px, 34vw, 420px); object-fit: cover; display: block; }
#hero-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(22, 26, 34, 0.85); color: var(--cyan-lt);
  border: 1px solid rgba(17, 179, 198, 0.4); border-radius: 6px;
  font-family: 'Chakra Petch', sans-serif; font-size: 0.8rem; padding: 0.35rem 0.7rem;
}

/* --------------------------- NOS VALEURS ----------------------------- */
#valeurs { padding: 4.5rem 0; }
#valeur-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.8rem 1.5rem; position: relative; overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
#valeur-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
#valeur-card:hover { transform: translateY(-5px); box-shadow: 0 24px 42px -26px rgba(22, 26, 34, 0.35); border-color: transparent; }
#valeur-card:hover::before { transform: scaleX(1); }
#valeur-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 12px;
  background: rgba(17, 179, 198, 0.1); color: var(--cyan-dark); font-size: 1.4rem;
}
#valeur-card h3 { font-size: 1.1rem; }
#valeur-card p { color: var(--muted); font-size: 0.92rem; }

/* --------------------------- RÉPARATIONS ----------------------------- */
#tarifs { padding: 4.5rem 0; }
#repair-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--ink); color: #fff; border: 1px solid rgba(17,179,198,0.25);
  border-radius: 14px; padding: 1.6rem 1.4rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
#repair-ico {
  width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(17,179,198,0.16); color: var(--cyan-lt); font-size: 1.3rem;
}
#repair-name { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.15rem; }
#repair-more { margin-top: 0.6rem; color: var(--cyan-lt); font-size: 0.85rem; font-weight: 500; }
#repair-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 24px 40px -26px rgba(22, 26, 34, 0.5); }

/* --------------------------- CATALOGUE ------------------------------- */
#produits { padding: 4.5rem 0; }
#cat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.5rem; transition: transform 0.24s ease, box-shadow 0.24s ease;
}
#cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 38px -26px rgba(22, 26, 34, 0.35); }
#cat-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; padding-bottom: 0.9rem; border-bottom: 1px dashed var(--line); }
#cat-ico {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cyan-lt); font-size: 1.2rem;
}
#cat-models { display: flex; flex-wrap: wrap; gap: 0.4rem; }
#model-chip {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 0.76rem; color: var(--text);
  background: var(--cool); border: 1px solid var(--line); border-radius: 999px; padding: 0.18rem 0.6rem;
}
#marques-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
  background: var(--ink); border-radius: 14px; padding: 1.1rem 1.4rem;
}
#marques-lab { font-family: 'Chakra Petch', sans-serif; color: var(--cyan-lt); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
#marque-chip { font-family: 'Chakra Petch', sans-serif; color: #fff; font-size: 0.85rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(17,179,198,0.3); border-radius: 6px; padding: 0.25rem 0.7rem; }

/* --------------------------- VITRINE PRODUITS ------------------------ */
#vitrine { padding: 4.5rem 0; }
#vitrine h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
#prod-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem; overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
#prod-card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -24px rgba(22, 26, 34, 0.35); border-color: var(--cyan); }
#prod-badge {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1;
  font-family: 'Chakra Petch', sans-serif; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--coral); color: #fff; border-radius: 5px; padding: 0.12rem 0.45rem;
}
#prod-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 84px; margin-bottom: 0.9rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--cool), #e7edf4);
  color: var(--cyan-dark); font-size: 2rem;
}
#prod-name { font-size: 0.86rem; color: var(--text); line-height: 1.35; }
#prod-price { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
#vitrine-note { color: var(--muted); font-size: 0.95rem; }
#vitrine-note a { color: var(--cyan-dark); font-weight: 600; }

/* ----------------------------- À PROPOS ------------------------------ */
#apropos { padding: 4.5rem 0; }
#apropos-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
#apropos-text p { color: var(--text); }
#apropos-text b { color: var(--cyan-dark); font-family: 'Chakra Petch', sans-serif; }
#apropos-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 56px -30px rgba(22, 26, 34, 0.45);
}
#apropos-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(17, 179, 198, 0.4);
  border-radius: 16px;
}
#apropos-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------- NEWSLETTER + CONTACT ------------------------- */
#contact { padding: 2rem 0 5.5rem; }
#contact-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: 20px; padding: 3rem 2.6rem;
}
#contact-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(17,179,198,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,179,198,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(70% 100% at 90% 10%, #000, transparent 70%);
          mask: radial-gradient(70% 100% at 90% 10%, #000, transparent 70%);
}
#contact-card > .row { position: relative; z-index: 1; }
#contact-card h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
#contact-card p { color: rgba(242, 245, 248, 0.82); }
#contact-line { display: flex; align-items: center; gap: 0.9rem; }
#contact-line i { color: var(--cyan-lt); font-size: 1.15rem; width: 26px; flex: none; }
#contact-line a, #contact-line span { color: var(--cool); }
#contact-line a:hover { color: var(--cyan-lt); }

/* ------------------------- SEO bloc ---------------------------------- */
#seo { padding: 2.4rem 0; }
#seo h2 { font-size: 1.05rem; color: var(--ink); }
#seo p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0; }
#seo a { color: var(--cyan-dark); }

/* ----------------------------- Footer -------------------------------- */
#site-footer { background: var(--ink-deep); color: rgba(242, 245, 248, 0.72); padding: 3.6rem 0 0; }
#footer-brand { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
#footer-sub { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cyan); }
#footer-about { font-size: 0.9rem; color: rgba(242, 245, 248, 0.6); }
#footer-question { color: var(--cyan-lt); font-family: 'Chakra Petch', sans-serif; }
#site-footer h2 { color: #fff; font-size: 0.88rem; letter-spacing: 0.06em; margin-bottom: 1rem; font-family: 'Chakra Petch', sans-serif; text-transform: uppercase; }
#site-footer a { color: rgba(242, 245, 248, 0.72); }
#site-footer a:hover { color: var(--cyan-lt); }
#site-footer p, #site-footer li { margin-bottom: 0; }
#site-footer hr { border-color: rgba(17, 179, 198, 0.18); opacity: 1; }
#footer-copy { font-size: 0.82rem; color: rgba(242, 245, 248, 0.5); }

/* --------------------------- Responsive ------------------------------ */
@media (max-width: 991.98px) {
  #topnav .navbar-collapse {
    background: var(--ink-2); border: 1px solid rgba(17, 179, 198, 0.25);
    border-radius: 12px; margin-top: 0.6rem; padding: 0.6rem;
  }
  #topnav .nav-link::after { display: none; }
  #hero { padding: 3.4rem 0; }
  #contact-card { padding: 2.2rem 1.6rem; }
}

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