/* ═══════════════════════════════════════════════════════════════
   EPTAGRAM — Feuille de style externe
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   RESET
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ─────────────────────────────────────────────────────────────
   VARIABLES
   ───────────────────────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --bg:          #F7F7F5;
  --bg-dark:     #0F1510;
  --text:        #111110;
  --text-muted:  #6B6A64;
  --green:       #3670f5;
  --green-light: #84aaff;
  --line:        #E0DDD6;
  --white:       #FFFFFF;

  /* Dérivées — ne pas modifier */
  --nav-bg:          rgba(247, 247, 245, 0.92); /* --bg à 92 % */
  --dark-text-btn:   var(--bg-dark);            /* texte sur bouton bleu */
  --dark-accent:     var(--green-light);        /* accents section sombre */
  --dark-border:     rgba(255,255,255,0.08);    /* séparateurs section sombre */
  --dark-text-muted: rgba(255,255,255,0.35);    /* texte discret section sombre */
  --dark-text-body:  rgba(255,255,255,0.65);    /* corps de texte section sombre */
  --dark-text-soft:  rgba(255,255,255,0.7);     /* éléments doux section sombre */
  --dark-text-logo:  rgba(255,255,255,0.4);     /* footer / logo discret */

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}


/* ─────────────────────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}


/* ─────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background-color: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  padding: 1rem 4rem;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  color: var(--green) !important;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}


/* ─────────────────────────────────────────────────────────────
   PAGE HERO  (pages internes : écoconception, mentions, article)
   ───────────────────────────────────────────────────────────── */
.page-hero {
  padding: 14rem 4rem 7rem;
  background-color: var(--bg);
  max-width: 80ch;
}

.page-hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.page-hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--text-muted);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-hero h1 em {
  font-style: italic;
  color: var(--green);
}


/* ─────────────────────────────────────────────────────────────
   BOUTONS
   ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--green);
  color: var(--dark-text-btn);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--green-light);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}


/* ─────────────────────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────────────────────── */
.cta-section {
  padding: 7rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg);
}

.cta-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.1;
  color: var(--text);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.cta-title em {
  font-style: italic;
  color: var(--green);
}

.cta-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 3rem;
}


/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
footer {
  background-color: var(--bg-dark);
  color: var(--dark-text-logo);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  padding: 5rem 4rem 4rem;
  border-bottom: 1px solid var(--dark-border);
}

.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark-text-soft);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li { line-height: 1em; }

.footer-col ul a {
  color: var(--dark-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--dark-text-soft); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
}

.footer-copy {
  color: var(--dark-text-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

a.footer-legal {
  color: var(--dark-text-muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}

a.footer-legal:hover { color: var(--dark-text-soft); }

.w3c-badge svg { opacity: 0.4; transition: opacity 0.2s; }
.w3c-badge:hover svg { opacity: 0.7; }


/* ─────────────────────────────────────────────────────────────
   SCROLLBAR
   ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); }


/* ═══════════════════════════════════════════════════════════════
   PAGE : Accueil  (index.html)
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5rem;
}

.hero-left {
  padding-bottom: 2rem;
  max-width: 60ch;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--text-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* ── Services ── */
.services {
  padding: 7rem 4rem;
  background-color: var(--white);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 400;
  font-family: var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-count {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg);
  padding: 3rem 2.5rem;
  transition: background 0.3s ease;
}

.service-card:hover { background-color: var(--white); }

.service-number {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1.5rem;
  display: block;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.service-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.service-link:hover { border-color: var(--green); }

/* ── Écoconception (section accueil) ── */
.ecoconception {
  padding: 7rem 4rem;
  background-color: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.ecoconception-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.ecoconception-left h2 em {
  font-style: italic;
  color: var(--green);
}

.ecoconception-left p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.ecoconception-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--white);
}

.benefit-item::before {
  content: '✓';
  font-size: 0.75rem;
  color: var(--green);
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

/* ── Manifesto ── */
.manifesto {
  background-color: var(--bg-dark);
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.manifesto-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 2.5rem;
}

.manifesto-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--white);
}

.manifesto-title em {
  font-style: italic;
  color: var(--dark-accent);
}

.manifesto-principles {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.manifesto-principles li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--dark-border);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.manifesto-principles li:first-child {
  border-top: 1px solid var(--dark-border);
}

.principle-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--dark-accent);
  padding-top: 0.1rem;
}

.principle-text {
  font-size: 0.95rem;
  color: var(--dark-text-body);
  line-height: 1.7;
}

.principle-text strong {
  color: var(--white);
  font-weight: 400;
}

/* ── Approche ── */
.approach {
  padding: 7rem 4rem;
  background-color: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.approach-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--green);
}

.approach-item h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.approach-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════════════
   PAGE : Écoconception web  (ecoconceptionweb.html)
   ═══════════════════════════════════════════════════════════════ */

/* Paragraphe descriptif dans le hero */
.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 60ch;
  margin-top: 1.5rem;
}

