@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
  --vert:       #0a7c59;
  --vert-fonce: #064d38;
  --vert-clair: #12a87a;
  --or:         #c9913a;
  --or-clair:   #e8b060;
  --blanc:      #ffffff;
  --gris-clair: #f4f6f5;
  --gris-texte: #4a5568;
  --noir:       #1a202c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--noir);
  background: var(--blanc);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* NAVBAR */
.navbar {
  background: var(--vert-fonce);
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-principal { color: var(--or); font-size: 1.1rem; font-weight: 800; letter-spacing: 1px; }
.logo-sub { color: rgba(255, 255, 255, 255); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; }
.nav-liens { display: flex; gap: 2rem; }
.nav-liens a { color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-liens a:hover { color: var(--or); }

.btn-nav {
  background: var(--or);
  color: var(--blanc) !important;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav:hover { background: var(--or-clair); transform: translateY(-1px); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert) 100%);
  position: relative
  color: var(--blanc);
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 90vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 77, 56, 0.82);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}


.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; color: var(--blanc); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--or); font-style: normal;}
.hero p { font-size: 1rem; line-height: 1.9; opacity: 0.88; margin-bottom: 2rem; font-weight: 400; color: var(--blanc);}

.hero-boutons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-principal {
  background: var(--or);
  color: var(--blanc);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-principal:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,145,58,0.5); }

