/* styles.css - jinsan.fr
   Objectif: rendu rapide, lisible, accessible, sans dépendances.
*/
:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --card:#f8fafc;
  --border:#e2e8f0;
  --accent:#0ea5a4;
  --accent-2:#f97316;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius: 18px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  text-rendering:optimizeLegibility;
}

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

.skip-link{
  position:absolute; left:-999px; top:8px;
  background:#000; color:#fff; padding:10px 12px; border-radius:10px;
}
.skip-link:focus{left:12px; z-index:9999}

.sale-banner{
  position:sticky; top:0; z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.sale-banner .wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.sale-banner .label{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
}
.sale-banner .dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--accent-2);
  box-shadow:0 0 0 6px rgba(249,115,22,.15);
}
.sale-banner form{margin:0}
.sale-banner form button{
  appearance:none;
  border:1px solid var(--border);
  background:var(--text);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.sale-banner form button:hover{filter:brightness(1.05)}
.sale-banner small{color:var(--muted)}

header{
  border-bottom:1px solid var(--border);
}
header .wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, rgba(14,165,164,.22), rgba(249,115,22,.18));
  border:1px solid var(--border);
  display:grid; place-items:center;
}
.brand-badge svg{width:18px; height:18px}

nav ul{
  list-style:none; padding:0; margin:0;
  display:flex; gap:14px; align-items:center;
}
nav a{
  padding:8px 10px;
  border-radius:999px;
}
nav a:hover{background:var(--card); text-decoration:none}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:transparent;
  border-radius:12px;
  padding:10px;
}
.nav-toggle svg{width:20px;height:20px}

main{display:block}

.hero{
  position:relative;
  overflow:hidden;
}
.hero .bg{
  position:absolute; inset:0;
  background:#0b1220;
}
.hero .bg img{
  width:100%; height:100%;
  object-fit:cover;
  opacity:.78;
  filter:saturate(1.02) contrast(1.02);
}
.hero .overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(15,23,42,.82), rgba(15,23,42,.45), rgba(15,23,42,.18));
}
.hero .wrap{
  position:relative;
  max-width:var(--max);
  margin:0 auto;
  padding:74px 16px 54px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:end;
}
.hero h1{
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(30px, 4vw, 46px);
  line-height:1.08;
  letter-spacing:-.6px;
}
.hero p{
  margin:0 0 18px;
  color:rgba(255,255,255,.88);
  font-size:18px;
  max-width:56ch;
}
.hero .cta{
  display:flex; gap:12px; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}
.btn-primary{
  background:#fff;
  color:#0b1220;
}
.btn-primary:hover{text-decoration:none; filter:brightness(1.02)}
.btn-secondary{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.22);
  color:#fff;
}
.btn-secondary:hover{text-decoration:none; background:rgba(255,255,255,.18)}
.hero .card{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  padding:18px;
  color:#fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.hero .card h2{
  margin:0 0 8px;
  font-size:18px;
}
.hero .card ul{
  margin:0; padding-left:18px;
  color:rgba(255,255,255,.9);
}
.hero .meta{
  margin-top:12px;
  color:rgba(255,255,255,.75);
  font-size:13px;
}

section{
  padding:62px 16px;
}
.section-wrap{
  max-width:var(--max);
  margin:0 auto;
}
.kicker{
  color:var(--accent);
  font-weight:800;
  letter-spacing:.3px;
  text-transform:uppercase;
  font-size:12px;
}
h2{
  margin:10px 0 12px;
  font-size:clamp(22px, 3vw, 32px);
  letter-spacing:-.4px;
}
.lead{
  color:var(--muted);
  margin:0;
  max-width:80ch;
  font-size:16px;
}

.grid{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:18px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted)}
.card .icon{
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  display:grid; place-items:center;
  margin-bottom:12px;
  overflow:hidden;
}
.card .icon img{width:44px; height:44px; object-fit:cover}

.col-7{grid-column: span 7}
.col-5{grid-column: span 5}
.col-6{grid-column: span 6}
.col-4{grid-column: span 4}
.col-12{grid-column: span 12}

.media{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
  margin-top:26px;
}
.media figure{
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow);
}
.media figure img{width:100%; height:100%; object-fit:cover}
.media .content{
  padding:4px 0;
}
.checklist{
  margin:14px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.badges{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;
}
.badge{
  font-size:12px;
  font-weight:800;
  color:var(--text);
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:7px 10px;
}

.faq{
  margin-top:20px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
}
.faq details{
  padding:16px 18px;
  border-top:1px solid var(--border);
}
.faq details:first-child{border-top:none}
.faq summary{
  cursor:pointer;
  font-weight:800;
}
.faq p{margin:10px 0 0; color:var(--muted)}

.blog-cards{
  margin-top:24px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.blog-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.blog-card img{width:100%; height:220px; object-fit:cover}
.blog-card .body{padding:18px}
.blog-card .body h3{margin:0 0 8px}
.blog-card .body p{margin:0 0 14px; color:var(--muted)}
.blog-card .body .btn{
  width:max-content;
  background:var(--text);
  color:#fff;
  padding:10px 12px;
}

.contact{
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  flex-wrap:wrap;
}
.contact .box{
  flex:1 1 420px;
}
.contact a.mail{
  display:inline-flex; gap:10px; align-items:center;
  font-weight:900;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow: var(--shadow);
}
.contact a.mail:hover{text-decoration:none; filter:brightness(1.02)}

footer{
  border-top:1px solid var(--border);
  padding:32px 16px 42px;
}
footer .wrap{
  max-width:var(--max);
  margin:0 auto;
  display:flex; justify-content:space-between; gap:16px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
footer nav a{color:var(--muted)}
footer nav a:hover{color:var(--text)}

.disclaimer {
  font-size: 12px;
  color: #888;
  margin-top: 40px;
}

.article-hero{
  max-width:var(--max);
  margin:0 auto;
  padding:40px 16px 10px;
}
.article-hero h1{
  margin:0 0 10px;
  font-size:clamp(28px, 4vw, 44px);
  letter-spacing:-.6px;
}
.article-hero p{
  margin:0;
  color:var(--muted);
  max-width:85ch;
}
.article-cover{
  max-width:var(--max);
  margin:18px auto 0;
  padding:0 16px;
}
.article-cover figure{
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}
.article-cover img{width:100%; height:auto}
.article{
  max-width:var(--max);
  margin:0 auto;
  padding:26px 16px 70px;
}
.article h2{margin-top:30px}
.article h3{margin-top:22px}
.article p{color:var(--muted); max-width:90ch}
.article ul, .article ol{color:var(--muted); max-width:88ch}
.article .note{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 18px;
  margin:18px 0;
  color:var(--muted);
}
.breadcrumbs{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 16px 0;
  font-size:13px;
  color:var(--muted);
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}
@media (max-width: 900px){
  .hero .wrap{grid-template-columns: 1fr; padding-top:58px}
  .media{grid-template-columns: 1fr}
  .blog-cards{grid-template-columns: 1fr}
  nav ul{display:none}
  .nav-toggle{display:inline-flex}
  nav[data-open="true"] ul{
    display:flex;
    position:absolute;
    right:16px;
    top:72px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:10px;
    flex-direction:column;
    min-width:220px;
    box-shadow: var(--shadow);
  }
}
