/* =============================================
   E-Accessoires.fr — Feuille de style principale
   ============================================= */

:root {
  --orange: #ea580c;
  --orange-l: #fff7ed;
  --orange-d: #c2410c;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(234,88,12,0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-800);
  background: var(--white);
}
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', serif;
  line-height: 1.3;
  color: var(--slate-900);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 1.5rem 0 0.75rem; }
p { margin-bottom: 1rem; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-d); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--slate-900); }

/* ---- Conteneur ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header Sticky ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--slate-100);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}
.logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap;
}
.logo span { color: var(--orange); }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}
nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  background: var(--orange-l);
  color: var(--orange);
  text-decoration: none;
}

/* Menu burger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-900);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--slate-100);
  padding: 0.6rem 0;
  font-size: 0.82rem;
  color: var(--slate-600);
}
.breadcrumb a { color: var(--slate-600); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #fff3eb 100%);
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.hero .container { max-width: 780px; }
.badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

/* ---- Boutons ---- */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}
.btn-primary:hover {
  background: var(--orange-d);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

/* ---- Section générique ---- */
section {
  padding: 3rem 0;
}
section:nth-child(even) { background: var(--slate-100); }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title p {
  color: var(--slate-600);
  max-width: 560px;
  margin: 0.5rem auto 0;
}

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.2s;
  border-top: 3px solid transparent;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-top-color: var(--orange);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.card p {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}
.card a.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card a.card-link::after { content: '→'; }

/* ---- Trust Columns ---- */
.trust-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item .trust-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.trust-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.trust-item p { font-size: 0.88rem; color: var(--slate-600); }

/* ---- Article Content ---- */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.article-content h2 { border-bottom: 2px solid var(--orange-l); padding-bottom: 0.5rem; }

/* ---- Tableau comparatif ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead tr { background: var(--slate-900); color: var(--white); }
thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
tbody tr:nth-child(even) { background: var(--slate-100); }
tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
tbody tr:hover { background: var(--orange-l); }

/* ---- FAQ ---- */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--orange-l); }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--orange); flex-shrink: 0; }
.faq-q[aria-expanded="true"]::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--slate-600);
  font-size: 0.92rem;
}
.faq-a.open { display: block; }

/* ---- CTA Box ---- */
.cta-box {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.cta-box .btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
  font-size: 1rem;
}
.cta-box .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  text-decoration: none;
  color: var(--orange-d);
}

/* ---- Author bloc ---- */
.author-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Contact Form ---- */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.9rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--slate-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.12);
}
textarea { resize: vertical; min-height: 130px; }

/* ---- Footer ---- */
footer {
  background: var(--slate-900);
  color: #94a3b8;
  padding: 3.5rem 1.25rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.footer-logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--orange); }
footer p { font-size: 0.85rem; margin-bottom: 0.5rem; }
footer h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer ul a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.2s;
}
footer ul a:hover { color: var(--orange); text-decoration: none; }
.footer-partner {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.85rem;
}
.footer-partner a { color: var(--orange); font-weight: 600; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem 0 1rem;
    background: var(--white);
    border-top: 1px solid var(--slate-100);
  }
  nav.open { display: flex; }
  nav a { padding: 0.55rem 1rem; font-size: 0.9rem; }
  .header-inner { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ---- Galerie produits ElockStore ---- */
.product-gallery {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--orange-l);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}
.product-gallery h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--slate-900);
}
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  padding: 0.75rem;
  background: #fafafa;
}
.product-card-body {
  padding: 0.6rem 0.75rem;
}
.product-card-body a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  display: block;
  text-decoration: none;
}
.product-card-body a:hover { color: var(--orange-d); text-decoration: underline; }
.product-card-body .product-cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  background: var(--orange);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
}
.product-card-body .product-cta:hover {
  background: var(--orange-d);
  text-decoration: none;
  color: white;
}
