/* ============================================================
   VALOCEP — styles.css
   ============================================================ */

/* ---- Variables ------------------------------------------- */
:root {
  --cream:        #F4ECD8;
  --cream-alt:    #FAF6EE;
  --white:        #FFFFFF;
  --dark:         #1A1C0F;
  --green-dark:   #2A3E1A;
  --green-mid:    #3D5C26;
  --orange:       #C8781A;
  --orange-hover: #A86215;
  --text:         #2A2A2A;
  --text-light:   #5A5A4A;
  --border:       #DDD0B5;
  --radius:       4px;
  --shadow:       0 2px 16px rgba(0,0,0,.08);
  --transition:   .22s ease;
  --header-h:     72px;
}

/* ---- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Accessibilité --------------------------------------- */
.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;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---- Typographie ----------------------------------------- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }

/* ---- Layout ---------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section        { padding: 5rem 0; background: var(--cream); }
.section-alt    { background: var(--cream-alt); }
.section-white  { background: var(--white); }
.section-contact{ background: var(--cream); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: .7rem auto 0;
  border-radius: 2px;
}
.section-title.text-left { text-align: left; }
.section-title.text-left::after { margin-left: 0; }

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-size: .95rem;
}

/* ---- Boutons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .9rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1.2;
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover, .btn-orange:focus-visible {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,120,26,.35);
}
.btn-orange strong { font-size: 1.08em; }
.btn-full { width: 100%; display: flex; justify-content: center; }


/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.4); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  flex-shrink: 0;
}
.logo-icon { width: 26px; height: 26px; flex-shrink: 0; opacity: .9; }
.logo-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: block;
  line-height: 1.1;
}
.logo-tagline {
  display: block;
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .55;
  line-height: 1.3;
  margin-top: 1px;
}

/* Navigation */
nav { display: flex; align-items: center; gap: 1rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active {
  color: var(--white);
}
.nav-link.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: .45rem 1.1rem;
  font-weight: 600;
}
.nav-link.nav-cta:hover { background: var(--orange-hover); }

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  width: 38px;
  height: 38px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: 4rem;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--dark);
}
.hero-overlay {
  display: none;
}
.hero .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 clamp(1.5rem, 8vw, 5rem);
  display: flex;
  justify-content: flex-start;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: var(--white);
  padding: 3rem 0;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.9);
}
.hero-title em {
  font-style: italic;
  color: #F0C080;
}
.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 10px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.9);
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,.15);
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }


/* ============================================================
   SECTION 1 — ICÔNES
   ============================================================ */
.icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
}
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.icon-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Encart réglementaire */
.reglementaire-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--cream-alt);
  border-left: 4px solid var(--green-dark);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 3rem;
}
.regl-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--green-dark);
  margin-top: .1rem;
}
.reglementaire-box p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
}

/* Tagline biomasse */
.biomasse-tagline {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.biomasse-tagline p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}


/* ============================================================
   SECTION 2 — SPLIT LAYOUT
   ============================================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-media video,
.split-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* Étapes */
.step-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow var(--transition);
}
.step-card:hover { box-shadow: var(--shadow); }
.step-num {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-body h3 {
  font-size: .95rem;
  margin-bottom: .5rem;
  color: var(--dark);
}
.step-body ul {
  padding-left: 1.1rem;
  list-style: disc;
}
.step-body li {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: .2rem;
}


/* ============================================================
   SECTION 3 — TABLEAU COMPARATIF
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 480px;
}
.comparison-table thead th {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.comparison-table thead th:first-child {
  text-align: left;
  background: var(--dark);
  border-radius: var(--radius) 0 0 0;
}
.comparison-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }

.comparison-table td {
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}
.comparison-table tbody tr:nth-child(odd) td  { background: var(--white); }
.comparison-table tbody tr:nth-child(even) td { background: var(--cream-alt); }
.comparison-table .col-valocep td,
td.col-valocep {
  background: rgba(42,62,26,.07) !important;
}
td.col-valocep strong { color: var(--green-dark); }


/* ============================================================
   SECTION 4 — PROCESSUS
   ============================================================ */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}
.process-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.1rem;
}
.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.process-step p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
}
.process-connector {
  flex: 0 0 60px;
  height: 2px;
  border-top: 2px dashed var(--border);
  margin-top: 29px;
  flex-shrink: 0;
}


/* ============================================================
   SECTION 5 — CONDITIONS
   ============================================================ */
.conditions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.conditions-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.conditions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.conditions-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  line-height: 1.5;
}
.check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--green-mid);
  margin-top: 1px;
}
.conditions-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--text-light);
}
.conditions-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-light);
}
.conditions-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}


/* ============================================================
   SECTION 6 — CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

/* Formulaire */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }

.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(42,62,26,.1);
}
.form-group textarea { resize: vertical; }

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.form-fieldset legend {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0 .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: .6rem;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}
.radio-group input[type="radio"] { accent-color: var(--green-dark); cursor: pointer; }

/* Case RGPD */
.rgpd-check { margin-top: .25rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: .15rem;
  accent-color: var(--green-dark);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-label a:hover { color: var(--orange); }
.rgpd-required { color: var(--orange); font-weight: 700; }

/* Bloc info contact */
.contact-info {
  background: var(--green-dark);
  color: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item svg { width: 20px; height: 20px; min-width: 20px; margin-top: 2px; flex-shrink: 0; opacity: .85; }
.contact-item a,
.contact-item span {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--white);
}
.contact-item a:hover { text-decoration: underline; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.logo-footer {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.logo-footer .logo-name { font-size: 1rem; }
.logo-footer .logo-icon { width: 20px; height: 20px; }
.footer-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}
.footer-right { text-align: right; }
.footer-legal {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
  margin-top: .5rem;
}

/* Liens légaux footer */
.footer-legal-links {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.footer-legal-links a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--white); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablette (≤ 900px) ---- */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split-media { order: -1; }
  .split-media video, .split-media img { height: 320px; }

  .conditions-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .conditions-image img { height: 280px; }

  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info { order: -1; }

  .icons-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-right { text-align: left; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Nav mobile */
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: .5rem 1.5rem 1.25rem;
    gap: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-list.open { display: flex; }
  .nav-link {
    padding: .75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .95rem;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link.nav-cta {
    background: none;
    padding: .75rem 0;
    margin: 0;
    border-bottom: none;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: .25rem;
    color: var(--orange);
  }
  .burger { display: flex; }

  .hero { min-height: 80vh; align-items: flex-end; padding-bottom: 2rem; }
  .hero .container { justify-content: center; }
  .hero-content { padding: 2rem 0; max-width: 100%; }
  .hero-badge { font-size: .76rem; }

  .section-title { font-size: 1.4rem; }
  .biomasse-tagline p { font-size: 1.8rem; }

  .process-steps { flex-direction: column; align-items: center; gap: 1.5rem; }
  .process-step { width: 100%; max-width: 280px; }
  .process-connector { display: none; }
}

/* ---- Petit mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .comparison-table thead th:last-child,
  .comparison-table td:last-child { display: none; }
  .radio-group { gap: .4rem 1rem; }
}
