﻿:root {
  --green-950: #05291E;
  --green-900: #0B4934;
  --green-800: #0f5138;
  --green-700: #0B714C;
  --green-600: #1b7754;
  --green-200: #BBEAAC;
  --green-100: #DCF4D3;
  --green-50: #EFFAF3;
  --orange-300: #F49819;
  --orange-200: #FAB425;
  --orange-100: #FCE18B;
  --orange-50: #FEF0C7; 
  --surface: #f9f6ef;
  --white: #ffffff;
  --black: #000000;
  --text-main: #05291E;
  --text-muted: #0B4934;
  --border-soft: rgba(13, 81, 56, 0.12);
  --shadow-soft: 0 20px 45px rgba(13, 81, 56, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Maven Pro', sans-serif;
  color: var(--text-main);
  background-color: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.5rem, 5vw, 3.5rem);
  background-color: var(--white);
  box-shadow: 0 6px 24px rgba(13, 81, 56, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: clamp(120px, 25vw, 180px);
  height: auto;
  max-height: clamp(50px, 10vw, 80px);
  object-fit: contain;
}

.brand span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(19, 98, 70, 0.3);
  border-radius: var(--radius-sm);
  color: var(--green-700);
  padding: 0.4rem 0.75rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  font-weight: 500;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--green-700);
  border-color: rgba(19, 98, 70, 0.4);
}

.site-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-section {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
  overflow: visible;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green-800);
}

.section-lead {
  margin-top: 0.5rem;
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.accent-left::before,
.accent-right::after {
  content: '';
  position: absolute;
  background: var(--orange-300);
  opacity: 0.95;
  border-radius: 35% 65% 55% 45%;
  z-index: -1;
  filter: drop-shadow(0 25px 50px rgba(244, 210, 114, 0.25));
}

.accent-left::before {
  width: clamp(220px, 36vw, 420px);
  height: clamp(220px, 36vw, 420px);
  top: clamp(-180px, -20vw, -120px);
  left: clamp(-170px, -18vw, -90px);
}

.accent-right::after {
  width: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  bottom: clamp(-140px, -14vw, -80px);
  right: clamp(-150px, -16vw, -60px);
}

.hero-section {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--green-900);
}

.hero-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button__icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.button--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(19, 98, 70, 0.25);
}

.button--primary:hover,
.button--primary:focus {
  background: var(--green-800);
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--white);
  color: var(--green-700);
  border-color: rgba(19, 98, 70, 0.35);
}

.button--secondary:hover,
.button--secondary:focus {
  border-color: var(--green-700);
  box-shadow: 0 10px 28px rgba(13, 81, 56, 0.18);
}

.button--ghost {
  background: var(--green-700);
  color: var(--green-100);
  border-color: var(--green-100);
}

.button--ghost:hover,
.button--ghost:focus {
  background: var(--orange-300);
  color: var(--orange-50);
  border-color: var(--orange-50);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.media-card {
  background: rgba(19, 98, 70, 0.06);
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid rgba(19, 98, 70, 0.12);
  box-shadow: var(--shadow-soft);
}

.media-card img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.partner-section {
  padding-top: 0;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 5vw, 3rem);
  flex-wrap: wrap;
}

.partner-logo {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.75rem;
  box-shadow: 0 14px 34px rgba(13, 81, 56, 0.12);
  border: 1px solid rgba(19, 98, 70, 0.1);
}

.partner-logo img {
  max-height: 54px;
  width: auto;
}

.split-form {
  width: 100%;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-card--neutral {
  background: rgba(19, 98, 70, 0.03);
}

.card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-800);
}

.upload-dropzone {
  border: 2px dashed rgba(19, 98, 70, 0.35);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(19, 98, 70, 0.05);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  color: var(--green-700);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--green-700);
  background: rgba(19, 98, 70, 0.08);
}

.upload-dropzone.has-file {
  border-style: solid;
}

.upload-icon {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  flex-shrink: 0;
  color: var(--green-700);
}

.upload-text {
  font-size: 1.05rem;
}

.upload-text strong {
  color: var(--green-800);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 600;
  color: var(--green-800);
}

.text-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(19, 98, 70, 0.25);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(19, 98, 70, 0.16);
  outline: none;
}

.preview-frame {
  border: 1.5px dashed rgba(19, 98, 70, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 98, 70, 0.04);
  overflow: hidden;
}

.preview-frame--result {
  min-height: 360px;
}

.preview-frame img {
  max-height: 100%;
  width: auto;
  border-radius: var(--radius-lg);
}

.preview-placeholder {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.checkbox-field input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
}

.processing-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}

.file-list li {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(19, 98, 70, 0.15);
  font-weight: 500;
  color: var(--green-800);
  word-break: break-word;
}

.file-placeholder {
  color: var(--text-muted);
  border-style: dashed;
  text-align: center;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.result-card {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 28px 48px rgba(12, 63, 47, 0.3);
}

.result-card__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.result-card__value {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
}

.result-card__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.batch-result-card {
  background: var(--green-800);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 28px 48px rgba(12, 63, 47, 0.25);
  color: var(--white);
}

.batch-table-wrapper {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  color: inherit;
}

.results-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.results-table td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1rem;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.batch-actions {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.batch-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--green-700);
}

.text-link__icon {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  flex-shrink: 0;
}

.text-link:hover,
.text-link:focus {
  color: var(--green-800);
}

.hero-section--tutoriel {
  padding-bottom: clamp(2rem, 6vw, 3rem);
}

.hero--narrow {
  grid-template-columns: minmax(0, 1fr);
}

.guide-section {
  padding-top: 0;
}

.guide-intro {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-size: 1.05rem;
  color: var(--text-muted);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.guide-step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.guide-step__text h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.7rem;
  color: var(--green-800);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.guide-step__text h2 span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-700);
}

.guide-step__text p {
  margin: 0;
  color: var(--text-muted);
}

.guide-tips {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guide-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(13, 81, 56, 0.06);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--green-800);
  box-shadow: inset 0 0 0 1px rgba(13, 81, 56, 0.1);
}

.guide-tip__icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
}

.guide-step__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.guide-step--double {
  align-items: start;
}

.guide-step__media--double {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.cta-section {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  align-items: center;
  box-shadow: 0 24px 48px rgba(12, 63, 47, 0.28);
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-content h2 {
  margin: 0;
  font-size: 1.8rem;
}

.cta-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta-media img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: contain;
  background: var(--white);
  padding: 1rem;
}

.site-footer {
  margin-top: auto;
  background: var(--green-900);
  padding: 2.5rem clamp(1.5rem, 6vw, 4rem);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.footer-logo {
  background: var(--white);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.footer-logo img {
  height: 46px;
  width: auto;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 63, 47, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--white);
  z-index: 200;
  text-align: center;
}

.loading-overlay.is-visible {
  display: flex;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .hero,
  .info-grid,
  .split-panel,
  .guide-step,
  .result-layout,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .result-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-card {
    text-align: center;
  }

  .cta-content {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }

  .page-section {
    padding: 2.5rem 1.25rem;
  }

  .form-card {
    padding: 1.75rem;
  }

  .preview-frame {
    min-height: 240px;
  }

  .result-card {
    align-items: flex-start;
  }

  .batch-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .batch-actions__secondary {
    width: 100%;
    justify-content: space-between;
  }

  .partner-logo {
    width: 100%;
    justify-content: center;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-media img {
    padding: 0.5rem;
  }
}