.page-hero p a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.page-hero p a:hover { border-color: var(--text); }

/* Marge sous le h1 quand un paragraphe suit */
.page-hero h1 + p { margin-top: 2rem; }

/* ── Charte ── */
.charte {
  background-color: var(--bg-dark);
  padding: 8rem 4rem;
}

.charte-list {
  list-style: none;
  max-width: 72rem;
  margin: 0 auto;
}

.charte-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--dark-border);
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 2rem;
  align-items: start;
}

.charte-item:first-child {
  border-top: 1px solid var(--dark-border);
}

.charte-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--dark-accent);
  padding-top: 0.15rem;
}

.charte-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.charte-body p {
  font-size: 0.95rem;
  color: var(--dark-text-body);
  line-height: 1.8;
  max-width: 65ch;
}

.charte-body p a {
  color: var(--dark-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.charte-body p a:hover { border-color: var(--dark-accent); }

.charte-body p strong {
  color: var(--white);
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════════
   PAGE : Mentions légales  (mentionslegales.html)
   ═══════════════════════════════════════════════════════════════ */

.mentions {
  background-color: var(--white);
  padding: 7rem 4rem;
}

.mentions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 72rem;
}

.mentions-block h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mentions-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.mentions-block p + p { margin-top: 0.25rem; }

.mentions-block .mentions-group { margin-top: 1.5rem; }

.mentions-block strong {
  color: var(--text);
  font-weight: 500;
}

.mentions-block a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.mentions-block a:hover { border-color: var(--green); }


/* ═══════════════════════════════════════════════════════════════
   PAGE : Article  (articles/*.html)
   — Ajouter class="article-page" sur le <body> —
   ═══════════════════════════════════════════════════════════════ */

/* Surcharge du hero pour la largeur article */
.article-page .page-hero {
  padding-bottom: 6rem;
  max-width: 900px;
}

.article-page .page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.1;
}

/* ── Contenu ── */
.article-body {
  background-color: var(--white);
  padding: 6rem 4rem 7rem;
}

.article-content {
  max-width: 72ch;
  margin: 0 auto;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--text);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-content p strong,
.article-content p b {
  color: var(--text);
  font-weight: 500;
}

.article-content a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover { border-color: var(--green); }

/* Bouton dans l'article : rétablir la couleur du btn-primary */
.article-content .btn-primary {
  color: var(--dark-text-btn);
  border-bottom: none;
}

.article-content ul {
  list-style: none;
  margin: 1.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-content ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}

.article-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.85rem;
}

.article-content ul li b {
  color: var(--text);
  font-weight: 500;
}

.article-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.img-pair img { margin: 0; }

.article-cta { margin: 2.5rem 0; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

  /* — Commun — */
  nav         { padding: 1.5rem 2.5rem; }
  nav.scrolled { padding: 1rem 2.5rem; }
  .page-hero  { padding: 10rem 2.5rem 5rem; }
  .cta-section { padding: 5rem 2.5rem; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 2.5rem 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    text-align: center;
  }

  /* — Accueil — */
  .hero       { padding: 7rem 2.5rem 4rem; min-height: auto; }
  .services   { padding: 5rem 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .ecoconception { grid-template-columns: 1fr; padding: 5rem 2.5rem; gap: 3rem; }
  .manifesto  { grid-template-columns: 1fr; padding: 5rem 2.5rem; gap: 3rem; }
  .approach   { padding: 5rem 2.5rem; }
  .approach-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* — Écoconception web — */
  .charte     { padding: 5rem 2.5rem; }

  /* — Mentions légales — */
  .mentions   { padding: 5rem 2.5rem; }
  .mentions-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  /* — Article — */
  .article-body { padding: 5rem 2.5rem 6rem; }
}

@media (max-width: 640px) {

  /* — Commun — */
  nav         { padding: 1.25rem 1.5rem; }
  nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav-links  { display: none; }
  .page-hero  { padding: 8rem 1.5rem 4rem; }
  .cta-section { padding: 4rem 1.5rem; }
  .footer-top { padding: 3rem 1.5rem 2.5rem; }
  .footer-bottom { padding: 1.5rem; }

  /* — Accueil — */
  .hero       { padding: 6rem 1.5rem 3rem; }
  .services   { padding: 4rem 1.5rem; }
  .manifesto  { padding: 4rem 1.5rem; }
  .approach   { padding: 4rem 1.5rem; }
  .approach-grid { grid-template-columns: 1fr; }

  /* — Écoconception web — */
  .charte     { padding: 4rem 1.5rem; }
  .charte-item { grid-template-columns: 2.5rem 1fr; gap: 1.25rem; }

  /* — Mentions légales — */
  .mentions   { padding: 4rem 1.5rem; }

  /* — Article — */
  .article-body { padding: 4rem 1.5rem 5rem; }
  .img-pair   { grid-template-columns: 1fr; }
}
