/*
Theme Name: Groupe Serenobat
Theme URI: https://groupe-serenobat.fr
Description: Thème WordPress B2B artisans — réseau de partenaires Serenobat
Version: 1.0
Author: Serenobat
*/

/* ═══ VARIABLES ═══ */
:root {
  --vert:       #1D9E75;
  --vert-fonce: #085041;
  --vert-clair: #E1F5EE;
  --vert-moyen: #9FE1CB;
  --texte:      #0F1A17;
  --texte-sec:  #5A7066;
  --fond:       #FFFFFF;
  --fond-sec:   #F5FAF8;
  --bordure:    #D6E8DF;
  --blanc:      #FFFFFF;
  --or:         #E8A500;
  --radius:     10px;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--texte); background: var(--fond); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══ UTILITAIRES ═══ */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.center     { text-align: center; }
.eyebrow    { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert); margin-bottom: .5rem; }
.section    { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-alt{ background: var(--fond-sec); padding: 4rem 0; }
.section-alt .container { padding: 0 2rem; }
.section-h  { font-size: clamp(22px,3vw,32px); font-weight: 500; letter-spacing: -.02em; margin-bottom: .75rem; }
.section-sub{ font-size: 15px; color: var(--texte-sec); max-width: 580px; margin-bottom: 2rem; }
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3     { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-4     { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.btn        { display: inline-flex; align-items: center; gap: .5rem; background: var(--vert); color: #fff; padding: .75rem 1.5rem; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: background .2s; }
.btn:hover  { background: var(--vert-fonce); }
.btn-or     { background: var(--or); color: #fff; }
.btn-or:hover{ background: #cc9000; }
.btn-white  { background: #fff; color: var(--vert-fonce); }
.btn-white:hover{ background: var(--vert-clair); }
.btn-outline{ background: transparent; color: var(--vert); border: 1.5px solid var(--vert); }
.btn-outline:hover{ background: var(--vert-clair); }

/* ═══ NAV ═══ */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); transition: box-shadow .25s; }
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; height: 60px; }
.nav-logo  { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 16px; color: var(--vert-fonce); white-space: nowrap; margin-right: auto; letter-spacing: -.01em; }
.nav-logo-icon { width: 30px; height: 30px; background: var(--vert); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: .125rem; list-style: none; }
.nav-links > li > a { display: flex; align-items: center; gap: .3rem; padding: .4rem .6rem; font-size: 13px; font-weight: 500; color: var(--texte-sec); border-radius: 7px; transition: background .15s, color .15s; white-space: nowrap; }
.nav-links > li > a:hover { background: var(--fond-sec); color: var(--vert-fonce); }
.nav-sep { width: 1px; height: 20px; background: var(--bordure); margin: 0 .75rem; flex-shrink: 0; }
.nav-cta { flex-shrink: 0; }
.nav-cta .btn { background: var(--vert); color: #fff; border-radius: 8px; padding: .45rem 1rem; font-size: 13px; font-weight: 600; white-space: nowrap; border: none; box-shadow: 0 2px 8px rgba(29,158,117,.25); }
.nav-cta .btn:hover { background: var(--vert-fonce); box-shadow: 0 4px 12px rgba(29,158,117,.3); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--texte); margin-left: 1rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.nav-chevron { font-size: 11px; opacity: .5; transition: transform .2s; }
.has-dropdown:hover .nav-chevron, .has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); opacity: .8; }
.dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.1); padding: .5rem; min-width: 240px; list-style: none; z-index: 200; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { display: flex; align-items: center; gap: .625rem; padding: .6rem .875rem; font-size: 13px; font-weight: 500; color: var(--texte); border-radius: 9px; transition: background .12s, color .12s; }
.dropdown li a:hover { background: var(--fond-sec); color: var(--vert); }
.dropdown-footer { border-top: 1px solid var(--bordure); margin-top: .375rem; padding-top: .375rem; }
.dropdown-footer a { color: var(--vert) !important; font-weight: 600 !important; }

/* ═══ HERO B2B ═══ */
.hero-groupe { background: var(--vert-fonce); color: #fff; padding: 5rem 2rem 4rem; position: relative; overflow: hidden; }
.hero-groupe::before { content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(29,158,117,.35) 0%, transparent 70%); pointer-events: none; }
.hero-groupe-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-g-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 0.5px solid rgba(255,255,255,.25); border-radius: 20px; padding: .3rem .9rem; font-size: 12px; margin-bottom: 1.25rem; }
.hero-g-h1  { font-size: clamp(28px,4vw,48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1rem; }
.hero-g-h1 em { color: var(--vert-moyen); font-style: normal; }
.hero-g-sub { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 1.75rem; }
.hero-g-btns{ display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card  { background: rgba(255,255,255,.08); border: 0.5px solid rgba(255,255,255,.2); border-radius: 16px; padding: 1.75rem; }
.hero-card-title { font-size: 15px; font-weight: 500; margin-bottom: 1rem; color: rgba(255,255,255,.9); }
.hero-card-stat  { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat-item  { background: rgba(255,255,255,.08); border-radius: 10px; padding: .875rem; text-align: center; }
.stat-n     { font-size: 24px; font-weight: 600; color: #fff; }
.stat-l     { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ═══ CARDS AVANTAGES ═══ */
.card { background: var(--fond); border: 0.5px solid var(--bordure); border-radius: 12px; padding: 1.5rem; }
.card-ico { width: 44px; height: 44px; background: var(--vert-clair); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-ico i { color: var(--vert); font-size: 20px; }
.card h3 { font-size: 15px; font-weight: 500; margin-bottom: .5rem; }
.card p { font-size: 13px; color: var(--texte-sec); line-height: 1.6; }

/* ═══ DIVISIONS GRID ═══ */
.divisions-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.division-card  { border: 0.5px solid var(--bordure); border-radius: 12px; padding: 1.25rem; background: var(--fond); transition: border-color .2s, box-shadow .2s; }
.division-card:hover { border-color: var(--vert); box-shadow: 0 4px 16px rgba(29,158,117,.1); }
.division-card.hot { border-color: var(--vert-moyen); background: var(--vert-clair); }
.div-nom  { font-size: 14px; font-weight: 500; margin-bottom: .25rem; }
.div-desc { font-size: 12px; color: var(--texte-sec); line-height: 1.5; margin-bottom: .75rem; }
.div-hot  { display: inline-block; background: var(--vert); color: #fff; border-radius: 4px; padding: 2px 7px; font-size: 10px; font-weight: 600; }
.div-link { font-size: 12px; color: var(--vert); }

/* ═══ PROCESSUS PARTENAIRE ═══ */
.steps-alt { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; position: relative; }
.steps-alt::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: var(--bordure); z-index: 0; }
.step-alt { text-align: center; position: relative; z-index: 1; }
.step-alt-n { width: 56px; height: 56px; background: var(--vert); color: #fff; border-radius: 50%; font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step-alt h3 { font-size: 14px; font-weight: 500; margin-bottom: .5rem; }
.step-alt p  { font-size: 13px; color: var(--texte-sec); line-height: 1.6; }

/* ═══ TEMOIGNAGES ═══ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testi { background: var(--fond-sec); border: 0.5px solid var(--bordure); border-radius: 12px; padding: 1.5rem; }
.stars { color: var(--or); font-size: 14px; margin-bottom: .75rem; }
.testi p { font-size: 14px; color: var(--texte-sec); line-height: 1.7; margin-bottom: 1rem; }
.testi-auth { display: flex; align-items: center; gap: .75rem; }
.avatar { width: 36px; height: 36px; min-width: 36px; background: var(--vert); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.auth-name { font-size: 13px; font-weight: 500; }
.auth-role { font-size: 11px; color: var(--texte-sec); }

/* ═══ PAGE HERO (intérieure) ═══ */
.page-hero { background: var(--vert-fonce); color: #fff; padding: 3rem 2rem; }
.page-hero .container { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(22px,3.5vw,40px); font-weight: 500; letter-spacing: -.02em; margin-bottom: .5rem; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }

/* ═══ FORM-CARD ═══ */
.form-card { background: #fff; border: 0.5px solid var(--bordure); border-radius: 14px; padding: 1.75rem; }
.form-card h3 { font-size: 16px; font-weight: 500; margin-bottom: .5rem; }
.wpcf7-form { display: flex; flex-direction: column; gap: .75rem; }
.wpcf7-form input, .wpcf7-form select, .wpcf7-form textarea { width: 100%; padding: .65rem .9rem; border: 0.5px solid var(--bordure); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--fond-sec); transition: border-color .15s; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--vert); background: #fff; }
.wpcf7-form textarea { min-height: 100px; resize: vertical; }
.wpcf7-form input[type="submit"] { background: var(--vert); color: #fff; border: none; cursor: pointer; font-weight: 500; transition: background .2s; }
.wpcf7-form input[type="submit"]:hover { background: var(--vert-fonce); }

/* ═══ FOOTER ═══ */
.cta-band-g { background: var(--vert); padding: 3.5rem 2rem; text-align: center; color: #fff; }
.cta-band-g h2 { font-size: clamp(22px,3vw,32px); font-weight: 500; margin-bottom: .75rem; }
.cta-band-g p { font-size: 16px; opacity: .85; margin-bottom: 1.5rem; }
.cta-band-g .cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-g   { background: var(--vert-fonce); color: rgba(255,255,255,.75); padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-g h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: .875rem; }
.footer-g ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-g ul a { font-size: 13px; opacity: .75; transition: opacity .15s; }
.footer-g ul a:hover { opacity: 1; }
.footer-logo { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.footer-tagline { font-size: 13px; margin-bottom: 1rem; opacity: .65; }
.footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 0.5px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom span { font-size: 12px; opacity: .5; }

/* ═══ BADGES ═══ */
.badge-open  { display: inline-flex; align-items: center; gap: 4px; background: var(--vert-clair); color: var(--vert); border-radius: 20px; padding: .3rem .8rem; font-size: 12px; font-weight: 500; }
.badge-hot   { display: inline-flex; align-items: center; gap: 4px; background: var(--or); color: #fff; border-radius: 20px; padding: .3rem .8rem; font-size: 11px; font-weight: 600; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .hero-groupe-inner, .grid-2 { grid-template-columns: 1fr; }
  .divisions-grid { grid-template-columns: repeat(2,1fr); }
  .steps-alt { grid-template-columns: repeat(2,1fr); }
  .steps-alt::before { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; align-items: stretch; position: fixed; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--bordure); padding: .75rem 1rem 1rem; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: .65rem .75rem; font-size: 14px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .nav-sep { display: none; }
  .nav-cta { margin-top: .5rem; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: .75rem; font-size: 14px; }
  .grid-3, .grid-4, .divisions-grid { grid-template-columns: 1fr 1fr; }
  .steps-alt { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  /* Dropdown mobile */
  .has-dropdown .dropdown { display: none; position: static; box-shadow: none; border: none; border-radius: 0; padding: .25rem 0 .25rem .75rem; margin-top: .25rem; background: transparent; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { padding: .45rem .5rem; font-size: 13px; }
  .dropdown-footer { border-top: 1px solid var(--bordure); margin-top: .25rem; padding-top: .25rem; }
}

/* Animations scroll */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fade-up { transition: none; } }
