/* cmsms stylesheet: gp2026 modified: 01/10/26 19:42:34 */
/* =========================================================
   GP2026 – Greenplush SRL
   Feuille de style unique du design GP2026 (CMSMS).
   ========================================================= */

:root {
  --green: #b4dc2d;
  --green-hover: #a5cc22;
  --ink: #23262b;
  --slate: #5d636b;
  --sky: #00abdc;
  --mist: #f3f6ec;
  --line: #e3e7da;
  --paper: #ffffff;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --wrap: 1180px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* ---------- Boutons et liens ---------- */
.btn, .btn-success, .btn-secondary { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; border-radius: 999px; padding: 14px 26px; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary, .btn-success, .btn-secondary { background: var(--green); color: #000; }
.btn-primary:hover, .btn-success:hover, .btn-secondary:hover { background: var(--green-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-header .logo img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 999px; color: var(--ink); display: block; }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"], .site-nav a.is-parent { font-weight: 700; }
.site-nav .nav-cta { background: var(--ink); color: #fff; margin-left: 10px; padding: 10px 20px; }
.site-nav .nav-cta:hover { background: #000; }
.menu-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 600; padding: 8px 12px; border-radius: 8px; color: var(--ink); cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-mist { background: var(--mist); }
.section-tight-top { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; }
.section-head > * { min-width: 0; }
.section-head h2 { flex: 1 1 auto; }
.section-head p { flex: 0 1 380px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 750; margin: 0; max-width: 22ch; }
.section-head p { color: var(--slate); margin: 0; max-width: 42ch; }

/* ---------- Accueil : hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 28px; max-width: 16ch; }
.hero .lead, .hero .lead p { font-size: 20px; line-height: 1.55; color: var(--slate); max-width: 46ch; }
.hero .lead { margin: 0 0 36px; }
.hero .lead p { margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 44px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--slate); font-size: 15px; }
.hero .facts strong { display: block; white-space: nowrap; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* La forme "plush" : la tache organique du logo */
.plush { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; justify-self: end; }
.plush svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plush .blob-bg { transform: translate(26px, 22px) rotate(8deg); }
.plush .dot { position: absolute; border-radius: 50%; background: var(--green); }
.plush .dot.d1 { width: 34px; height: 34px; top: 2%; right: 6%; }
.plush .dot.d2 { width: 18px; height: 18px; top: 13%; right: -1%; background: var(--ink); }
.plush .dot.d3 { width: 22px; height: 22px; bottom: 4%; left: 3%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .plush .blob-bg { animation: gp-settle 1.1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes gp-settle { from { transform: translate(0,0) rotate(0); opacity: 0; } to { transform: translate(26px,22px) rotate(8deg); opacity: 1; } }
}

/* ---------- Pages intérieures : bandeau titre ---------- */
.page-hero { padding: 64px 0 56px; background: var(--mist); }
.page-hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; margin: 0; max-width: 22ch; }
.page-hero p { color: var(--slate); font-size: 19px; margin: 16px 0 0; max-width: 56ch; }
.page-body { padding: 72px 0 104px; }

/* Texte riche (contenu WYSIWYG) */
.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5 { letter-spacing: -0.015em; line-height: 1.25; margin: 1.8em 0 .5em; font-weight: 700; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 20px; }
.prose h5 { font-size: 19px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green-hover); }
.prose a:not(.btn) { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose img { border-radius: var(--radius-s); }

/* Mise en page deux colonnes (À propos, Contact) */
.two-cols { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.two-cols > * { min-width: 0; }
.aside-card { background: var(--mist); border-radius: var(--radius-l); padding: 32px; position: sticky; top: 108px; }
.aside-card > :first-child { margin-top: 0; }
.aside-card > :last-child { margin-bottom: 0; }
.aside-card h3, .aside-card h4 { margin: 12px 0 4px; font-size: 22px; letter-spacing: -0.015em; }
.aside-card p { margin: 0 0 14px; color: var(--slate); }
.aside-card strong { color: var(--ink); }
.aside-card img { width: 160px !important; height: 160px; object-fit: cover; border-radius: 50%; display: block; }
.aside-card .btn-success { width: 100%; justify-content: center; font-size: 16px; padding: 12px 18px; background: #fff; }
.aside-card .btn-success:hover { background: var(--green); }

/* ---------- Services (sortie LISE "gp2020_services") ---------- */
.gp-services > p { display: contents; }
.gp-services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.gp-services .box-1 { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.gp-services .box-1:nth-of-type(3n+2), .gp-services .box-1:nth-of-type(3n+3) { padding-left: 32px; border-left: 1px solid var(--line); }
.gp-services .box { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.gp-services .box > div:last-child { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gp-services .fa { width: 48px; height: 48px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; font-size: 22px; color: var(--ink); transition: background .15s; }
.section-mist .gp-services .fa { background: #fff; }
.gp-services .box-1:hover .fa { background: var(--green); }
.gp-services h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin: 8px 0 0; font-weight: 700; }
.gp-services h3 a { text-decoration: none; }
.gp-services h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.gp-services p { margin: 0; color: var(--slate); font-size: 16px; }
.gp-services p:last-child { margin-top: auto; padding-top: 8px; }
.gp-services .btn { background: none; padding: 0; border: 0; border-radius: 0; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 6px; float: none !important; }
.gp-services .btn:hover { background: none; text-decoration-color: var(--ink); }

/* Fiche service (détail LISE) */
.page-service .gp-module { display: block; }
.page-service .gp-module > .col-sm-4 { display: none; }
.page-service .gp-module .box img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-l); display: block; margin-bottom: 40px; }
.page-service .gp-module .box h2 { font-size: clamp(30px, 3.4vw, 44px) !important; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 24px !important; }
.page-service .gp-module .box { max-width: 78ch; }
.page-service .gp-module .box h3 { font-size: 24px; letter-spacing: -0.015em; margin: 1.6em 0 .5em; }
.page-service .gp-module .box ul { padding-left: 1.3em; }
.page-service .gp-module .box li { margin-bottom: .5em; }
.page-service .gp-module .box li::marker { color: var(--green-hover); }
.page-service .gp-module .row p { margin: 40px 0 0; }
.page-service .gp-module .row .btn-success { background: transparent; border-color: var(--ink); color: var(--ink); }
.page-service .gp-module .row .btn-success:hover { background: var(--ink); color: #fff; }

/* ---------- Plateformes (LISE "gp2026_platforms") ---------- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform { background: #fff; border-radius: var(--radius-l); padding: 36px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; min-width: 0; }
.platform .tag { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--slate); background: var(--mist); padding: 4px 12px; border-radius: 999px; }
.platform h3 { font-size: 30px; letter-spacing: -0.025em; line-height: 1.1; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.platform p { margin: 0; color: var(--slate); max-width: 44ch; }
.platform .link { margin-top: auto; align-self: flex-start; }
.platform.featured { background: var(--ink); color: #fff; }
.platform.featured p { color: #c9ccd1; }
.platform.featured .tag { background: var(--green); color: #000; }
.platform.featured .link { color: #fff; }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.news-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.news-card .thumb { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); display: block; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.03); }
.news-card time { font-size: 14px; color: var(--slate); }
.news-card h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.news-grid .news-card:first-child h3 { font-size: 26px; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.news-card .summary, .news-card .summary p { margin: 0; color: var(--slate); font-size: 16px; }
.news-grid .news-card:not(:first-child) .summary { display: none; }

.gp-news-detail { max-width: 78ch; }
.gp-news-detail .meta { color: var(--slate); font-size: 15px; margin: 0 0 20px; }
.gp-news-detail h2.title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 28px; }
.gp-news-detail .cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-l); display: block; margin: 0 0 40px; }
.gp-news-detail .back { margin-top: 48px; }

/* ---------- Formulaire de contact (CGBetterForms) ---------- */
#contact form { display: grid; gap: 16px; }
#contact .row, #contact .form-group { display: grid; gap: 16px; margin: 0; }
#contact .form-group.row { grid-template-columns: 1fr 1fr; }
#contact .col-sm-12, #contact .col-md-12 { grid-column: 1 / -1; }
#contact .row:empty { display: none; }
#contact .form-control, #contact .cgbf_input_captcha { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .15s; }
#contact .form-control:focus, #contact .cgbf_input_captcha:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(180,220,45,.45); }
#contact textarea.form-control { resize: vertical; min-height: 160px; }
#contact [data-cgbf-captcha] img { border-radius: 10px; display: block; }
#contact [data-cgbf-captcha-input] { max-width: 260px; }
#contact button[type="submit"] { justify-self: start; margin-top: 8px; }
#contact .alert, #contact .error, #contact .cgbf_error { color: #a3121a; }

/* ---------- Bandeau contact ---------- */
.cta { padding: 0 0 104px; }
.cta-box { background: var(--green); border-radius: var(--radius-l); padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-box > * { min-width: 0; }
.cta-box h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; color: #000; }
.cta-box p { margin: 0; color: #1f2a05; font-size: 18px; max-width: 40ch; }
.cta-box .contact-card { background: #fff; border-radius: var(--radius-m); padding: 28px 30px; display: grid; gap: 6px; font-size: 17px; }
.cta-box .contact-card a { font-weight: 600; text-decoration: none; }
.cta-box .contact-card a:hover { text-decoration: underline; }
.cta-box .contact-card .btn { margin-top: 16px; justify-self: start; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; color: var(--slate); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo img { height: 38px; width: auto; display: block; margin-bottom: 16px; }
.site-footer h2 { color: var(--ink); font-size: 15px; margin: 4px 0 14px; font-weight: 700; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); transition: background .15s; }
.site-footer .social a:hover { background: var(--green); }
.site-footer .social svg { width: 19px; height: 19px; fill: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .plush { max-width: 420px; justify-self: center; order: -1; }
  .gp-services { grid-template-columns: 1fr 1fr; }
  .gp-services .box-1:nth-of-type(n) { padding: 32px 24px 36px 0; border-left: 0; }
  .gp-services .box-1:nth-of-type(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .news-grid, .news-list { grid-template-columns: 1fr 1fr; }
  .news-grid .news-card:first-child { grid-column: 1 / -1; }
  .two-cols { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
  .cta-box { grid-template-columns: 1fr; padding: 44px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 68px; }
  .site-header .logo img { height: 36px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 32px 0 64px; }
  .hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
  .hero .facts strong { white-space: normal; font-size: 22px; }
  .section { padding: 72px 0; }
  .section-tight-top { padding-top: 0; }
  .section-head { flex-direction: column; align-items: start; margin-bottom: 36px; }
  .section-head h2, .section-head p { flex: none; }
  .page-hero { padding: 40px 0 36px; }
  .page-body { padding: 48px 0 72px; }
  .gp-services, .platforms, .news-grid, .news-list { grid-template-columns: 1fr; }
  .gp-services .box-1:nth-of-type(n) { padding: 28px 0; border-left: 0; }
  .platform { padding: 28px 22px; min-height: 0; }
  .platform h3 { font-size: 26px; }
  #contact .form-group.row { grid-template-columns: 1fr; }
  .page-service .gp-module .box img { height: 220px; }
  .cta { padding-bottom: 72px; }
  .cta-box { padding: 32px 24px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
