/*
Theme Name: MG369 V016
Theme URI: https://groupemg369.com/
Author: Groupe MG369 / WORK E
Description: Thème Groupe MG369. Préserve les contenus WordPress et les intégrations commerciales existantes.
Version: 0.16.4
Requires at least: 6.7
Text Domain: mg369-v016
*/

:root {
  --ink: #061b2b;
  --ink-2: #0d3151;
  --ink-3: #174a73;
  --blue: #14a8f7;
  --blue-2: #0877c8;
  --green: #7fe35a;
  --paper: #f6f8fa;
  --white: #ffffff;
  --muted: #b9c9d7;
  --body: #334b5f;
  --line: rgba(33, 126, 183, 0.22);
  --shadow: 0 24px 70px rgba(2, 22, 37, 0.13);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, Manrope, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(6, 27, 43, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-signature { gap: 15px; min-width: 0; }
.brand-signature img { width: 138px; height: auto; flex: 0 0 auto; object-fit: contain; }
.brand-name {
  display: grid;
  gap: 3px;
  padding-left: 15px;
  color: var(--white);
  border-left: 1px solid rgba(119,203,255,.46);
  line-height: 1;
  white-space: nowrap;
}
.brand-name span { color: #77cbff; font-size: .57rem; font-weight: 760; letter-spacing: .22em; text-transform: uppercase; }
.brand-name strong { font-size: 1.22rem; font-weight: 760; letter-spacing: .025em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav-list li:last-child a { padding: 11px 17px; border: 1px solid rgba(127,227,90,.65); border-radius: 999px; }
.site-nav a {
  color: #e9f2f8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--green); }
.nav-cta { padding: 11px 17px; border: 1px solid rgba(127,227,90,.65); border-radius: 999px; }
.menu-toggle { display: none; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.on-dark .eyebrow { color: #77cbff; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(3.15rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.2em; }
.lede { max-width: 700px; font-size: clamp(1.1rem, 1.7vw, 1.34rem); color: #d7e5ef; }
.section-lede { max-width: 760px; color: var(--body); font-size: 1.16rem; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(20,168,247,.22), transparent 31%),
    linear-gradient(135deg, #061827 0%, #0a2d4a 56%, #0b385c 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  align-items: center;
  gap: 72px;
  padding: 104px 0 118px;
}
.hero h1 { max-width: 820px; margin-bottom: 30px; }
.hero h1 .blue { color: #63c8ff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 780;
  cursor: pointer;
}
.button-primary { color: var(--ink); background: var(--green); }
.button-primary:hover { background: #97ef79; transform: translateY(-1px); }
.button-secondary { color: var(--white); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.4); }
.button-secondary:hover { background: rgba(255,255,255,.1); }

.signal-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 38px;
  border: 1px solid rgba(114,201,255,.32);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
}
.signal-card > *:not(.growth-line) { position: relative; z-index: 2; }
.signal-card .metric { color: #83d2ff; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.signal-card strong { display: block; margin: 14px 0 6px; font-size: 2.05rem; line-height: 1.08; }
.signal-card p { color: #c7d9e6; }
.growth-line { position: absolute; z-index: 0; inset: auto -8px 24px 18px; height: 164px; opacity: .36; pointer-events: none; }
.growth-line svg { width: 100%; height: 100%; overflow: visible; }
.growth-line polyline { fill: none; stroke: var(--green); stroke-width: 2.35; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(127,227,90,.45)); }
.growth-line circle { fill: var(--green); opacity: .78; }

.trust-strip { color: #d8e8f2; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); }
.trust-item { padding: 28px 34px; background: var(--ink); }
.trust-item strong { display: block; color: var(--white); font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.section { padding: 106px 0; }
.section-soft { background: var(--white); }
.section-dark { color: var(--white); background: var(--ink); }
.section-dark .section-lede { color: #c1d2de; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  min-height: 320px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(7,35,55,.06);
}
.card .number { display: inline-grid; width: 48px; height: 48px; margin-bottom: 50px; place-items: center; color: var(--ink); background: #dff5ff; border-radius: 50%; font-weight: 850; }
.card p { color: var(--body); }

.method-panel {
  position: relative;
  overflow: hidden;
  padding: 58px;
  border: 1px solid rgba(114,201,255,.25);
  border-radius: 38px;
  background: linear-gradient(145deg, #0d3151, #071f33);
}
.method-panel::after { content: "369"; position: absolute; right: -16px; bottom: -94px; color: rgba(255,255,255,.045); font-size: 18rem; font-weight: 900; line-height: 1; }
.method-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.method-step { padding-top: 22px; border-top: 2px solid var(--blue); }
.method-step .big { display: block; color: var(--green); font-size: 3.6rem; font-weight: 850; line-height: 1; }
.method-step p { color: #c6d7e2; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.path { display: grid; gap: 15px; }
.path-row { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.path-row .dot { display: grid; width: 42px; height: 42px; place-items: center; color: var(--white); background: var(--ink-2); border-radius: 50%; font-weight: 850; }
.path-row h3 { margin-bottom: 6px; }
.path-row p { margin: 0; color: var(--body); }

.cta-band { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(120deg, #0b2d4c, #0b4874); isolation: isolate; }
.cta-band::after {
  content:"";
  position:absolute;
  z-index: -1;
  left:-8%;
  right:-8%;
  top:64%;
  height:2px;
  background:var(--green);
  box-shadow:0 0 18px rgba(127,227,90,.42);
  opacity:.42;
  transform:rotate(-4.5deg);
  transform-origin:center;
}
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 82px 0 96px; }
.cta-copy { display: grid; gap: 22px; }
.cta-inner h2 { max-width: 760px; margin: 0; }
.brand-signature-compact { gap: 10px; width: max-content; opacity: .88; }
.brand-signature-compact img { width: 78px; }
.brand-signature-compact .brand-name { gap: 2px; padding-left: 10px; }
.brand-signature-compact .brand-name span { font-size: .48rem; }
.brand-signature-compact .brand-name strong { font-size: .92rem; }

.page-hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(135deg, #061827, #0d3d64); }
.page-hero .shell { position: relative; isolation: isolate; padding: 90px 0 100px; }
.page-hero .shell > *:not(.line) { position: relative; z-index: 2; }
.page-hero h1 { max-width: 880px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero p { max-width: 760px; color: #d4e3ed; font-size: 1.22rem; }
.page-hero .line { position: absolute; z-index: 0; left: 34%; right: -16%; top: 69%; width: auto; height: 2px; margin: 0; background: var(--green); box-shadow: 0 0 18px rgba(127,227,90,.38); opacity: .36; transform: rotate(-4deg); }

.service-stack { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center; padding: 30px 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.service-row .label { color: var(--blue-2); font-weight: 850; }
.service-row p { margin: 0; color: var(--body); }
.service-row .arrow { color: var(--green); font-size: 1.7rem; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: start; }
.contact-aside { position: sticky; top: 120px; }
.contact-aside ul { padding: 0; list-style: none; }
.contact-aside li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.prototype-note { padding: 16px 18px; color: #654800; background: #fff5d6; border: 1px solid #ecd486; border-radius: 14px; font-size: .92rem; }
.form-card { padding: 40px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 730; }
input, select, textarea { width: 100%; padding: 14px 15px; color: var(--ink); background: #fbfdff; border: 1px solid #9eb6c7; border-radius: 12px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(20,168,247,.55); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; }
.check input { margin-top: 5px; }
.turnstile { padding: 16px; color: var(--body); background: #eef5f9; border: 1px dashed #8ca9bc; border-radius: 12px; font-size: .9rem; }
.safe-feedback { min-height: 28px; margin-top: 12px; color: var(--ink-3); font-weight: 700; }

/* WordPress / block editor compatibility. */
.admin-bar .site-header { top: 32px; }
.entry-content > * { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.entry-content > .alignwide { width: min(var(--max), calc(100% - 48px)); max-width: none; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content { padding: 82px 0 106px; }
.entry-content h2 { margin-top: 1.35em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content p, .entry-content li { color: var(--body); }
.entry-content .wp-block-button__link { color: var(--ink); background: var(--green); border-radius: 999px; font-weight: 780; }
.wpcf7 { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.wpcf7-form { padding: 40px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); box-shadow: var(--shadow); }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-submit { width: auto; color: var(--ink); background: var(--green); border: 0; border-radius: 999px; font-weight: 780; cursor: pointer; }
.wpcf7-response-output { border-radius: 12px; }
.site-main { min-height: 60vh; }

/*
 * V026.3 — isolated mobile remediation.
 *
 * The production Contact page already supplies an outer `.formcard`. V016.2
 * restyled the nested CF7 form as a second padded card. Combined with the
 * intrinsic width of CF7 controls, that forced the mobile grid track wider
 * than its container. These rules remove only that duplicate inner card and
 * allow the existing grid children and controls to shrink normally.
 */
.mg369 .grid2 > *,
.mg369 .formcard,
.mg369 .formcard > .wpcf7,
.mg369 .formcard > .wpcf7 > .wpcf7-form,
.mg369 .formcard .wpcf7-form-control-wrap,
.mg369 .formcard label,
.mg369 .formcard input,
.mg369 .formcard select,
.mg369 .formcard textarea {
  min-width: 0;
  max-width: 100%;
}

.mg369 .formcard > .wpcf7 {
  width: 100%;
  margin-inline: 0;
}

.mg369 .formcard > .wpcf7 > .wpcf7-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mg369 .formcard .wpcf7-turnstile,
.mg369 .formcard .wpcf7-turnstile > div {
  max-width: 100%;
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.browser-frame { overflow: hidden; border: 1px solid #b9c7d0; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; color: #708392; background: #e9eef2; font-size: .82rem; }
.browser-bar i { width: 9px; height: 9px; background: #aab8c2; border-radius: 50%; }
.before-screen .mini-nav { display: flex; justify-content: space-between; padding: 20px; font-size: .72rem; }
.before-screen .mini-hero { min-height: 410px; padding: 42px 28px; color: white; background: #142536; }
.before-screen .mini-hero span { color: #c8aa70; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.before-screen .mini-hero h3 { max-width: 370px; margin: 17px 0; font-size: 2.8rem; font-weight: 500; }
.before-screen .mini-hero p { max-width: 430px; }
.before-screen .mini-button { display: inline-block; margin-top: 15px; padding: 10px 16px; color: #142536; background: #c8aa70; border-radius: 3px; font-weight: 800; }
.after-screen { color: white; background: linear-gradient(135deg, #061827, #0d3d64); }
.after-screen .mini-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #061b2b; }
.after-screen .mini-nav img { width: 150px; }
.after-screen .mini-hero { position: relative; min-height: 410px; padding: 42px 28px; }
.after-screen .mini-hero h3 { max-width: 440px; margin: 12px 0; font-size: 2.8rem; }
.after-screen .mini-hero p { max-width: 430px; color: #d5e4ee; }
.after-screen .mini-button { display: inline-block; margin-top: 15px; padding: 10px 16px; color: #061b2b; background: var(--green); border-radius: 999px; font-weight: 800; }
.comparison-label { padding: 16px 20px; font-weight: 800; }

.status-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: var(--white); }
.status-table th, .status-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table th { color: var(--white); background: var(--ink-2); }
.pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 850; letter-spacing: .05em; }
.pill-ready { color: #194f0b; background: #dbf8d0; }
.pill-blocked { color: #7a4312; background: #fff0d2; }

.site-footer { color: #c5d4de; background: #041521; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 62px; padding: 70px 0 48px; }
.footer-brand .brand-signature { width: max-content; margin-bottom: 22px; }
.footer-brand .brand-signature img { width: 146px; }
.footer-brand .brand-name strong { font-size: 1.28rem; }
.footer-grid h2 { color: #77cbff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid a { display: block; margin: 7px 0; color: #d9e5ec; text-decoration: none; }
.footer-grid a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0 30px; border-top: 1px solid rgba(255,255,255,.11); font-size: .85rem; }

@media (max-width: 900px) {
  .header-inner { min-height: 76px; }
  .brand-signature { gap: 10px; }
  .brand-signature img { width: 108px; }
  .brand-name { gap: 2px; padding-left: 10px; }
  .brand-name span { font-size: .48rem; }
  .brand-name strong { font-size: 1rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 24px; align-items: stretch; flex-direction: column; gap: 16px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav-list { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-grid, .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 52px; padding: 76px 0 90px; }
  .signal-card { min-height: 360px; }
  .cards, .method-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .section-head { gap: 18px; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row .arrow { display: none; }
  .contact-aside { position: static; }
  .before-after { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, var(--max)); }
  .hero { min-height: 0; }
  .hero-grid { padding-top: 62px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .lede { font-size: 1.05rem; }
  .signal-card { min-height: 330px; padding: 28px; }
  .growth-line { inset: auto -22px 18px 12px; height: 136px; opacity: .29; }
  .trust-item, .card, .method-panel, .form-card { padding: 26px; }
  .section { padding: 76px 0; }
  .method-panel::after { font-size: 10rem; bottom: -45px; }
  .cta-inner { align-items: flex-start; flex-direction: column; padding: 64px 0 78px; }
  .cta-band::after { left: -24%; right: -30%; top: 72%; opacity: .32; transform: rotate(-8deg); }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .page-hero .shell { padding: 64px 0 72px; }
  .page-hero .line { left: 16%; right: -40%; top: 72%; opacity: .3; transform: rotate(-7deg); }
  .before-screen .mini-hero h3, .after-screen .mini-hero h3 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .entry-content > .mg369 { width: 100%; }
  .mg369 section { padding-inline: 16px; }
  .mg369 .formcard { padding: 20px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 12px; }
  .brand-signature img { width: 94px; }
  .brand-name strong { font-size: .9rem; }
  .brand-name span { font-size: .43rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
