/* ==========================================================
   style.css — Kevin, Coach Boxe Lyon
   Feuille de style commune à toutes les pages
   Sommaire : 1. Base · 2. Header · 3. Boutons · 4. Sections
              5. Page d'accueil · 6. Articles · 7. Footer
              8. Responsive
   ========================================================== */

/* ---------- 1. Base ---------- */
:root{
  --bg:#ffffff; --panel:#f8fafc; --ink:#0f172a; --muted:#475569; --accent:#ea580c;
  --border:rgba(15,23,42,.08); --radius:1.2rem; --maxw:1100px; --maxw-article:780px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica Neue,Arial;scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;border-radius:var(--radius)}
.container{max-width:var(--maxw);margin:auto;padding:0 1rem}

/* ---------- 2. Header + menu ---------- */
header{position:sticky;top:0;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);z-index:50}
.nav{display:flex;justify-content:space-between;align-items:center;padding:.8rem 0}
.nav-wrap{position:relative}
.brand{font-weight:800}
.brand strong{color:var(--accent)}
.menu{display:flex;gap:1rem;align-items:center}

.burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:34px;height:28px;border:none;background:none;cursor:pointer}
.burger span{height:3px;width:100%;background:var(--ink);border-radius:2px;transition:.25s}
.burger.active span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.burger.active span:nth-child(2){opacity:0}
.burger.active span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* ---------- 3. Boutons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--accent);color:#fff;font-weight:700;padding:.7rem 1rem;border-radius:.7rem;border:1px solid rgba(0,0,0,.04);box-shadow:0 6px 18px rgba(234,88,12,.18)}
.btn.alt{background:#fff;border:1px solid var(--border);color:var(--ink);box-shadow:none}

/* ---------- 4. Sections et éléments communs ---------- */
section{padding:3rem 0;border-top:1px solid var(--border)}
h1{font-size:clamp(2.2rem,4.5vw,3.6rem);line-height:1.05;margin:.6rem 0 .8rem;font-weight:800}
h2{font-size:clamp(1.6rem,2.8vw,2.2rem);margin:0 0 1.1rem}
p.lead{color:var(--muted);max-width:70ch}
.kicker{color:var(--accent);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.8rem}

.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:1.5rem;align-items:center}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem}
.card p:last-child{margin-bottom:0}
.badge{display:inline-block;padding:.25rem .55rem;border-radius:999px;background:#fff;border:1px solid var(--border);font-size:.75rem}
.ico{width:28px;height:28px;display:inline-block;flex:none}
.row{display:flex;gap:.8rem;align-items:flex-start}
details.card summary{cursor:pointer;font-weight:700}

/* ---------- 5. Page d'accueil ---------- */
/* Avis */
.avis-grid{display:flex;flex-direction:column;gap:1.2rem}
.avis-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.testi{background:linear-gradient(180deg,#fff,var(--panel));border:1px solid var(--border);border-radius:var(--radius);padding:1rem;display:flex;flex-direction:column;justify-content:space-between;margin:0}
.testi p{margin:0 0 .6rem}
.testi footer{font-style:italic;color:var(--muted);margin-top:.4rem}
.stars{color:#fbbf24;font-size:1.05rem}
/* Tarifs */
.tarifs-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1.5rem;align-items:stretch}

/* ---------- 6. Articles de blog ---------- */
.article{max-width:var(--maxw-article);margin:auto;padding:0 1rem 1rem}
.article section{padding:0;border-top:1px solid var(--border)}
.article h1{font-size:clamp(2rem,4.2vw,3.2rem);line-height:1.1;margin:.5rem 0 .8rem}
.article h2{font-size:clamp(1.4rem,2.6vw,1.9rem);line-height:1.2;margin:2.4rem 0 .8rem;font-weight:800}
.article h3{font-size:1.1rem;margin:1.4rem 0 .4rem}
.article p,.article li{line-height:1.7;color:#1e293b}
.article .kicker{margin-top:1rem}
.article .card{margin:1.2rem 0}
.article details.card p{margin:.6rem 0 0}
.crumbs{font-size:.85rem;color:var(--muted);padding:1.2rem 0 0}
.crumbs a{text-decoration:underline;text-underline-offset:3px}
.meta{color:var(--muted);font-size:.9rem;margin:0 0 1.4rem}
.answer{background:var(--panel);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:var(--radius);padding:1.1rem 1.2rem;margin:1.2rem 0}
.answer p{margin:0}
.tablewrap{overflow-x:auto;margin:1.2rem 0;border:1px solid var(--border);border-radius:var(--radius)}
table{width:100%;border-collapse:collapse;min-width:520px;font-size:.95rem}
th,td{text-align:left;padding:.75rem .9rem;border-bottom:1px solid var(--border);vertical-align:top}
th{background:var(--panel);font-weight:700}
tr:last-child td{border-bottom:0}
td strong{color:var(--accent)}
.cta{background:linear-gradient(180deg,#fff,var(--panel));border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem;margin:2.4rem 0}
.cta h2{margin-top:0}

/* ---------- 7. Footer ---------- */
.site-footer{border-top:1px solid var(--border);background:var(--panel);padding:2.5rem 0 1.5rem;margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1.3fr 1fr;gap:2rem}
.footer-about p{margin:.6rem 0 0;color:var(--muted);font-size:.95rem;line-height:1.6;max-width:32ch}
.footer-title{margin:0 0 .8rem;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:.5rem 0;font-size:.95rem;color:var(--muted);line-height:1.4}
.site-footer li a{color:var(--muted)}
.site-footer li a:hover{color:var(--accent)}
.footer-bottom{margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;font-size:.8rem;line-height:1.6;color:var(--muted)}
.footer-bottom p{margin:0;max-width:75ch}
.footer-bottom a{text-decoration:underline;text-underline-offset:3px}
.footer-bottom a:hover{color:var(--accent)}

/* ---------- 8. Responsive ---------- */
@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .cards,.avis-cards,.tarifs-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .burger{display:flex}
  /* Menu mobile (masqué par défaut) */
  .menu{position:absolute;top:100%;right:0;left:0;display:none;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);padding:1rem;box-shadow:0 10px 20px rgba(0,0,0,.08)}
  .menu a{padding:.6rem 0;border-bottom:1px solid rgba(0,0,0,.05)}
  .menu a:last-child{border-bottom:0}
  .menu a.btn{justify-content:center;padding:.7rem 1rem;margin-top:.6rem;border-bottom:0}
  .menu.open{display:flex}
}
@media (max-width: 560px){
  .footer-grid{grid-template-columns:1fr;gap:1.5rem}
}
