:root{
  --green:#6c6c6a; --green-dark:#2b2b2a; --gold:#ff6711; --gold-soft:#ffeee6;
  --ink:#1c2a27; --muted:#5b6b67; --bg:#fbfaf7; --card:#ffffff; --line:#e4e1d6;
  --radius:14px; --shadow:0 6px 24px rgba(43,43,42,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.65}
img{max-width:100%;display:block}
a{color:var(--green);text-decoration:none}
.container{width:min(1120px,100% - 32px);margin-inline:auto}
h1,h2,h3{line-height:1.2;color:var(--green-dark)}
h1{font-size:clamp(2rem,4.6vw,3.2rem)}
h2{font-size:clamp(1.5rem,3vw,2.1rem);margin-bottom:.6rem}
h3{font-size:1.15rem;margin-bottom:.4rem}
p{color:var(--muted)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,250,246,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:80px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.3rem;color:var(--green-dark);letter-spacing:.5px}
.logo img{height:58px;width:auto}
.footlogo{background:#fff;border-radius:10px;padding:8px 10px;height:64px;width:auto;margin-bottom:12px}
.logo-mark{width:38px;height:38px;border-radius:10px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:1rem;border-bottom:3px solid var(--gold)}
.logo small{display:block;font-weight:500;font-size:.62rem;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;margin-top:-4px}
.menu{display:flex;gap:6px;list-style:none;align-items:center}
.menu a{padding:8px 14px;border-radius:8px;color:var(--ink);font-weight:500;font-size:.95rem}
.menu a:hover,.menu a.active{background:var(--gold-soft);color:var(--green-dark)}
.menu a.btn{background:var(--green);color:#fff}
.menu a.btn:hover{background:var(--green-dark)}
.burger{display:none;background:none;border:0;font-size:1.7rem;cursor:pointer;color:var(--green-dark)}

/* Buttons */
.btn{display:inline-block;padding:12px 24px;border-radius:10px;font-weight:600;border:2px solid transparent;cursor:pointer;font-size:1rem;transition:.2s}
.btn-primary{background:var(--gold);color:#fff}
.btn-primary:hover{background:#e0560a}
.btn-outline{border-color:#fff;color:#fff}
.btn-outline:hover{background:#fff;color:var(--green-dark)}
.btn-green{background:var(--green-dark);color:#fff}
.btn-green:hover{background:#000}

/* Hero */
.hero{background:linear-gradient(135deg,var(--green-dark),var(--green));color:#fff;padding:96px 0 88px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:rgba(201,150,43,.18)}
.hero h1{color:#fff;max-width:760px}
.hero p{color:#d6e2f0;font-size:1.15rem;max-width:620px;margin:18px 0 30px}
.hero .actions{display:flex;gap:14px;flex-wrap:wrap}
.eyebrow{display:inline-block;color:var(--gold);font-weight:700;letter-spacing:2px;text-transform:uppercase;font-size:.8rem;margin-bottom:12px}
.page-hero{padding:64px 0 56px}
.page-hero h1{font-size:clamp(1.8rem,4vw,2.6rem)}

/* Sections */
section{padding:72px 0}
.alt{background:#f1f0ee}
.section-head{max-width:640px;margin-bottom:40px}
.grid{display:grid;gap:22px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);transition:.2s}
.card:hover{transform:translateY(-3px)}
.icon{border-radius:12px;background:var(--gold-soft);display:grid;place-items:center;font-size:1.5rem;margin-bottom:16px}
.card ul{margin:10px 0 0 18px;color:var(--muted)}
.card li{margin-bottom:4px}
.tag{display:inline-block;font-size:.75rem;font-weight:700;background:var(--gold-soft);color:#b83a00;padding:3px 10px;border-radius:99px;margin-bottom:10px}

/* Stats */
.stats{background:var(--green-dark);padding:44px 0}
.stats .grid{text-align:center}
.stats strong{display:block;font-size:2.2rem;color:var(--gold)}
.stats span{color:#c6d4e6;font-size:.95rem}

/* Steps */
.step{position:relative;padding-top:8px}
.num{width:42px;height:42px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700;margin-bottom:12px}

/* CTA */
.cta{background:linear-gradient(135deg,#ff6711,#ff8a3d);text-align:center;padding:56px 0}
.cta h2{color:#fff}
.cta p{color:#fff;margin-bottom:22px}

/* Form */
form{display:grid;gap:14px}
label{font-weight:600;font-size:.9rem;color:var(--green-dark)}
input,select,textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff;margin-top:4px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);border-color:var(--gold)}
textarea{min-height:130px;resize:vertical}
.notice{padding:12px 16px;border-radius:10px;background:#e4ecf6;color:var(--green-dark);display:none}
.contact-list{list-style:none}
.contact-list li{padding:10px 0;border-bottom:1px solid var(--line);color:var(--muted)}
.contact-list b{color:var(--green-dark);display:block}
.ph{background:#fff3c4;padding:0 4px;border-radius:4px}

/* Footer */
.site-footer{background:var(--green-dark);color:#c6d4e6;padding:56px 0 24px}
.site-footer h4{color:#fff;margin-bottom:12px}
.site-footer a{color:#c6d4e6}
.site-footer a:hover{color:var(--gold)}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:6px}
.site-footer p{color:#9fb4cf}
.copy{border-top:1px solid rgba(255,255,255,.12);margin-top:36px;padding-top:18px;font-size:.85rem;text-align:center;color:#9fb4cf}

@media(max-width:900px){
  .g3,.g4{grid-template-columns:repeat(2,1fr)}
  .g2{grid-template-columns:1fr}
}
@media(max-width:700px){
  .burger{display:block}
  .menu{position:absolute;top:80px;left:0;right:0;background:var(--bg);flex-direction:column;padding:14px 16px;border-bottom:1px solid var(--line);display:none;align-items:stretch}
  .menu.open{display:flex}
  .g3,.g4{grid-template-columns:1fr}
  section{padding:52px 0}
  .hero{padding:64px 0}
}

/* ===== Refonte v2 ===== */
.topbar{background:var(--green-dark);color:#c6d4e6;font-size:.82rem}
.topbar .container{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:7px 0}
.topbar a{color:#fff}
.socials{display:flex;gap:10px}
.socials a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;color:#fff;font-weight:700;font-size:.8rem}
.socials a:hover{background:var(--gold);color:#fff}
.hero{min-height:78vh;display:flex;align-items:center;text-align:center;
  background:linear-gradient(rgba(30,30,29,.86),rgba(43,43,42,.92)),
  repeating-linear-gradient(45deg,#2b2b2a 0 14px,#323231 14px 28px)}
.hero h1,.hero p{margin-inline:auto}
.hero .actions{justify-content:center}
.hero::after{background:rgba(201,150,43,.14)}
.page-hero{min-height:0;padding:72px 0 64px}
.slogan{font-style:italic;color:var(--gold);font-size:1.1rem;margin-bottom:10px}
.news{display:flex;flex-direction:column;justify-content:space-between}
.news time{font-size:.8rem;color:var(--gold);font-weight:700;text-transform:uppercase;letter-spacing:1px}
.badge{display:inline-block;background:var(--gold);color:#fff;font-weight:700;border-radius:99px;padding:4px 14px;font-size:.85rem}
.stats .grid{gap:10px}
.office{border-left:4px solid var(--gold)}
.faq details{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:600;color:var(--green-dark)}
.faq details p{margin-top:8px}
.wa{position:fixed;right:18px;bottom:18px;background:#25d366;color:#fff;border-radius:99px;padding:12px 18px;font-weight:700;box-shadow:var(--shadow);z-index:60}
.wa:hover{color:#fff;filter:brightness(.95)}
.g5{grid-template-columns:repeat(5,1fr)}
@media(max-width:900px){.g5{grid-template-columns:repeat(2,1fr)}}
.sector{text-align:center;color:var(--green-dark)}
.sector .icon{margin-inline:auto}
.sector:hover{border-color:var(--gold)}
.office .icon{margin-bottom:10px}
.ic{width:1.1em;height:1.1em;vertical-align:-.18em;flex:none}
.icon{color:var(--gold);width:54px;height:54px}
.icon .ic{width:28px;height:28px}
.wa{display:flex;align-items:center;gap:8px}
/* Accueil avec photo : texte à gauche, sujet à droite */
.hero-home[style]{text-align:left;
  background:linear-gradient(90deg,#1e1e1d 0,#1e1e1d 35%,rgba(30,30,29,.8) 49%,rgba(30,30,29,.1) 74%),var(--photo) calc(100% + 110px) center/auto 100% no-repeat,#2b2b2a}
.hero-home[style] h1,.hero-home[style] p{margin-inline:0;max-width:560px}
.hero-home[style] .actions{justify-content:flex-start}
@media(max-width:800px){
  .hero-home[style]{background:linear-gradient(rgba(30,30,29,.78),rgba(30,30,29,.86)),var(--photo) center/cover no-repeat;text-align:center}
  .hero-home[style] h1,.hero-home[style] p{margin-inline:auto}
  .hero-home[style] .actions{justify-content:center}
}
/* 5 cartes : dernière ligne centrée */
.g3c{grid-template-columns:repeat(6,1fr)}
.g3c>*{grid-column:span 2}
.g3c>:nth-child(4){grid-column:2/span 2}
.g3c>:nth-child(5){grid-column:4/span 2}
@media(max-width:900px){.g3c{grid-template-columns:repeat(2,1fr)}.g3c>*,.g3c>:nth-child(4),.g3c>:nth-child(5){grid-column:auto}}
@media(max-width:700px){.g3c{grid-template-columns:1fr}}

/* Quart de disque du logo : coin supérieur droit, orange plein */
.hero::after,.hero[style]::after{content:"";position:absolute;top:0;right:0;left:auto;bottom:auto;width:clamp(110px,15vw,200px);height:clamp(110px,15vw,200px);border-radius:0 0 0 100%;background:var(--gold);opacity:1;pointer-events:none}
.hero-home[style]::after{display:none}

/* Repères de position */
.progress{position:absolute;left:0;bottom:-1px;height:3px;width:0;background:var(--gold);transition:width .1s linear}
.where{position:absolute;top:100%;left:0;right:0;background:rgba(43,43,42,.94);color:#fff;font-size:.78rem;letter-spacing:.04em;padding:5px 0;opacity:0;transform:translateY(-100%);transition:.2s;pointer-events:none;z-index:-1}
.where .container{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.where b{color:var(--gold);text-transform:uppercase;letter-spacing:.08em}
.where.on{opacity:1;transform:none}
.to-top{position:fixed;right:18px;bottom:76px;z-index:60;width:44px;height:44px;border-radius:50%;border:0;background:var(--green-dark);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s}
.to-top.on{opacity:1;pointer-events:auto}
.to-top:hover{background:var(--gold)}
.to-top .ic{width:22px;height:22px}

/* Cartes cliquables et ancres */
a.card.link{display:block;color:inherit;text-decoration:none}
a.card.link:hover{border-color:var(--gold)}
a.card.link .more{display:inline-block;margin-top:12px;color:var(--gold);font-weight:700;font-size:.92rem}
a.card.link:hover .more{text-decoration:underline}
[id]{scroll-margin-top:110px}
.card:target{outline:2px solid var(--gold);outline-offset:2px}

/* Secteurs : tuiles et fiches avec photos */
.card.sector.photo{padding:0;overflow:hidden;text-align:left;display:flex;flex-direction:column}
.card.sector.photo img{width:100%;height:150px;object-fit:cover;display:block;transition:transform .3s}
.card.sector.photo:hover img{transform:scale(1.04)}
.card.sector.photo h3{padding:14px 16px 16px;margin:0;font-size:1rem}
.sec-detail{padding:0;overflow:hidden}
.sec-detail>img{width:100%;height:210px;object-fit:cover;display:block}
.sec-body{padding:22px 24px 24px}
.sec-detail>img[src$="commerce.jpg"]{object-position:center 22%}
.sec-detail>img[src$="resto.jpg"]{object-position:center 4%}

/* Services : cartes avec photos */
.card.svc-photo{padding:0;overflow:hidden;display:flex;flex-direction:column}
.card.svc-photo>img{width:100%;height:170px;object-fit:cover;display:block;transition:transform .3s}
.card.svc-photo:hover>img{transform:scale(1.04)}
.card.svc-photo .sec-body{padding:20px 22px 22px}
.sec-detail ul{margin:10px 0 0 18px;color:var(--muted)}
.sec-detail li{margin-bottom:4px}
img[src$="services/comptabilite.jpg"],img[src$="services/paie-rh.jpg"]{object-position:center 8%}
img[src$="services/audit.jpg"]{object-position:center 0%}
img[src$="services/finance.jpg"]{object-position:center 15%}

.sec-detail>img{height:260px}
.card.svc-photo>img{height:190px}

/* Accueil : le fondu suit le bord gauche de la photo, quelle que soit la largeur de l'écran */
.hero-home[style]{background:#1e1e1d;position:relative;overflow:hidden;isolation:isolate}
.hero-home[style]::before{content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;height:auto;width:auto;min-width:64vw;aspect-ratio:3/2;
  background:var(--photo) center 28%/cover no-repeat;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.18) 20%,rgba(0,0,0,.55) 42%,rgba(0,0,0,.9) 68%,#000 85%);
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.18) 20%,rgba(0,0,0,.55) 42%,rgba(0,0,0,.9) 68%,#000 85%)}
.hero-home[style]::after{display:none}
@media(max-width:800px){
  .hero-home[style]::before{left:0;width:auto;min-width:0;aspect-ratio:auto;
    background:linear-gradient(rgba(30,30,29,.78),rgba(30,30,29,.86)),var(--photo) center/cover no-repeat;
    -webkit-mask-image:none;mask-image:none}
}

/* Blog */
.post h2{margin:26px 0 8px;font-size:1.3rem}
.post p{margin-top:10px;line-height:1.75}
.post ul{margin:10px 0 0 20px;line-height:1.75}
.post-layout{grid-template-columns:2fr 1fr;align-items:start}
.post-layout aside ul{margin:10px 0 0 18px;line-height:1.6}
.news.link{text-decoration:none;color:inherit}
.news .more{display:inline-block;margin-top:10px;font-weight:700;color:var(--gold)}
@media(max-width:800px){.post-layout{grid-template-columns:1fr}}
.post-img{width:100%;height:auto;max-height:360px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}
.blog-card{padding:0;overflow:hidden}
.blog-card img{width:100%;height:180px;object-fit:cover;display:block}
.blog-card>div{padding:18px}
