/* ===== attestation-facile.fr — style.css ===== */

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

:root {
  --vert: #0F6E56;
  --vert-clair: #E1F5EE;
  --vert-moyen: #1D9E75;
  --vert-fonce: #085041;
  --violet: #534AB7;
  --violet-clair: #EEEDFE;
  --texte: #1a1a1a;
  --texte-sec: #555;
  --texte-ter: #888;
  --bord: #e0e0e0;
  --bord-hover: #b0b0b0;
  --bg: #f9f8f5;
  --blanc: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--texte);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: var(--blanc);
  border-bottom: 1px solid var(--bord);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--texte);
  text-decoration: none;
}
.logo-icon {
  width: 30px; height: 30px;
  background: var(--vert);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px;
}
.logo-tld { color: var(--vert); }
.nav { display: flex; gap: 24px; }
.nav a {
  font-size: 14px;
  color: var(--texte-sec);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--vert); }

/* ===== HERO ===== */
.hero {
  background: var(--blanc);
  padding: 72px 0 56px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--texte);
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: italic;
  color: var(--vert);
}
.hero-sub {
  font-size: 16px;
  color: var(--texte-sec);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.search-wrap {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}
.search-wrap input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: var(--bg);
}
.search-wrap input:focus { border-color: var(--vert); background: white; }
.search-wrap button {
  padding: 12px 22px;
  background: var(--vert);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.search-wrap button:hover { background: var(--vert-fonce); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--vert);
  padding: 14px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat { font-size: 13px; color: rgba(255,255,255,0.9); }
.stat strong { color: white; font-weight: 500; }
.stat-sep { color: rgba(255,255,255,0.4); }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--blanc); }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--texte);
  margin-bottom: 28px;
  text-align: center;
}

/* ===== ONGLETS CATÉGORIES ===== */
.cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-tab {
  padding: 7px 18px;
  border: 1px solid var(--bord);
  border-radius: 20px;
  background: var(--blanc);
  font-size: 13px;
  font-weight: 500;
  color: var(--texte-sec);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.cat-tab:hover { border-color: var(--vert); color: var(--vert); }
.cat-tab.active {
  background: var(--vert);
  border-color: var(--vert);
  color: white;
}

/* ===== BANNIÈRE IA ===== */
.ia-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--violet-clair);
  border: 1px solid #AFA9EC;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ia-banner-icon { font-size: 24px; }
.ia-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ia-banner-text strong { font-size: 14px; color: #26215C; }
.ia-banner-text span { font-size: 13px; color: var(--violet); }
.btn-ia {
  padding: 9px 18px;
  background: var(--violet);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-ia:hover { background: #3C3489; }

/* ===== GRILLE DOCUMENTS ===== */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.doc-card {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: var(--texte);
  transition: border-color 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-card:hover {
  border-color: var(--vert);
  transform: translateY(-2px);
}
.doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc-icon { font-size: 24px; }
.doc-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-modele { background: var(--vert-clair); color: var(--vert-fonce); }
.badge-ia { background: var(--violet-clair); color: var(--violet); }
.doc-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--texte);
  margin: 0;
}
.doc-card p {
  font-size: 12px;
  color: var(--texte-sec);
  line-height: 1.5;
  flex: 1;
}
.doc-formats {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.doc-formats span {
  font-size: 11px;
  color: var(--texte-ter);
  border: 1px solid var(--bord);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===== ÉTAPES ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--vert);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 500;
  margin: 0 auto 16px;
}
.step h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--texte-sec); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--texte);
  padding: 40px 0;
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer .logo-icon { background: rgba(255,255,255,0.15); }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: white;
}
.footer-logo .logo-tld { color: #5DCAA5; }
.footer-sub { font-size: 12px; color: rgba(255,255,255,0.45); max-width: 480px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-links a:hover { color: white; }

/* ===== PAGE FORMULAIRE ===== */
.form-page { padding: 40px 0 64px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--texte-ter);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--texte-ter); text-decoration: none; }
.breadcrumb a:hover { color: var(--vert); }
.breadcrumb-sep { color: var(--bord-hover); }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.form-panel, .preview-panel {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bord);
  font-size: 14px;
  font-weight: 500;
}
.panel-header-icon {
  width: 28px; height: 28px;
  background: var(--vert-clair);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.panel-body { padding: 20px; }

.form-section-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--texte-ter);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bord);
}
.form-section-title:first-child { margin-top: 0; }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--texte-sec);
  margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--texte);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--vert);
  background: white;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-pdf {
  width: 100%;
  padding: 11px;
  background: var(--vert);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
}
.btn-pdf:hover { background: var(--vert-fonce); }
.btn-word {
  width: 100%;
  padding: 11px;
  background: white;
  color: var(--texte);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.btn-word:hover { background: var(--bg); }

/* ===== APERÇU DOCUMENT ===== */
.doc-preview {
  padding: 28px;
  font-family: 'Times New Roman', serif;
  font-size: 12.5px;
  line-height: 1.85;
  color: #1a1a1a;
  min-height: 600px;
}
.doc-preview .doc-company-block {
  text-align: right;
  margin-bottom: 36px;
  font-size: 12px;
  line-height: 1.7;
  color: #444;
}
.doc-preview .doc-titre {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.doc-preview .doc-lieu-date {
  margin-bottom: 20px;
  font-size: 12px;
  color: #555;
}
.doc-preview .doc-corps p { margin-bottom: 14px; text-align: justify; }
.doc-preview .doc-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 12px;
  color: #555;
}
.hl {
  background: #E1F5EE;
  color: #085041;
  padding: 1px 3px;
  border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .form-layout { grid-template-columns: 1fr; }
  .nav { display: none; }
  .stats-inner { gap: 8px; }
  .stat-sep { display: none; }
}
