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

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#f8f7f2;
  color:#333;
  min-height:100vh;
  line-height:1.6;
}

header{
  background:#1a1a2e;
  padding:10px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.3);
}

.logo{
  color:#fbbf24;
  font-size:22px;
  font-weight:700;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.logo img{height:50px;width:auto}

.hero{
  background:linear-gradient(0deg,#1a1a2e 0%,#2d2d5e 100%);
  color:white;
  text-align:center;
  padding:20px 20px 10px;
}

.hero h1{
  font-size:clamp(24px,5vw,42px);
  font-weight:800;
  margin-bottom:12px;
  line-height:1.2;
}

.hero h1 em{color:#fbbf24;font-style:normal}

.hero p{
  font-size:clamp(14px,2.5vw,18px);
  color:#cbd5e1;
  max-width:720px;
  margin:0 auto;
}

.hero img{width:98%;max-width:98%;height:auto}

.wave{overflow:hidden;line-height:0;background:#1a1a2e}
.wave svg{display:block;width:100%}

.section{
  max-width:1100px;
  margin:0 auto;
  padding:40px 20px;
  position:relative;
}

.section-title{
  text-align:center;
  font-size:26px;
  font-weight:700;
  color:#1a1a2e;
  margin-bottom:8px;
}

.section-sub{
  text-align:center;
  color:#64748b;
  font-size:15px;
  margin-bottom:36px;
}

/* Intro accueil + catégorie */
.page-home .intro,
.page-category .intro{
  max-width:1000px;
  margin:0 auto 40px;
  color:#475569;
}

.intro-haut{display:flex;align-items:flex-start;gap:25px}
.intro-image{flex:0 0 150px;text-align:center}
.intro-image img{width:150px;height:auto}

.intro-texte{
  font-size:16px;
  line-height:1.7;
  text-align:left;
}

.intro-texte h1{
  color:#1a1a2e;
  font-size:34px;
  line-height:1.2;
  margin-bottom:20px;
}

.intro-bas{font-size:16px;line-height:1.7}
.intro strong{color:#1a1a2e}

.intro a,
.legal-card a{
  color:#d97706;
  font-weight:700;
  text-decoration:none;
}

.intro a:hover,
.legal-card a:hover{text-decoration:underline}

.back-mobile{
  position:absolute;
  top:8px;
  left:20px;
  display:inline-block;
  color:#64748b;
  font-size:13px;
  text-decoration:none;
  z-index:5;
}

.back-mobile:hover{color:#fbbf24}

.back-box{margin-bottom:22px}

.back-box a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#1a1a2e;
  color:#fbbf24;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  padding:10px 18px;
  border-radius:999px;
  transition:all .2s;
}

.back-box a:hover{background:#111827;transform:translateY(-1px)}

/* Zone publicité */
.ad-zone,
.reserve-zone{
  margin:28px auto 34px;
  text-align:center;
}

.ad-slot,
.reserve-box{
  width:970px;
  height:90px;
  max-width:100%;
  margin:0 auto;
  border-radius:12px;
  background:rgba(26,26,46,.08);
  border:1px dashed rgba(26,26,46,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:12px;
  overflow:hidden;
}

/* Grand emplacement publicité, plutôt pour le bas de page */
.reserve-box-large{
  width:970px;
  height:250px;
  max-width:100%;
  margin:0 auto;
  border-radius:12px;
  background:rgba(26,26,46,.08);
  border:1px dashed rgba(26,26,46,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:12px;
  overflow:hidden;
}

/* Bandeau création rapide */
.quick-banner{
  margin:30px auto 36px;
  background:linear-gradient(135deg,#fbbf24,#f59e0b);
  color:#1a1a2e;
  border-radius:22px;
  padding:24px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow:0 10px 28px rgba(245,158,11,.22);
}

.quick-banner-text{display:flex;align-items:center;gap:16px}

.quick-banner-image {
  width:75px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  }
.quick-banner-image img {
  width:auto;
  height:200px;
  }
  
.quick-banner h2{font-size:24px;line-height:1.15;margin-bottom:6px}
.quick-banner strong{display:block;font-size:20px;line-height:1.2;margin-bottom:5px}

.quick-banner p,
.quick-banner span{
  display:block;
  font-size:14px;
  line-height:1.5;
  opacity:.92;
  max-width:560px;
}

.quick-banner .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#1a1a2e;
  color:#fbbf24;
  font-weight:800;
  text-decoration:none;
  font-size:15px;
  padding:14px 22px;
  border-radius:999px;
  white-space:nowrap;
  transition:all .2s;
}

.quick-banner .btn:hover{background:#111827;transform:translateY(-1px)}

/* Accueil */
.cat-grid,
.top-grid,
.modeles-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.top-grid{gap:14px}

.cat-card{
  background:white;
  border-radius:16px;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
  padding:24px 16px 20px;
  text-align:center;
  text-decoration:none;
  color:#1a1a2e;
  transition:all .25s;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  border:2px solid transparent;
  position:relative;
  overflow:hidden;
}

.cat-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#fbbf24,#f59e0b);
  opacity:0;
  transition:opacity .25s;
}

.cat-card:hover,
.top-card:hover,
.modele-card:hover{
  transform:translateY(-3px);
  border-color:#fbbf24;
}

.cat-card:hover{box-shadow:0 8px 24px rgba(251,191,36,.25)}
.cat-card:hover::before{opacity:.05}

.cat-card img{
  width:140px;
  height:80px;
  object-fit:contain;
  position:relative;
  z-index:1;
}

.cat-card .cat-nom{
  font-weight:700;
  font-size:14px;
  line-height:1.3;
  position:relative;
  z-index:1;
}

.cat-card .cat-nb{
  font-size:12px;
  color:#94a3b8;
  position:relative;
  z-index:1;
}

.cat-card:hover .cat-nb{color:#f59e0b}

.top-card,
.modele-card{
  background:white;
  color:#1a1a2e;
  text-decoration:none;
  transition:all .25s;
  overflow:hidden;
  border:2px solid transparent;
}

.top-card{
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.07);
  display:flex;
  flex-direction:column;
  position:relative;
}

.modele-card{
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  display:block;
}

.top-card:hover,
.modele-card:hover{box-shadow:0 8px 20px rgba(251,191,36,.2)}

.top-card .rank{
  position:absolute;
  top:8px;
  left:8px;
  background:#1a1a2e;
  color:#fbbf24;
  font-weight:800;
  font-size:12px;
  width:26px;
  height:26px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
  z-index:2;
}

.top-card .rank.gold{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#1a1a2e}
.top-card .rank.silver{background:linear-gradient(135deg,#cbd5e1,#94a3b8);color:#1e293b}
.top-card .rank.bronze{background:linear-gradient(135deg,#d97706,#b45309);color:#fff}

.top-card .thumb,
.top-card .thumb-placeholder{
  width:100%;
  aspect-ratio:4/3;
  background:#f1f5f9;
}

.top-card .thumb{object-fit:cover}

.top-card .thumb-placeholder,
.modele-card .thumb-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
}

.top-card .thumb-placeholder{font-size:36px}
.top-card .top-info{padding:10px 12px}

.top-card .top-nom{
  font-weight:700;
  font-size:13px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.top-card .top-dl{font-size:11px;color:#94a3b8;margin-top:4px}

/* Catégorie */
.modele-card .thumb{
  aspect-ratio:1754/1240;
  background:#f1f5f9;
  overflow:hidden;
}

.modele-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s;
}

.modele-card:hover .thumb img{transform:scale(1.05)}
.modele-card .thumb-placeholder{width:100%;height:100%;font-size:48px}
.modele-card .info{padding:10px 12px}

.modele-card .info p{
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.empty{text-align:center;padding:60px 20px;color:#94a3b8}
.empty p:first-child{font-size:48px;margin-bottom:12px}

/* Bloc créateur */
.creator-box{
  margin-top:48px;
  background:linear-gradient(135deg,#1a1a2e,#2d2d5e);
  border-radius:20px;
  padding:36px 28px;
  text-align:center;
  color:white;
}

.creator-box-icon{font-size:40px;margin-bottom:12px}

.creator-box h3{
  font-size:22px;
  font-weight:700;
  margin-bottom:10px;
}

.creator-box p{
  color:#cbd5e1;
  font-size:15px;
  max-width:500px;
  margin:0 auto 24px;
}

.creator-box .btn{
  display:inline-block;
  background:#fbbf24;
  color:#1a1a2e;
  font-weight:700;
  font-size:15px;
  padding:14px 32px;
  border-radius:50px;
  text-decoration:none;
  box-shadow:0 4px 16px rgba(251,191,36,.35);
  transition:all .2s;
}

.creator-box .btn:hover{background:#f59e0b;transform:translateY(-2px)}

/* Mentions légales */
.page-legal .hero{padding:30px 20px 26px}
.page-legal .section{max-width:980px;padding:38px 20px 50px}

.legal-card{
  background:white;
  border-radius:20px;
  box-shadow:0 6px 24px rgba(0,0,0,.08);
  padding:34px 32px;
  border:1px solid rgba(26,26,46,.06);
}

.legal-card h2{
  color:#1a1a2e;
  font-size:28px;
  margin-bottom:10px;
}

.legal-card .intro{
  color:#64748b;
  margin-bottom:28px;
  font-size:15px;
}

.legal-card h3{
  color:#1a1a2e;
  font-size:20px;
  margin-top:30px;
  margin-bottom:10px;
  padding-top:4px;
}

.legal-card p{margin-bottom:13px;color:#475569}
.legal-card ul{margin:0 0 15px 20px;color:#475569}
.legal-card li{margin-bottom:6px}
.legal-card strong{color:#1a1a2e}

.warning{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#7c2d12;
  border-radius:14px;
  padding:16px 18px;
  margin:18px 0 8px;
}

.warning strong{color:#7c2d12}

.update-date{
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid #e2e8f0;
  color:#64748b;
  font-style:italic;
  font-size:14px;
}

/* Footer */
footer{
  background:#1a1a2e;
  color:#64748b;
  text-align:center;
  padding:24px;
  font-size:13px;
  margin-top:60px;
}

footer p+p{margin-top:6px}

.footer-links,
.footer-nav{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:12px;
}

.footer-links a,
.footer-nav a{
  color:#cbd5e1;
  text-decoration:none;
}

.footer-links a:hover,
.footer-nav a:hover{
  color:#fbbf24;
  text-decoration:underline;
}

@media(min-width:480px){
  .cat-grid,
  .top-grid,
  .modeles-grid{grid-template-columns:repeat(3,1fr)}

  .cat-card img{width:170px;height:98px}
}

@media(min-width:768px){
  .hero img{width:50%;max-width:50%}
  .cat-grid,
  .modeles-grid{grid-template-columns:repeat(4,1fr)}
  .top-grid{grid-template-columns:repeat(5,1fr)}
  .cat-card img{width:200px;height:115px}
}

@media(min-width:769px){
  .page-home .intro,
  .page-category .intro{
    display:grid;
    grid-template-columns:140px 1fr;
    column-gap:25px;
    row-gap:15px;
    align-items:start;
  }

  .intro-haut{display:contents}
  .intro-image{grid-column:1;grid-row:1 / span 2}
  .intro-texte{grid-column:2;grid-row:1}
  .intro-bas{grid-column:2;grid-row:2;text-align:left;margin:0}
}

@media(max-width:768px){
  .section{padding:30px 20px}

  .page-home .intro,
  .page-category .intro{margin-bottom:35px}

  .intro-haut{display:flex;align-items:center;gap:5px}
  .intro-image{flex:0 0 100px;text-align:center}

  .intro-image img{
    width:120px;
    max-width:none;
    height:auto;
    margin-left:-10px;
  }

  .intro-texte{
    flex:1;
    font-size:15px;
    line-height:1.6;
    text-align:left;
  }

  .intro-texte h1{
    font-size:24px;
    line-height:1.2;
    margin-bottom:12px;
  }

  .intro-bas{
    margin-top:16px;
    text-align:center;
    font-size:15px;
    line-height:1.6;
  }


  .ad-zone,
.reserve-zone{
    margin:24px auto 30px;
  }

  .ad-slot,
.reserve-box{
    width:320px;
    height:100px;
    border-radius:10px;
  }


  .reserve-box-large{
    width:320px;
    height:250px;
    border-radius:10px;
  }

  .quick-banner{
    flex-direction:column;
    align-items:flex-start;
    padding:22px 18px;
  }

  .quick-banner h2{font-size:22px}
  .quick-banner .btn{width:100%}

  .page-legal .section{padding:28px 14px 40px}
  .legal-card{padding:24px 18px;border-radius:16px}
  .legal-card h2{font-size:24px}
  .legal-card h3{font-size:18px}
  .page-legal .hero{padding:24px 16px 22px}
}
