/* ============================================================
   INFOSOLUTION — Design System
   Thème : Sobre & Professionnel (vert agriculture / blanc)
   ============================================================ */

:root {
  --green-900: #1B4332;
  --green-800: #2D6A4F;
  --green-700: #40916C;
  --green-600: #52B788;
  --green-400: #95D5B2;
  --green-200: #D8F3DC;
  --green-100: #EEF8F1;

  --accent:    #F77F00;
  --accent-l:  #FFF0E0;

  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-600:  #4B5563;
  --gray-400:  #9CA3AF;
  --gray-200:  #E5E7EB;
  --gray-100:  #F9FAFB;
  --white:     #FFFFFF;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);

  --font:       'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --transition: 200ms ease;
  --container:  1200px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary   { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline   { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-100); }
.btn-white     { background: var(--white); color: var(--green-800); border-color: var(--white); }
.btn-white:hover { background: var(--green-100); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-sm  { padding: 7px 14px; font-size: .8125rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: #d4690a; }

/* ── Section Header ──────────────────────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; color: var(--gray-900); margin-bottom: 12px; }
.section-header p  { color: var(--gray-600); font-size: 1.0625rem; }
.section-badge {
  display: inline-block; background: var(--green-200); color: var(--green-800);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 14px;
}

/* ── Bandeau événement ───────────────────────────────────── */
.bandeau-evt {
  background: var(--green-900); color: var(--white);
  padding: 10px 0; font-size: .875rem; text-align: center;
}
.bandeau-evt .container {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.evt-badge {
  background: var(--accent); color: var(--white); border-radius: 50px;
  padding: 2px 10px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.sep { opacity: .4; }
.evt-promo-link {
  background: rgba(255,255,255,.15); border-radius: var(--radius-sm);
  padding: 4px 12px; font-weight: 600; font-size: .8125rem;
  transition: background var(--transition);
}
.evt-promo-link:hover { background: rgba(255,255,255,.25); }

/* ── Header / Nav ────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header .container {
  display: flex; align-items: center; gap: 32px; height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px; background: var(--green-800); color: var(--white);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem; letter-spacing: -.02em;
}
.logo-text { font-weight: 700; font-size: 1.125rem; color: var(--green-900); }
.nav-main {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-main a {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
  color: var(--gray-700); transition: all var(--transition);
}
.nav-main a:hover   { background: var(--green-100); color: var(--green-800); }
.nav-main .nav-promo { color: var(--accent); background: var(--accent-l); }
.nav-main .nav-promo:hover { background: #fde7cc; }
.header-ctas { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  color: var(--white); padding: 80px 0 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.hero-text { flex: 1; max-width: 600px; }
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  padding: 5px 16px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--green-400); }
.hero-desc { font-size: 1.0625rem; opacity: .88; line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 700; }
.stat span   { font-size: .8125rem; opacity: .75; }

/* ── QR Grid hero ────────────────────────────────────────── */
.hero-qr {
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl);
  padding: 24px; flex-shrink: 0;
}
.qr-card-header {
  font-weight: 700; font-size: .875rem; text-align: center;
  margin-bottom: 16px; opacity: .9;
}
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); border-radius: var(--radius);
  padding: 12px; transition: transform var(--transition); cursor: pointer;
}
.qr-item:hover { transform: scale(1.04); }
.qr-placeholder canvas { display: block; border-radius: 4px; }
.qr-item span { font-size: .7rem; color: var(--gray-700); font-weight: 600; text-align: center; line-height: 1.3; }

/* ── Section Promos ──────────────────────────────────────── */
.section-promo {
  background: linear-gradient(135deg, #FFF8F0, #FFF3E4);
  border-top: 3px solid var(--accent); padding: 72px 0;
}
.section-promo .section-badge { background: #FDECD5; color: var(--accent); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.promo-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); position: relative;
  border: 1px solid #FDDDB7;
  display: flex; flex-direction: column; gap: 12px;
}
.promo-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: var(--white);
  font-size: .875rem; font-weight: 800;
  padding: 4px 14px; border-radius: 50px;
}
.promo-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.promo-card p  { color: var(--gray-600); font-size: .9375rem; }
.promo-valeur  { background: var(--accent-l); color: var(--accent); font-weight: 700; font-size: .875rem; padding: 8px 14px; border-radius: var(--radius-sm); }
.promo-conditions { font-size: .8125rem; color: var(--gray-400); }
.promo-limite  { font-size: .8125rem; color: var(--accent); font-weight: 600; }
.promo-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Section Domaines ────────────────────────────────────── */
.section-solutions { padding: 96px 0; background: var(--white); }
.domaines-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.domaine-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
}
.domaine-card:hover {
  border-color: var(--green-600); transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.domaine-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.domaine-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.domaine-card p  { font-size: .875rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.domaine-link  { font-size: .8125rem; font-weight: 600; color: var(--green-700); margin-top: 4px; }
.solutions-cta { text-align: center; margin-top: 56px; padding: 40px; background: var(--green-100); border-radius: var(--radius-xl); }
.solutions-cta p { font-size: 1.0625rem; color: var(--gray-700); margin-bottom: 20px; }

/* ── Section Cas d'usage ─────────────────────────────────── */
.section-cas { padding: 96px 0; background: var(--gray-100); }
.cas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cas-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.cas-icon   { font-size: 2rem; }
.cas-org    { font-size: .8125rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .06em; }
.cas-card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.cas-card p  { color: var(--gray-600); font-size: .9375rem; flex: 1; }
.cas-result  { background: var(--green-100); color: var(--green-800); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; }
.cas-link    { font-weight: 600; font-size: .875rem; color: var(--green-700); }

/* ── Section CTA Final ───────────────────────────────────── */
.section-cta-final { padding: 96px 0; }
.cta-final-box {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  border-radius: var(--radius-xl); padding: 64px; text-align: center; color: var(--white);
}
.cta-final-box h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 16px; }
.cta-final-box p  { opacity: .88; max-width: 560px; margin: 0 auto 36px; font-size: 1.0625rem; line-height: 1.7; }
.cta-final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-final-evt  { font-size: .9375rem; opacity: .75; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: var(--white); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-mark { background: var(--green-700); }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: .9375rem; opacity: .7; line-height: 1.7; }
.footer-contact { margin-top: 16px; font-size: .875rem; opacity: .65; line-height: 2; }
.footer-links h4 { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; opacity: .5; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a  { font-size: .9375rem; opacity: .75; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; opacity: .5;
}

/* ── Badges CRM ──────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.badge-danger    { background: #FEE2E2; color: #991B1B; }
.badge-warning   { background: #FEF3C7; color: #92400E; }
.badge-info      { background: #DBEAFE; color: #1E40AF; }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }
.badge-success   { background: var(--green-200); color: var(--green-800); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; }
  .hero-qr { width: 100%; }
  .qr-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-main    { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
  .nav-main.open { display: flex; }
  .header-ctas { display: none; }
  .burger      { display: flex; }
  .hero-stats  { gap: 20px; }
  .qr-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-final-box { padding: 40px 24px; }
}

/* ── Hero géométrique ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-geo {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  pointer-events: none; z-index: 0;
}
.geo-svg { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; }

/* ── Cas d'usage — photo ──────────────────────────────────── */
.cas-photo {
  height: 180px; overflow: hidden; border-radius: var(--radius);
  margin-bottom: 4px;
}
.cas-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cas-card:hover .cas-photo img { transform: scale(1.04); }
.cas-dl {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 600; color: var(--green-700);
  margin-top: 8px; padding: 5px 12px;
  background: var(--green-100); border-radius: 50px;
  transition: background var(--transition);
}
.cas-dl:hover { background: var(--green-200); }

/* ── Wheel domaines ──────────────────────────────────────────*/
.section-domaines-visual { padding: 80px 0; background: var(--gray-100); }
.domaines-wheel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.wheel-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 28px 16px;
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl); cursor: pointer;
  transition: all .2s ease; text-align: center;
  text-decoration: none; color: inherit;
  animation: fadeInUp .4s ease both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.wheel-item:hover {
  border-color: var(--color);
  background: color-mix(in srgb, var(--color) 8%, white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color) 20%, transparent);
}
.wheel-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--color) 12%, white);
  color: var(--color);
  transition: background .2s;
}
.wheel-item:hover .wheel-icon {
  background: color-mix(in srgb, var(--color) 20%, white);
}
.wheel-nom {
  font-size: .8125rem; font-weight: 600; color: var(--gray-700);
  line-height: 1.3; max-width: 140px;
}

/* ── Logo footer ajustement ──────────────────────────────── */
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 36px; filter: brightness(0) invert(1); }

/* ── Modal position helper ───────────────────────────────── */
#modal-d4dev { position: fixed !important; }

/* ── Bouton D4Dev/D4Ag (chip dans nav) ───────────────────── */
.btn-d4dev-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 50px;
  border: 1.5px solid var(--green-600);
  background: var(--green-100); color: var(--green-800);
  font-size: .75rem; font-weight: 700; cursor: pointer;
  font-family: var(--font); letter-spacing: .02em;
  transition: all var(--transition); white-space: nowrap;
}
.btn-d4dev-chip:hover {
  background: var(--green-200); border-color: var(--green-700);
}
/* Dans le footer du nav aussi */
.footer .btn-d4dev-chip { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
