/* MX Vintage Parts — site public. Style minimaliste noir/blanc, repris et
   étendu depuis le brouillon (8. Projets/mxvintagepartsweb/style.css). */

* { box-sizing: border-box; }

body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;
  font-size:15px;
  background:#fff;
  color:#111;
  -webkit-font-smoothing:antialiased;
}

header{ border-bottom:1px solid #e5e5e5; }

nav{
  max-width:1100px;
  margin:auto;
  padding:16px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
}

nav a{
  margin-left:30px;
  letter-spacing:0.3px;
  text-decoration:none;
  color:#111;
  font-weight:600;
  font-size:15px;
}
nav a.active{ color:#111; border-bottom:2px solid #111; padding-bottom:2px; }
nav a:hover{ opacity:0.7; }

.logo{ margin-left:0; margin-right:8px; display:flex; align-items:center; }
.logo img{ height:4.2em; width:auto; display:block; }

.lang-switch{
  margin-left:auto;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.04em;
  white-space:nowrap;
}
.lang-switch a{ margin-left:10px; font-size:13px; }
.lang-switch .on{ border-bottom:2px solid #111; padding-bottom:2px; }

main{ max-width:1100px; margin:auto; padding:0 16px 60px; }

h1{ font-size:26px; margin:0 0 8px; }
h2{ font-size:20px; margin:0 0 14px; font-weight:600; }
p{ line-height:1.6; }

button,.btn{
  padding:11px 18px;
  border:1px solid #111;
  background:#111;
  color:#fff;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  font-size:14px;
  font-weight:600;
  border-radius:2px;
}
.btn.btn-outline{ background:#fff; color:#111; }
button:hover,.btn:hover{ opacity:0.85; }

input,textarea{
  width:100%;
  padding:11px 12px;
  margin-bottom:12px;
  border:1px solid #ccc;
  font-size:14px;
  border-radius:2px;
  font-family:inherit;
}

/* --- Sections génériques --- */
.section{ padding:40px 0; border-top:1px solid #eee; }
.section:first-child{ border-top:none; }
.section-label{ font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:#888; margin-bottom:10px; }

/* --- Hero (accueil) --- */
.hero{ text-align:center; padding:64px 0 48px; }
.hero h1{ font-size:34px; max-width:720px; margin:0 auto 22px; line-height:1.3; }
.hero .btn{ font-size:15px; padding:13px 26px; }
.hero-tagline{ font-size:34px; font-weight:700; max-width:720px; margin:0 auto; line-height:1.3; }

/* --- Promo du mois --- */
.promo-box{
  border:1px solid #111;
  padding:26px 28px;
  max-width:640px;
  margin:0 auto;
  text-align:center;
}
.promo-box h2{ margin-bottom:6px; }
.promo-box p{ color:#333; margin-bottom:16px; }

/* --- Cartes de liens (accueil) --- */
.link-cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  max-width:900px;
  margin:0 auto;
}
.link-card{
  border:1px solid #ddd;
  padding:26px 20px;
  text-align:center;
  text-decoration:none;
  color:#111;
  transition:border-color 0.15s;
}
.link-card:hover{ border-color:#111; }
.link-card .icon{ height:56px; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.link-card .icon svg{ width:44px; height:44px; }
.link-card .icon img{ max-height:44px; max-width:120px; }
.link-card strong{ display:block; margin-bottom:6px; font-size:15px; }
.link-card span{ font-size:13px; color:#666; }


/* --- Avis eBay (accueil) --- */
.avis-section{ max-width:900px; margin:0 auto; text-align:center; }
.avis-section h2{ text-align:center; }
.avis-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin:0 auto 24px;
  text-align:left;
}
.avis-card{
  margin:0;
  border:1px solid #ddd;
  padding:20px 18px;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.avis-card p{ margin:0 0 12px; font-size:14px; line-height:1.45; flex:1; }
.avis-card cite{ font-style:normal; font-size:12px; color:#666; }
.avis-card .avis-date{ display:block; margin-top:2px; color:#999; }
.avis-all{ display:inline-block; margin-top:4px; }

/* --- Marque (présentation courte) --- */
.presentation{ max-width:680px; margin:0 auto; text-align:center; }

/* --- Carte des ventes par région --- */
.map-section{ max-width:900px; margin:0 auto; }
.map-section h2{ text-align:center; }
.maps-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.chart-box{ background:#fafafa; border:1px solid #eee; border-radius:4px; padding:16px 18px; width:100%; max-width:none; }
.chart-title{ font-size:13px; font-weight:600; margin-bottom:6px; color:#333; text-align:center; }
.chart-svg{ width:100%; height:auto; }
.chart-legend{ font-size:12px; color:#777; margin-top:8px; text-align:center; }
.chart-legend .sw{ display:inline-block; width:10px; height:10px; border-radius:2px; margin:0 4px 0 10px; vertical-align:middle; }
.chart-desc{ font-size:13px; color:#555; text-align:center; margin:4px 0 10px; }
.map-updated{ font-size:13px; color:#777; text-align:center; margin:12px 0 0; }
.op30-section{ max-width:900px; margin:0 auto; }
.op30-section h2{ text-align:center; }
.op30-section .chart-box{ padding:16px 18px; }

.map-svg polygon{ cursor:pointer; transition:opacity 0.1s; }
.map-svg polygon:hover{ opacity:0.75; }
.map-tooltip{
  position:fixed; pointer-events:none; display:none; background:#111; color:#fff; font-size:12px;
  padding:6px 10px; border-radius:4px; white-space:nowrap; z-index:1000;
}

/* --- Boutique eBay --- */
.search-box{ max-width:520px; margin:30px 0; }
.buttons-inline{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

/* --- Manuels d'atelier --- */
.manuels-search{ max-width:720px; margin:22px 0 30px; }
.manuels-search input{ width:100%; box-sizing:border-box; padding:12px 14px; font-size:15px; }
.manuels-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.manuels-chip{
  background:#fff; border:1px solid #ccc; color:#333; border-radius:20px;
  padding:7px 14px; font-size:13px; cursor:pointer; transition:border-color 0.15s, background 0.15s;
}
.manuels-chip:hover{ border-color:#111; }
.manuels-chip.active{ background:#111; border-color:#111; color:#fff; }
.manuels-chip span{ opacity:0.7; }
.manuels-count{ font-size:13px; color:#777; margin:10px 2px 0; min-height:18px; }
.manuels-empty{ display:none; max-width:520px; margin:20px 0; font-size:14px; color:#555; }
.manuels-marque{ margin-bottom:34px; }
.manuels-marque-count{ color:#999; font-weight:400; font-size:15px; }
.manuels-liste{ list-style:none; margin:0; padding:0; border-top:1px solid #eee; }
.manuels-liste li{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 4px; border-bottom:1px solid #eee; font-size:15px; gap:12px;
}
.manuels-liste .periode{ color:#777; font-size:13px; }
.manuels-liste button{ flex-shrink:0; padding:8px 16px; font-size:13px; }

/* --- Modal de demande de manuel --- */
.modal-overlay{
  display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:2000;
  align-items:center; justify-content:center; padding:16px;
}
.modal-overlay.open{ display:flex; }
.modal-box{ background:#fff; padding:28px; max-width:400px; width:100%; }
.modal-box h3{ margin:0 0 4px; font-size:18px; }
.modal-box .modal-sub{ font-size:13px; color:#777; margin-bottom:18px; }
.modal-actions{ display:flex; gap:10px; margin-top:6px; }
.modal-actions button{ flex:1; }
.modal-close{ background:#fff; color:#111; border:1px solid #ccc; }
.modal-msg{ font-size:13px; margin-top:10px; display:none; }
.modal-msg.ok{ color:#2e7d32; display:block; }
.modal-msg.err{ color:#c62828; display:block; }

/* --- Qui sommes-nous --- */
.about-hero{ max-width:900px; margin:0 auto 36px; }
.about-hero-img{ width:100%; height:auto; max-height:360px; object-fit:cover; border-radius:4px; display:block; }
.about-block{ max-width:900px; margin:0 auto 44px; }
.about-block h2{ margin-bottom:10px; }
.about-block p{ color:#333; }
.about-block-with-photo{ display:flex; gap:28px; align-items:flex-start; text-align:left; }
.about-portrait{ flex:0 0 160px; }
.about-portrait-img{ width:160px; height:160px; object-fit:cover; border-radius:50%; display:block; }
.about-text{ flex:1; }
.profile-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:10px; }
.profile-header h2{ margin-bottom:0; }
.linkedin-btn{
  display:inline-flex; align-items:center; gap:8px; flex-shrink:0; white-space:nowrap;
  padding:8px 16px; border:1px solid #ccc; border-radius:20px;
  font-size:13px; font-weight:600; color:#111; text-decoration:none;
}
.linkedin-btn:hover{ border-color:#0A66C2; color:#0A66C2; }
.linkedin-btn svg{ width:18px; height:18px; flex-shrink:0; }
.process-steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:16px; max-width:900px; margin:20px auto 0; }
.process-steps .step{ text-align:center; font-size:13px; color:#555; }
.process-steps .step .icon{ height:34px; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; }
.process-steps .step .icon svg{ width:28px; height:28px; }

/* --- Mes agents (chaque agent traité comme un membre de l'équipe, même
   gabarit que le profil de Rémi : voir .about-block-with-photo / .about-portrait) --- */
.agent-portrait-icon{ width:160px; height:160px; border-radius:50%; background:#eef0f4; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.agent-portrait-icon svg, .agent-portrait-icon img{ width:108px; height:108px; object-fit:contain; }

@media (max-width:600px){
  .about-block-with-photo{ flex-direction:column; text-align:center; }
  .profile-header{ justify-content:center; }
}

/* --- Footer --- */
footer{ border-top:1px solid #e5e5e5; padding:26px 16px; text-align:center; font-size:13px; color:#777; }
footer a{ color:#111; text-decoration:none; font-weight:600; }

@media (max-width:700px){
  .link-cards, .maps-grid, .avis-grid{ grid-template-columns:1fr; }
}
@media (max-width:600px){
  nav a{ margin-left:16px; font-size:13px; }
  .hero h1{ font-size:26px; }
  .manuels-liste li{ flex-direction:column; align-items:flex-start; gap:6px; }
}


/* ==========================================================================
   MX redesign — typographie, espacements, hero, pages intro
   (inspiré de chatgpt-site-refait/style.css)
   ========================================================================== */

body {
  font-size: 16px;
  line-height: 1.65;
}
main {
  max-width: 1160px;
  padding: 0 32px 70px;
}
nav {
  max-width: 1160px;
  padding: 18px 32px;
  gap: 22px;
}
nav a {
  margin: 0;
  font-size: 14px;
}
.lang-switch { font-size: 14px; }
.logo img { height: 60px; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(22px, 2.8vw, 28px); }
h3 { font-size: 21px; margin: 28px 0 10px; }

a { color: inherit; }

button, .btn {
  font-size: 16px;
  min-height: 46px;
  border-radius: 3px;
}
input {
  font-size: 16px;
  min-height: 48px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section { padding: 58px 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: #111;
  color: white;
  padding: 12px;
  z-index: 1000;
}
.skip-link:focus { top: 10px; }
:focus-visible {
  outline: 3px solid #245fb4;
  outline-offset: 4px;
}

/* --- Hero --- */
.mx-hero { padding: 72px 0 0; }
.mx-hero h1 {
  font-size: clamp(38px, 5.8vw, 76px);
  max-width: 1000px;
  line-height: 1.03;
  margin: 0 0 28px;
  letter-spacing: -0.055em;
}
.lead {
  font-size: 19px;
  max-width: 640px;
  color: #505050;
  line-height: 1.65;
}
.actions {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  margin: 32px 0 45px;
}

/* --- Page intro --- */
.page-intro { padding: 65px 0 30px; }
.page-intro h1 {
  font-size: clamp(38px, 5vw, 60px);
  max-width: 950px;
}

/* --- Avis + feedback badge --- */
.avis-section h2 { text-align: left; }
.avis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.avis-card {
  margin: 0;
  padding: 23px;
  background: #fafafa;
  border-color: #e5e5e5;
}
.avis-card p { font-size: 16px; }
.avis-date { font-size: 13px; }

.feedback-note {
  font-size: 14px;
  margin: 18px 0 0;
  color: #454545;
}
.feedback-note a { text-decoration: none; }
.feedback-note a:hover { text-decoration: underline; }
.feedback-note a > span:first-child {
  color: #8a6500;
  margin-right: 5px;
}
.feedback-source { color: #666; }

/* --- Europe map section --- */
.europe-section {
  border-top: 1px solid #e6e6e6;
  padding: 38px 0;
  text-align: center;
}
.europe-content {
  max-width: 400px;
  margin: 0 auto;
}
.europe-content p { font-size: 14px; color: #666; }
.europe-content svg {
  width: 100%;
  height: auto;
  display: block;
}
.europe-content .map-updated { font-size: 12px; }
.europe-positive {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 0;
  color: #303d32;
}

/* --- Manuels (search + details groups) --- */
.manuels-search {
  max-width: none;
  margin-bottom: 26px;
}
#manualSearch {
  max-width: 560px;
  background: #fafafa;
  border: 1px solid #ddd;
}
#manuelsListe {
  max-width: 850px;
  margin: 0 auto;
}
#manualCount {
  margin: 4px 0 12px;
  font-size: 13px;
  color: #515151;
}
.manual-group {
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  margin: 12px 0;
  background: white;
  overflow: hidden;
}
.manual-group > summary {
  font-size: 19px;
  letter-spacing: -0.02em;
  padding: 20px 24px;
  min-height: 64px;
  margin: 0;
  cursor: pointer;
}
.manual-group > summary:hover { background: #fafafa; }
.manual-group[open] > summary {
  border-bottom: 1px solid #eee;
  margin: 0;
}
.manual-group .manuels-marque-count {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-left: 8px;
}
.manual-group .manuels-liste {
  margin: 0;
  padding: 0 24px;
}
.manual-group .manuels-item { padding: 18px 0; }
.manual-group .manuels-item:last-child { border-bottom: 0; }
.manual-group .manuels-item button {
  background: white;
  color: #111;
  border: 1px solid #ccc;
  font-size: 14px;
  padding: 8px 16px;
  min-height: 42px;
}
.manual-group .manuels-item button:hover {
  background: #111;
  color: white;
}
.manual-group .periode { margin-top: 5px; }
.periode {
  display: block;
  color: #515151;
  font-size: 14px;
}
.manuels-item { gap: 18px; }
.manuels-item > span { min-width: 0; }
.manuels-item button { flex-shrink: 0; }
.manuels-marque { margin-top: 12px; }

/* --- Qui sommes-nous / agents --- */
.about-block-with-photo { gap: 40px; }
.about-text { min-width: 0; }
.about-text p { max-width: 740px; }
.agents-details {
  border-top: 1px solid #ddd;
  padding: 26px 0;
}
summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  min-height: 44px;
}
details[open] > summary { margin-bottom: 24px; }
.agents-details .about-block { padding: 24px 0; }
.agents-details h2 { font-size: 22px; }

.modal-box {
  max-height: 90dvh;
  overflow: auto;
}

footer {
  font-size: 14px;
  padding: 30px 20px;
  overflow-wrap: anywhere;
}

/* --- Variante mx-redesign (accueil / pages calmes) --- */
.mx-redesign main { max-width: 1040px; }
.mx-redesign .mx-hero {
  padding: 76px 0 60px;
  text-align: center;
}
.mx-redesign .mx-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 780px;
  margin: 0 auto 24px;
}
.mx-redesign .mx-hero .lead {
  margin: 0 auto;
  font-size: 18px;
}
.mx-redesign .mx-hero .actions {
  justify-content: center;
  margin: 28px 0 0;
}
.mx-redesign .avis-section { padding: 38px 0; }
.mx-redesign .avis-section h2 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.avis-section .feedback-note {
  text-align: center;
  margin: 0 0 28px;
}
.mx-redesign .avis-card {
  background: white;
  border: 0;
  border-left: 1px solid #e5e5e5;
  padding: 12px 22px;
}
.mx-redesign .avis-card:first-child { border-left: 0; }
.mx-redesign .avis-all {
  display: table;
  margin: 28px auto 0;
  border: 0;
  padding: 0;
  min-height: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mx-redesign .page-intro { padding: 48px 0 20px; }
.mx-redesign .page-intro h1 { font-size: clamp(26px, 3.5vw, 36px); }
.mx-redesign .page-intro .lead { font-size: 17px; }
.mx-redesign .about-text h3 { font-size: 18px; }
.mx-redesign .about-text p { font-size: 16px; }
.mx-redesign .agents-details summary {
  font-size: 16px;
  color: #555;
}
.mx-redesign .europe-section {
  border-top: 1px solid #e6e6e6;
  padding: 38px 0;
  text-align: center;
}
.mx-redesign .europe-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* --- Media queries redesign --- */
@media (max-width: 760px) {
  main { padding: 0 20px 40px; }
  nav { padding: 14px 20px; gap: 12px 18px; }
  nav .logo { width: calc(100% - 75px); }
  .lang-switch {
    position: absolute;
    right: 20px;
    top: 32px;
  }
  nav a { font-size: 14px; }
  .mx-hero { padding-top: 42px; }
  .section { padding: 35px 0; }
  .avis-grid { grid-template-columns: 1fr; }
  .page-intro { padding-top: 40px; }
  .about-block-with-photo { flex-direction: column; }
  .about-portrait { align-self: flex-start; }
  .actions { gap: 20px; }
  .manuels-item { align-items: flex-start; }
  .profile-header { flex-wrap: wrap; }
  .modal-box {
    width: calc(100% - 24px);
    padding: 22px;
  }

  .mx-redesign .mx-hero { padding: 48px 0; }
  .mx-redesign nav .logo { width: auto; }
  .mx-redesign nav {
    justify-content: center;
    gap: 12px 18px;
  }
  .mx-redesign nav .lang-switch {
    position: static;
    margin-left: auto;
  }
  .mx-redesign nav .logo img { height: 48px; }
  .mx-redesign .avis-card {
    border-left: 0;
    border-top: 1px solid #eee;
    padding: 18px 0;
  }
  .mx-redesign .avis-card:first-child { border-top: 0; }
}

@media (max-width: 600px) {
  .manual-group > summary { padding: 17px 18px; }
  .manual-group .manuels-liste { padding: 0 18px; }
  .manual-group .manuels-item { gap: 12px; }
  .manual-group .manuels-item button { padding: 8px 12px; }
}

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

/* Horodatage site dans le footer */
footer .footer-updated{ margin:10px 0 0; font-size:12px; color:#777; }
