/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:        #F7F4EF;
  --text:      #1C1C1A;
  --muted:     #6B6860;
  --accent:    #2E5C3E;
  --accent-lt: #EBF2ED;
  --border:    #DDD9D0;
  --white:     #FFFFFF;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body:  system-ui, -apple-system, 'Segoe UI', sans-serif;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --max-w: 1024px;
  --radius: 4px;
}

/* ─── Reset minimal ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ─── Skip link accessibilité ───────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--space-sm);
  background: var(--accent); color: var(--white);
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: var(--space-sm); }

/* ─── Layout ────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }

/* ─── Logo ──────────────────────────────────────────── */
.logo {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem;
  letter-spacing: -0.01em; text-decoration: none; color: var(--text);
}
.logo .bracket { color: var(--accent); }

/* ─── Header / Nav (sticky) ─────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav-links { display: flex; gap: var(--space-md); list-style: none; font-size: 0.875rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-links .nav-cta:hover {
  background: #234830;
  color: var(--white);
}
.back-link {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

/* ─── Sections ──────────────────────────────────────── */
section { padding: var(--space-xl) 0; }
section + section { border-top: 1px solid var(--border); }
section#contact { border-top: 1px solid var(--border); }

/* ─── Hero ──────────────────────────────────────────── */
.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: var(--space-sm);
}
.hero h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15;
  letter-spacing: -0.02em; max-width: 760px; margin-bottom: var(--space-md);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; color: var(--muted); max-width: 640px;
  margin-bottom: var(--space-lg); line-height: 1.65;
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }

/* ─── Boutons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #234830; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent-lt); color: var(--accent); border-color: var(--accent); }

/* ─── Sections typography ───────────────────────────── */
.section-label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 0.4rem;
}
.section-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: var(--space-md);
}
.section-text { color: var(--muted); max-width: 720px; font-size: 1rem; line-height: 1.75; }

/* ─── Badge ─────────────────────────────────────────── */
.badge {
  display: inline-block; background: var(--accent-lt); color: var(--accent);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.65rem;
  border-radius: 2rem; margin-bottom: var(--space-md);
}

/* ─── Team ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
  }
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-md);
}
.team-avatar-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-lt); display: flex;
  align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.team-avatar-placeholder svg { width: 28px; height: 28px; color: var(--accent); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; margin-bottom: 0.75rem;
}
.team-name { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; margin-bottom: 0.15rem; }
.team-role { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; line-height: 1.4; }
.team-linkedin {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--accent); text-decoration: none;
  font-weight: 500; transition: opacity 0.15s;
}
.team-linkedin:hover { opacity: 0.7; }

/* ─── Actions ───────────────────────────────────────── */
.actions-grid { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.action-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-md);
  display: grid; grid-template-columns: 3rem 1fr;
  gap: var(--space-sm); align-items: start;
}
.action-icon {
  width: 3rem; height: 3rem; background: var(--accent-lt);
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.action-content h3 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.05rem; margin-bottom: 0.35rem;
}
.action-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ─── Methodo push ──────────────────────────────────── */
.methodo-push {
  background: var(--accent-lt);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}
.methodo-push .section-label {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;

}
.methodo-push .section-title {
  margin-bottom: var(--space-sm);
}
.methodo-push p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.methodo-push-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.methodo-push-cta:hover { background: #234830; }
.methodo-push-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Page méthodologie ─────────────────────────────── */
.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.phases::before,
.phases::after {
  content: '→';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 300;
}
.phases::before { left: 31%; }
.phases::after { right: 31%; }
.phase { text-align: center; }
.phase-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  line-height: 48px;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.phase-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.phase-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.phase-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* Gradient autonomie */
.autonomy-bar { margin: 3rem 0; }
.autonomy-title {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
}
.gradient-container {
  height: 60px;
  background: linear-gradient(to right, 
    #2E5C3E 0%, 
    #2E5C3E 33%, 
    #7BA587 33%, 
    #7BA587 66%, 
    #B8D4BE 66%, 
    #B8D4BE 100%
  );
  border-radius: var(--radius);
}
.gradient-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.gradient-label {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.gradient-label .emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}
.gradient-label strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.mobile-only {
  display: none;
}

/* Légende */
.legend {
  background: var(--accent-lt);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 3rem;
}
.legend-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.legend-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.legend-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--accent);
  color: white;
}
.legend-text {
  font-size: 0.9rem;
  line-height: 1.4;
}
.legend-text strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

/* Détails méthodologie */
.schema, .details {
  background: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 3rem;
}
.details h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  text-align: center;
}
.detail-phase {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-phase:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.detail-phase h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.detail-phase .meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.detail-phase .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.detail-phase .meta-item strong {
  color: var(--accent);
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.detail-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.detail-column p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ─── Contact ───────────────────────────────────────── */
.contact-card {
  background: var(--accent); border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md); margin-top: var(--space-md); color: var(--white);
}
.contact-card .section-label { color: rgba(255,255,255,0.6); }
.contact-card .section-title { color: var(--white); margin-bottom: var(--space-sm); }
.contact-card > p {
  color: rgba(255,255,255,0.75); max-width: 640px;
  margin-bottom: var(--space-md); line-height: 1.65;
}
.contact-links { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); text-decoration: none; padding: 0.65rem 1.2rem;
  border-radius: var(--radius); font-size: 0.9rem; transition: background 0.15s;
}
.contact-link:hover { background: rgba(255,255,255,0.22); }
.contact-link:focus-visible { outline: 2px solid var(--white); }

/* ─── Footer ────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: var(--space-md) 0; }
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: var(--space-sm); flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-baseline { font-size: 0.78rem; color: var(--muted); }
.footer-right { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.footer-right a {
  font-size: 0.78rem; color: var(--muted);
  text-decoration: none; transition: color 0.15s;
}
.footer-right a:hover { color: var(--text); }
.eco-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: var(--accent); font-weight: 600; letter-spacing: 0.04em;
}
.eco-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── Page titles (méthodologie, etc.) ──────────────── */
.page-header {
  max-width: var(--max-w);
  margin: 4rem auto 3rem;
  padding: 0 var(--space-md);
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}
.page-header .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ─── Page mentions légales ─────────────────────────── */
.content-page {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 var(--space-md);
}
.content-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.content-page h1 em {
  font-style: italic;
  color: var(--accent);
}
.content-page .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
.content-page h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.content-page p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.content-page a {
  color: var(--accent);
  text-decoration: underline;
}
.content-page a:hover {
  color: #234830;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .phases {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .phases::before, .phases::after { display: none; }
  .legend-items { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  :root { --space-xl: 4rem; }
  
  /* Header : ne garder que le bouton Nous contacter */
  .nav-links li:not(:last-child) { display: none; }
  .nav-links { gap: 0; }
  
  /* Action cards : emoji + titre sur même ligne */
  .action-card {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .action-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
  .action-card .action-icon {
    float: left;
    margin-right: 0.75rem;
  }
  .action-content h3 {
    padding-top: 0.3rem;
  }
  .action-content::after {
    content: "";
    display: table;
    clear: both;
  }
  
  .hero h1 { font-size: 2rem; }
  .contact-card { padding: var(--space-md); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .mobile-only { display: inline; }
  .detail-phase .meta { flex-direction: column; gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ─── Print ─────────────────────────────────────────── */
@media print {
  body { background: white; }
  .schema, .details { box-shadow: none; border: 1px solid var(--border); }
  header { position: static; }
}