.btn-secondaire {
  background: transparent;
  color: var(--blanc);
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondaire:hover { border-color: var(--blanc); background: rgba(255,255,255,0.08); }

/* CARTE STATS HERO */
.hero-carte {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.stats-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.2rem;
}

.stat-numero { font-size: 1.9rem; font-weight: 800; color: var(--blanc); line-height: 1; }
.stat-label { font-size: 0.78rem; opacity: 0.7; margin-top: 5px; color: var(--blanc); font-weight: 500; }

/* SECTIONS */
.section { padding: 80px 5%; }
.section-gris { background: var(--gris-clair); }

.section-titre { text-align: center; margin-bottom: 3.5rem; }

.tag {
  display: inline-block;
  background: rgba(10,124,89,0.1);
  color: var(--vert);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-titre h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.section-titre p { color: var(--gris-texte); max-width: 550px; margin: 0 auto; line-height: 1.8; font-size: 0.95rem; }

/* GRILLE 3 COLONNES */
.grille-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* CARTES */
.carte {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.carte:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(0,0,0,0.09); }
.carte-icone { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.carte h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--noir); }
.carte p { color: var(--gris-texte); font-size: 0.9rem; line-height: 1.8; }

/* FOOTER */
.footer { background: var(--vert-fonce); color: rgba(255,255,255,0.8); }

.footer-contenu {
  padding: 60px 5%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-bloc h3 { color: var(--or); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-bloc h4 { color: var(--blanc); font-weight: 600; margin-bottom: 1rem; }
.footer-bloc p, .footer-bloc li { font-size: 0.88rem; line-height: 2.2; opacity: 0.8;}
.footer-bloc a:hover { color: var(--or); }

.footer-bas {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 5%;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* =============================
   HAMBURGER BUTTON
   ============================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--blanc);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.actif span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.actif span:nth-child(2) { opacity: 0; }
.hamburger.actif span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

/* =============================
   RESPONSIVE TABLETTE
   ============================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .grille-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-contenu { grid-template-columns: 1fr 1fr; }
}

/* =============================
   RESPONSIVE MOBILE
   ============================= */
@media (max-width: 768px) {

  /* NAVBAR MOBILE */
  .hamburger { display: flex; }
  .btn-nav { display: none; }

  .nav-liens {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--vert-fonce);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 0;
    z-index: 150;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav-liens.ouvert { display: flex; }

  .nav-liens li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-liens a { display: block; padding: 14px 0; font-size: 1rem; }

  /* HERO MOBILE */
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 5% 40px;
    min-height: auto;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero-carte { display: none; }

  .hero-boutons { flex-direction: column; }
  .btn-principal, .btn-secondaire { text-align: center; width: 100%; }

  /* SECTIONS MOBILE */
  .section { padding: 50px 5%; }
  .section-titre h2 { font-size: 1.6rem; }
  .grille-3 { grid-template-columns: 1fr; gap: 1rem; }

  /* FOOTER MOBILE */
  .footer-contenu {
    grid-template-columns: 1fr;
    padding: 40px 5%;
    gap: 2rem;
  }
}
/* ================================
   VAGUE EN BAS DU HERO
   ================================ */
.hero {
  position: relative;
}

.hero-vague {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-vague svg {
  display: block;
  width: 100%;
}

/* ================================
   BARRE DE PROGRESSION NAVBAR
   ================================ */
.barre-progression {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  background: var(--or);
  width: 0%;
  z-index: 99;
  transition: width 0.1s;
}



/* ICI COMMENCE LE CSS DE LA PAGE SERVICE */

/* ================================
   PAGE SERVICES
   ================================ */
.grille-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.carte-service-detail {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.carte-service-detail:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.carte-service-icone {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.carte-service-contenu h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.carte-service-contenu p {
  color: var(--gris-texte);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.liste-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.liste-details li {
  font-size: 0.85rem;
  color: var(--vert);
  font-weight: 600;
}

@media (max-width: 768px) {
  .grille-services { grid-template-columns: 1fr; }
  .carte-service-detail { flex-direction: column; }
}



/* ================================
   PAGE DEMANDE DE PRÊT
   ================================ */
.demande-grille {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3rem;
  align-items: start;
}

.formulaire-bloc {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
}

.alerte-succes {
  background: rgba(10,124,89,0.1);
  border: 1px solid var(--vert);
  color: var(--vert);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-section-titre {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vert);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(10,124,89,0.15);
}

.form-grille-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-groupe {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-groupe label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--noir);
}

.form-groupe input,
.form-groupe select,
.form-groupe textarea {
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--noir);
  transition: border-color 0.2s;
  background: var(--blanc);
}

.form-groupe input:focus,
.form-groupe select:focus,
.form-groupe textarea:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(10,124,89,0.1);
}

.form-groupe textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-soumettre {
  width: 100%;
  background: var(--vert);
  color: var(--blanc);
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-soumettre:hover {
  background: var(--vert-clair);
  transform: translateY(-2px);
}

.info-carte {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.8rem;
}

.info-carte h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--vert-fonce);
}

.etapes {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.etape-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.etape-num {
  width: 32px;
  height: 32px;
  background: var(--vert);
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.etape-item strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.2rem;
}

.etape-item p {
  font-size: 0.82rem;
  color: var(--gris-texte);
  margin: 0;
}

@media (max-width: 768px) {
  .demande-grille { grid-template-columns: 1fr; }
  .form-grille-2 { grid-template-columns: 1fr; }
}


/* ================================
   PAGE À PROPOS
   ================================ */
.apropos-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stats-apropos {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-apropos-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vert);
}

.stat-apropos-label {
  font-size: 0.82rem;
  color: var(--gris-texte);
  margin-top: 4px;
}

.grille-equipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.carte-equipe {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.carte-equipe:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.equipe-avatar {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.carte-equipe h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.equipe-poste {
  color: var(--vert);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.equipe-desc {
  color: var(--gris-texte);
  font-size: 0.85rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .apropos-grille { grid-template-columns: 1fr; }
  .grille-equipe { grid-template-columns: repeat(2, 1fr); }
  .stats-apropos { gap: 1rem; }
}

@media (max-width: 480px) {
  .grille-equipe { grid-template-columns: 1fr; }
}

/* ================================
   MISSION VISION OBJECTIFS
   ================================ */
.grille-mvo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.carte-mvo {
  background: var(--blanc);
  border-radius: 20px;
  padding: 2.5rem;
  border-top: 4px solid var(--vert);
  box-shadow: 0 5px 30px rgba(0,0,0,0.05);
  transition: transform 0.25s;
}

.carte-mvo:hover {
  transform: translateY(-5px);
}

.mvo-icone {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.carte-mvo h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--vert-fonce);
  margin-bottom: 1rem;
}

.carte-mvo p {
  color: var(--gris-texte);
  font-size: 0.9rem;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .grille-mvo { grid-template-columns: 1fr; }
}

/* ================================
   PAGE CONTACT
   ================================ */
.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icone {
  width: 45px;
  height: 45px;
  background: rgba(10,124,89,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--noir);
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--gris-texte);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .contact-grille { grid-template-columns: 1fr; }
}

/* ================================
   PAGE NEWS
   ================================ */
.grille-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.carte-article {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.carte-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--gris-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-contenu {
  padding: 1.5rem;
}

.article-categorie {
  display: inline-block;
  background: rgba(10,124,89,0.1);
  color: var(--vert);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.article-contenu h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-contenu p {
  color: var(--gris-texte);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.article-date {
  font-size: 0.8rem;
  color: var(--gris-texte);
}

.lien-article {
  color: var(--vert);
  font-size: 0.88rem;
  font-weight: 700;
}

/* DÉTAIL ARTICLE */
.article-detail-grille {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.article-texte {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--gris-texte);
}

.carte-article-mini {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.carte-article-mini h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.carte-article-mini h4 a {
  color: var(--noir);
  transition: color 0.2s;
}

.carte-article-mini h4 a:hover { color: var(--vert); }

.carte-article-mini p {
  font-size: 0.82rem;
  color: var(--gris-texte);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .grille-articles { grid-template-columns: 1fr; }
  .article-detail-grille { grid-template-columns: 1fr; }
}

/* ================================
   PAGE EMPLOIS
   ================================ */
.grille-offres {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.carte-offre {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--vert);
  transition: box-shadow 0.25s;
}

.carte-offre:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.offre-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.offre-type {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.offre-type.cdi { background: rgba(10,124,89,0.1); color: var(--vert); }
.offre-type.cdd { background: rgba(201,145,58,0.1); color: var(--or); }
.offre-type.stage { background: rgba(99,102,241,0.1); color: #6366f1; }
.offre-type.benevolat { background: rgba(239,68,68,0.1); color: #ef4444; }

.offre-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.offre-lieu {
  font-size: 0.88rem;
  color: var(--gris-texte);
}

.offre-deadline {
  text-align: right;
  font-size: 0.82rem;
  color: var(--gris-texte);
}

.offre-deadline span { display: block; }
.offre-deadline strong { color: var(--noir); font-size: 0.95rem; }

.offre-desc {
  color: var(--gris-texte);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.offre-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--gris-clair);
  border-radius: 12px;
  padding: 1.5rem;
}

.offre-details h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--vert-fonce);
}

.offre-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.offre-details li {
  font-size: 0.85rem;
  color: var(--gris-texte);
  padding-left: 0.5rem;
}

@media (max-width: 768px) {
  .offre-details { grid-template-columns: 1fr; }
  .offre-header { flex-direction: column; }
}


/* ================================
   SIMULATEUR DE PRÊT
   ================================ */
.simulateur-grille {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 50px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  accent-color: var(--vert);
  padding: 0;
  border: none;
}

.carte-resultat-principal {
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert));
  color: var(--blanc);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.resultat-chiffre {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--or);
  margin: 0.5rem 0;
}

.carte-details-resultat {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.detail-ligne:last-child {
  border-bottom: none;
}

.detail-ligne span {
  color: var(--gris-texte);
}

.carte-tableau {
  background: var(--blanc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
}

.tableau-amortissement {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tableau-amortissement th {
  background: var(--vert-fonce);
  color: var(--blanc);
  padding: 10px 8px;
  text-align: right;
  font-weight: 600;
}

.tableau-amortissement th:first-child {
  text-align: center;
  border-radius: 8px 0 0 0;
}

.tableau-amortissement th:last-child {
  border-radius: 0 8px 0 0;
}

.tableau-amortissement td {
  padding: 8px;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
  color: var(--gris-texte);
}

.tableau-amortissement td:first-child {
  text-align: center;
  font-weight: 700;
  color: var(--vert);
}

.tableau-amortissement tr:hover {
  background: var(--gris-clair);
}

@media (max-width: 768px) {
  .simulateur-grille { grid-template-columns: 1fr; }
  .resultat-chiffre { font-size: 1.8rem; }
}