/* ===== AFDA — styles partagés ===== */

:root {
  --green-900: #123322;
  --green-700: #1f5c3a;
  --green-600: #2f7a4f;
  --green-500: #3f9863;
  --green-100: #e7f3ea;

  --gold-900: #3d2c05;
  --gold-700: #8a6412;
  --gold-600: #b3860f;
  --gold-500: #d1a52a;
  --gold-100: #faf1dd;

  --ink: #20241f;
  --ink-soft: #545c50;
  --paper: #fbfaf6;
  --paper-alt: #f2efe6;
  --white: #ffffff;
  --line: #e4e1d6;

  --accent: var(--green-600);
  --accent-dark: var(--green-700);
  --accent-tint: var(--green-100);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(18, 51, 34, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(18, 51, 34, 0.15);
  --container: 1160px;
}

body.theme-gie {
  --accent: var(--gold-600);
  --accent-dark: var(--gold-700);
  --accent-tint: var(--gold-100);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--green-900);
  margin: 0 0 0.6em;
}

body.theme-gie h1, body.theme-gie h2, body.theme-gie h3, body.theme-gie h4 {
  color: var(--gold-900);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--paper-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: inherit; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent-tint); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: #fff; opacity: 0.92; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--green-900); }
.brand-name span { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--paper-alt); }
.main-nav a.active { background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 2px; }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  padding: 64px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-100) 0%, var(--paper) 78%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
.hero-lede { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(251,250,246,0.94);
  backdrop-filter: blur(6px);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  max-width: 240px;
}
.hero-badge strong { display: block; color: var(--green-900); font-family: "Poppins", sans-serif; font-size: 1.4rem; }
.hero-badge small { color: var(--ink-soft); font-size: 0.8rem; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: baseline; gap: 8px; }
.trust-item strong { font-family: "Poppins", sans-serif; color: var(--green-900); font-size: 1rem; }
.trust-item span { color: var(--ink-soft); font-size: 0.9rem; }

/* ===== Split / two entities ===== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.split-card {
  position: relative;
  border-radius: 22px;
  padding: 44px 38px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}
.split-card::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.4s ease;
  z-index: 0;
}
.split-card:hover::before { transform: scale(1.08); }
.split-card.card-assoc::before { background-image: linear-gradient(180deg, rgba(18,51,34,0.15) 0%, rgba(15,38,25,0.92) 100%), url('../images/reunion-2.jpg'); }
.split-card.card-gie::before { background-image: linear-gradient(180deg, rgba(61,44,5,0.15) 0%, rgba(48,34,4,0.92) 100%), url('../images/produit-neteto-tubs.jpg'); }
.split-card > * { position: relative; z-index: 1; }
.split-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin-bottom: auto;
}
.split-card h3 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.split-card p { color: rgba(255,255,255,0.86); margin-bottom: 20px; }
.split-card .btn-light { align-self: flex-start; }

/* ===== Cards / grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.info-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.info-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { font-size: 0.93rem; margin: 0; }

.list-check { display: flex; flex-direction: column; gap: 14px; }
.list-check li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.list-check li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: 56px 0 64px;
  background: var(--accent-tint);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--accent-dark); font-weight: 600; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero p { max-width: 60ch; font-size: 1.02rem; }
.page-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* ===== Quote / vision block ===== */
.vision-block {
  background: var(--green-900);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
}
body.theme-gie .vision-block { background: var(--gold-900); }
.vision-block .mark { font-family: "Poppins", sans-serif; font-size: 3.4rem; color: var(--accent); line-height: 1; }
.vision-block h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.vision-block p { color: rgba(255,255,255,0.82); margin: 0; font-size: 1.05rem; }

/* ===== Two-column text/media ===== */
.split-text-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.media-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ===== Products (GIE) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-media { aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h4 { margin: 0; font-size: 1.12rem; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.product-body p { margin: 0; font-size: 0.92rem; }
.product-order {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ===== Steps (stratégies) ===== */
.step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.step-card { position: relative; padding-left: 6px; }
.step-num {
  font-family: "Poppins", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-tint);
  -webkit-text-stroke: 1.5px var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.step-card h4 { font-size: 1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.9rem; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--green-700), var(--green-900));
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
body.theme-gie .cta-band { background: linear-gradient(120deg, var(--gold-700), var(--gold-900)); }
.cta-band h3 { color: #fff; margin-bottom: 6px; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-card h4 { margin: 0 0 4px; font-size: 0.98rem; }
.contact-card p { margin: 0; font-size: 0.92rem; }
.contact-card a { color: var(--accent-dark); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.8); padding: 60px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: "Poppins", sans-serif; }
.site-footer h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-grid, .split-text-media { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vision-block { grid-template-columns: 1fr; text-align: left; padding: 38px 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 66px 16px auto 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 6px 0 0; }
  section { padding: 58px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band, .vision-block { padding: 30px 22px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
}
