body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    text-align: center;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
}

th {
    background: #333;
    color: white;
}

.section {
    background: #555;
    color: white;
    font-weight: bold;
}

.subsection {
    background: #ddd;
    font-weight: bold;
}

input {
    width: 80px;
    text-align: center;
}

.total {
    background: #222;
    color: white;
    font-weight: bold;
}

.supprimer {
    margin-left: 10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    padding: 3px 6px;
}

canvas {
    border: 3px solid black;
}

tr {
    transition: all 0.3s ease;
}

tr.nouvelle-ligne {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    transition: all 0.3s ease;
}

tr.nouvelle-ligne.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#graphique {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    margin-top: 20px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    padding: 10px;
}

.barre {
    width: 30px;
    background: red;
    transition: height 0.5s ease;
}

#container {
    display: flex;
}

#axe {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    margin-right: 10px;
    color: white;
}

#axe div {
    font-size: 12px;
}

#axe {
    color: white;
    width: 60px;
}

#container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

#axe {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    color: rgb(14, 13, 13);
    font-size: 12px;
}


/* 📱 RESPONSIVE MOBILE */
@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    h1 {
        font-size: 18px;
        text-align: center;
    }

    table {
        font-size: 12px;
    }

    input {
        width: 70px;
        font-size: 12px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }

    #container {
        flex-direction: column;
    }

    canvas {
        width: 100% !important;
        height: auto;
    }
}

button {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ✨ hover */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 🔥 clic */
button:active {
    transform: scale(0.95);
}

#ajouter-depense {
    background: linear-gradient(135deg, #00ff9d, #00c853);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #2d6274, #2c5364);
    color: rgb(27, 27, 27);
}

h1 {
    text-align: center;
    margin-top: 20px;
    font-size: 28px;
    letter-spacing: 1px;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background: rgba(255,255,255,0.1);
}

tr {
    transition: background 0.2s;
}

tr:hover {
    background: rgba(255,255,255,0.08);
}

input {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 5px;
    border-radius: 5px;
    color: rgb(245, 233, 233);
    text-align: center;
}

input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

#container {
    width: 90%;
    margin: 20px auto;
}

#alerte-budget {
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
}

.alert-ok {
    background: #d4edda;
    color: #155724;
}

.alert-warning {
    background: #e0c057;
    color: #2c240b;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

#alerte-budget {
    transition: all 0.3s ease;
}

.animate-alert {
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(2deg); }
    100% { transform: scale(1); }
}

.celebrate {
    animation: celebrate 0.5s ease;
}

/* Bouton aide */
.btn-aide {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Bannière cachée */
.banniere-cache {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

/* 🌙 FOND OVERLAY */
.banniere {
    display: none;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* 🧾 CONTENU */
.banniere-contenu {
    background: #ffffff;
    color: #222;

    padding: 25px;
    border-radius: 15px;

    width: 90%;
    max-width: 450px;

    max-height: 80vh;
    overflow-y: auto;

    box-shadow: 0 10px 40px rgba(0,0,0,0.3);

    position: relative;

    animation: popup 0.3s ease;
}

/* ✨ ANIMATION */
@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.contenu {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

#close-aide {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}



.banniere-contenu {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
    float: right;
}





.banniere.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    backdrop-filter: blur(10px);
}

#auth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: #111;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 10px;
    z-index: 10000;
}

#auth input {
    padding: 10px;
    width: 200px;
}

#auth button {
    padding: 10px 15px;
    cursor: pointer;
}

/* 🔥 FOND GLOBAL */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #141e30, #243b55);
    z-index: 9999;
}

/* 💎 BOX */
.auth-box {
    background: rgb(53, 52, 52);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(211, 202, 202, 0.2);

    animation: fadeIn 0.5s ease;
}

/* ✨ INPUTS */
.auth-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;

    border: 1px solid #ccc;
    border-radius: 8px;

    outline: none;
    transition: 0.3s;
}

.auth-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* 🚀 BOUTONS */
.auth-box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;

    border: none;
    border-radius: 8px;
    cursor: pointer;

    font-weight: bold;
    transition: 0.3s;
}

/* bouton principal */
#btn-login {
    background: #007bff;
    color: white;
}

#btn-login:hover {
    background: #0056b3;
}

/* bouton secondaire */
.secondary {
    background: #eee;
}

.secondary:hover {
    background: #ddd;
}

/* 📝 MESSAGE */
#auth-msg {
    margin-top: 10px;
    font-size: 14px;
}

/* ✨ ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    padding: 10px;
}

/* rendre les éléments flexibles */
.container {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }

    input {
        width: 100%;
        font-size: 14px;
    }

    button {
        width: 100%;
        padding: 10px;
    }
}

table {
    width: 100%;
    display: block;
    overflow-x: auto;
    margin-left: auto;
    margin-right: auto;
}

input {
    border-radius: 8px;
    padding: 8px;
}

button {
    border-radius: 10px;
    background: #00ffcc;
    color: black;
    font-weight: bold;
}

.container {
    width: 100%;
    max-width: 500px;
}

@media (orientation: landscape) {
    .container {
        max-width: 700px;
    }
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px;
}

.card {
  background: white;
  padding: 20px;
  width: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 20px;
  font-weight: bold;
}



.banniere.active {
    display: flex;
}

.banniere-contenu {
    background: #ffffff;
    color: #222;

    padding: 25px;
    border-radius: 15px;

    width: 90%;
    max-width: 450px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.3);

    animation: popup 0.3s ease;
    position: relative;
}

#close-aide {
    position: absolute;
    top: 12px;
    right: 15px;

    font-size: 20px;
    cursor: pointer;
    font-weight: bold;

    transition: 0.2s;
}

#close-aide:hover {
    color: red;
    transform: scale(1.2);
}

@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.banniere-contenu h2 {
    margin-bottom: 15px;
}

.banniere-contenu p, 
.banniere-contenu ul {
    text-align: left;
    line-height: 1.5;
}

.banniere-contenu {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.dashboard .card:nth-child(1) { animation-delay: 0.1s; }
.dashboard .card:nth-child(2) { animation-delay: 0.2s; }
.dashboard .card:nth-child(3) { animation-delay: 0.3s; }
.dashboard .card:nth-child(4) { animation-delay: 0.4s; }

.card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;

    padding: 20px;
    border-radius: 15px;

    text-align: center;

    box-shadow: 0 8px 20px rgba(0,0,0,0.3);

    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.card p {
    font-size: 22px;
    font-weight: bold;
}

#totalDepense {
    color: #ff6b6b;
}

#totalPrevu {
    color: #ffd93d;
}

#ecart {
    color: #00ffcc;
}

#objectif {
    color: #4dabf7;
}

.ligne-animation {
    opacity: 0;
    transform: translateY(-15px);
}

.ligne-animation.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.ligne-suppression {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.ligne-suppression.active {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    animation: fadeSlideIn 0.5s ease forwards;
    opacity: 0;
}

/* ✅ FIX INPUT REVENUS */
input {
    color: black; /* rend le texte visible */
    background: white; /* fond clair lisible */
    width: 100px; /* taille stable */
    text-align: center;
}

/* 🔥 animation changement de mois */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
}

.card {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.card h3 {
    margin: 0;
    font-size: 14px;
}

.card p {
    margin-top: 10px;
    font-size: 22px;
    font-weight: bold;
}

.card {
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.dashboard {
    justify-content: space-between;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

.table-container {
    overflow-x: auto;
}

input {
    width: 100%;
    max-width: 120px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
}

td {
    padding: 8px;
}

th {
    padding: 10px;
}

.card, table {
    border-radius: 10px;
}

#budget-body {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.slide-out-left {
    transform: translateX(-20px);
    opacity: 0;
}

.slide-in-right {
    transform: translateX(20px);
    opacity: 0;
}

.container {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;     /* centre verticalement */
}

/* Bannière scrollable */


.aide {
    font-size: 15px;
    color: #333;
}

.aide b {
    color: #007bff;
}

.aide span {
    display: block;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .banniere {
        width: 95%;
        height: 450px;
        padding: 15px;
    }

    .aide {
        font-size: 14px;
    }
}


/* ✅ FIX POSITIONNEMENT BANNIÈRE */
.banniere {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ✅ CONTENU BIEN CENTRÉ + RESPONSIVE */
.banniere-contenu {
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .banniere {
        align-items: flex-start;
        padding-top: 20px;
    }

    .banniere-contenu {
        width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 600px) {

    .banniere {
        align-items: flex-start;
        padding-top: 20px;
    }

    .banniere-contenu {
        width: 95%;
        max-height: 85vh;
        padding: 20px;
    }
}

.aide {
    font-size: 15px;
    line-height: 1.6;
}

.aide span {
    display: block;
    margin-top: 10px;
}

/* bouton hamburger */
.menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

/* menu */
.sidebar {
  width: 200px;
  height: 100vh;
  background: #fff8c4;
  padding: 20px;
  position: fixed;
  top: 0;
  left: -220px; /* caché */
  transition: 0.3s;
}

/* menu ouvert */
.sidebar.active {
  left: 0;
}

/* bouton hamburger */
.menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000; /* IMPORTANT */
}

/* sidebar */
.sidebar {
  width: 220px;
  height: 100vh;
  background: #fff8c4;
  padding: 20px;
  position: fixed;
  top: 0;
  left: -240px;
  transition: 0.3s ease;
  z-index: 1500; /* IMPORTANT */
}

/* quand ouvert */
.sidebar.active {
  left: 0;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1400;
}

.overlay.active {
  display: block;
}

.sidebar {
  width: 220px;
  height: 100vh;
  background: #fff3b0; /* jaune clair */
  padding: 20px;
  position: fixed;
  top: 0;
  left: -240px;
  transition: 0.3s ease;
  z-index: 1500;

  display: flex;
  flex-direction: column;
  border-right: 2px solid #ffe97a;
}

.sidebar a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.sidebar a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.25s ease; /* IMPORTANT */
}

/* animation au survol */
.sidebar a:hover {
  background: #ffe97a;
  transform: translateX(8px); /* déplacement */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.25s ease; /* IMPORTANT */
}

/* animation au survol */
.sidebar a:hover {
  background: #ffe97a;
  transform: translateX(8px); /* déplacement */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sidebar h2 {
  color: #333;
  margin-bottom: 20px;
}

.sidebar a {
  display: block;
  padding: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.25s ease;
}

/* hover */
.sidebar a:hover {
  background: #fff8c4; /* jaune très clair */
  transform: translateX(8px);
}

.sidebar a {
  border-left: 3px solid transparent;
}

.sidebar a:hover {
  border-left: 3px solid #f4c400;
}
.menu-btn {
  color: #f4c400;
}
section {
  display: none;
}
body {
  margin: 0;
  font-family: Arial;
  background: linear-gradient(135deg, #ffffff 60%, #fff8c4 100%);
}
.content {
  margin-left: 240px;
  padding: 30px;
}
.card {
  background: #e6dc52;
  border: 1px solid #75681d;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
section {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sidebar a {
  display: block;
  padding: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.sidebar a:hover {
  background: #fff8c4;
  transform: translateX(6px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background: #fff3b0;
}

 /* Styles spécifiques pour le tableau de budget */
        .budget-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .budget-table th, .budget-table td {
            padding: 12px 10px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        .budget-table th {
            background: #3498db;
            color: white;
        }
        .section-row {
            background: #ecf0f1;
            font-weight: bold;
            color: #2c3e50;
        }
        .total-row {
            background: #2c3e50;
            color: white;
            font-weight: bold;
        }
        .revenu-row {
            background: #d5f4e6;
            font-weight: bold;
        }
        .budget-table input {
            width: 100%;
            padding: 8px;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
        }
        .ecart-pos { color: #27ae60; font-weight: bold; }
        .ecart-neg { color: #e74c3c; font-weight: bold; }
        .summary-box {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
            font-size: 18px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        #taf th {
  background: #ffeb3b; /* jaune principal */
  color: black;
}
#taf .section {
  background: #fff8c4; /* jaune très clair */
  color: #333;
  font-weight: bold;
}
#taf .revenu {
  background: #e8fce8; /* léger vert doux */
  font-weight: bold;
}
#taf .revenu {
  background: #fff3b0;
}
#taf .total {
  background: #333;
  color: white;
  font-weight: bold;
}
#taf .total {
  background: #ffe97a;
  color: black;
}
#taf table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
#taf .summary {
  background: #fff8c4;
  border: 1px solid #ffe97a;
}
#taf input {
  border: 1px solid #ffe97a;
}

#budgetChart {
  width: 400px !important;
  height: 400px !important;
}

.charts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.bottom-charts {
  display: flex;
  gap: 60px;
}

canvas {
  width: 300px !important;
  height: 300px !important;
}
.charts div {
  text-align: center;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.stat-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
  font-size: 14px;
  color: #555;
}

.stat-card p {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;

  /* effet moderne */
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  transition: all 0.2s ease;

  /* petit accent jaune discret */
  border-left: 5px solid #ffe97a;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card h3 {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.stat-card p {
  font-size: 24px;
  font-weight: bold;
  color: #222;
}
.stat-card p {
  transition: transform 0.2s;
}

.stat-card:hover p {
  transform: scale(1.05);
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.stat-card {
  position: relative;
  background: white;
  padding: 25px 20px;
  border-radius: 18px;
  text-align: center;
  overflow: hidden;

  /* profondeur */
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);

  /* animation */
  transition: all 0.3s ease;

  /* accent jaune */
  border: 1px solid #fff3b0;
}

/* effet lumière (très premium) */
.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,233,122,0.15), transparent 60%);
  opacity: 0;
  transition: 0.4s;
}

/* hover */
.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* titre */
.stat-card h3 {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* valeur principale */
.stat-card p {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  transition: all 0.3s ease;
}

/* effet focus sur la valeur */
.stat-card:hover p {
  transform: scale(1.08);
}

/* ligne décorative */
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ffe97a;
  border-radius: 0 0 18px 18px;
}

.savings-box {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.savings-box input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.savings-box button {
  background: #ffe97a;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

.goal-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress {
  height: 100%;
  background: #ffe97a;
  width: 0%;
}
#privacy {
  padding: 25px;
  background: #f8f8f8;
}

/* CONTENEUR PRINCIPAL */
.privacy-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 20px;
  max-width: 900px;
  margin: 20px auto;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  line-height: 1.9;
  border-top: 6px solid #ffe97a; /* accent jaune */
  transition: 0.3s ease;
}

/* TITRE PRINCIPAL */
#privacy h2 {
  text-align: center;
  font-size: 30px;
  color: #222;
  margin-bottom: 10px;
  font-weight: bold;
}

/* SOULIGNEMENT JAUNE */
#privacy h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: #ffe97a;
  margin: 12px auto;
  border-radius: 10px;
}

/* TITRES SECTIONS */
.privacy-box h3 {
  font-size: 18px;
  margin-top: 28px;
  color: #111;
  padding: 10px 12px;
  background: #fffbe6;
  border-left: 5px solid #ffe97a;
  border-radius: 8px;
}

/* TEXTES */
.privacy-box p {
  font-size: 15px;
  color: #555;
  margin-top: 10px;
}

/* LISTES */
.privacy-box ul {
  margin-top: 10px;
  margin-left: 20px;
}

.privacy-box ul li {
  margin-bottom: 6px;
  color: #444;
}

/* HOVER PRO */
.privacy-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ANIMATION D’APPARITION */
#privacy {
  animation: fadeInPrivacy 0.5s ease;
}

@keyframes fadeInPrivacy {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   ⚙️ SETTINGS - PREMIUM UI
   ========================= */

#settings {
  padding: 30px 15px;
  background: linear-gradient(180deg, #f7f9fc, #eef2f7);
}

/* CENTRAGE + LAYOUT */
#settings .privacy-box {
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 25px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 1px 5px rgba(0,0,0,0.05);
  animation: fadeIn 0.4s ease;
}

/* ANIMATION ENTRÉE */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TITRE PRINCIPAL */
#settings h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #1f2d3d;
}

/* BLOCS (sections internes) */
#settings h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #2c3e50;
  position: relative;
  padding-left: 12px;
}

/* BARRE LATÉRALE STYLE APP */
#settings h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 18px;
  background: linear-gradient(#f1c40f, #f39c12);
  border-radius: 10px;
}

/* CARTES INTERNES */
#settings .privacy-box > * {
  transition: 0.3s ease;
}

/* LABELS STYLE CARD */
#settings label {
  display: block;
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  margin: 10px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

#settings label:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* SELECT STYLE MODERNE */
#settings select {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  outline: none;
  background: #fff;
  transition: 0.3s;
}

#settings select:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 10px rgba(241,196,15,0.25);
}

/* BOUTONS PREMIUM */
#settings button {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: white;
  border: none;
  padding: 12px 15px;
  margin: 8px 5px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#settings button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* BOUTON DESTRUCTIF */
#settings button:nth-of-type(3) {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* CHECKBOX STYLE MODERNE */
#settings input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #f1c40f;
  margin-right: 8px;
}

/* TEXTES */
#settings p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* MODE SOMBRE PREMIUM */
body.dark #settings {
  background: #0f1115;
}

body.dark #settings .privacy-box {
  background: rgba(25, 25, 25, 0.9);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body.dark #settings label {
  background: #1c1f26;
  color: #ddd;
}

body.dark #settings select {
  background: #1c1f26;
  color: #fff;
  border: 1px solid #333;
}

body.dark #settings h3 {
  color: #fff;
}

/* =======================
   LANDING PAGE TAF STYLE
   Jaune clair + blanc PRO
======================= */

#landing {
  font-family: Arial, sans-serif;
}

/* HERO SECTION */
#landing > div:first-child {
  background: linear-gradient(135deg, #fffdf0, #fff7cc);
  border-bottom: 2px solid #fde68a;
}

#landing h1 {
  color: #111827;
  letter-spacing: -0.5px;
}

#landing h1 span {
  color: #eab308;
  text-shadow: 0 2px 10px rgba(234, 179, 8, 0.2);
}

/* TEXTES */
#landing p {
  color: #4b5563;
}

/* TITRES SECTIONS */
#landing h2 {
  color: #111827;
  letter-spacing: -0.3px;
}

/* CARTES FONCTIONNALITÉS */
#landing .grid > div {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background: #fffdf5;
}

#landing .grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.15);
  border-color: #facc15;
}

/* ICONES */
#landing .grid > div h3 {
  color: #b45309;
  font-weight: 700;
}

/* BLOCS EXPLICATION */
#landing .grid > div p {
  color: #174185;
  box-sizing: border-box;
  background-color:rgb(247, 247, 231);
  border-radius: 0%;
}

/* SECTION COMMENT ÇA MARCHE */
#landing .bg-yellow-50 {
  background: linear-gradient(180deg, #fffbea, #fffdf5);
}

/* NUMÉROS ÉTAPES */
#landing .w-16.h-16 {
  background: #facc15;
  color: #1f2937;
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.3);
}

/* CTA FINAL (si tu le remets plus tard) */
#landing .cta,
#landing a.cta {
  background: #facc15;
  color: #111827;
  transition: 0.3s ease;
}

#landing .cta:hover {
  background: #eab308;
  transform: scale(1.03);
}

/* FOOTER HARMONIE */
#landing footer {
  background: #111827;
  color: #e5e7eb;
}

/* RESPONSIVE AMÉLIORÉ */
@media screen and (max-width: 768px) {
  #landing h1 {
    font-size: 30px;
  }

  #landing h2 {
    font-size: 24px;
  }

  #landing .grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   LOGO MENU À DROITE
========================= */

.logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px;
  font-size: 22px;
  font-weight: bold;
  color: white;
}

/* pousse le logo à droite dans le menu */
.sidebar h2,
.sidebar .logo-box {
  text-align: right;
  width: 100%;
}

/* =========================
   LOGO CIRCULAIRE TAF
========================= */

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* 🔥 cercle parfait */
  object-fit: cover;
  background: #facc15;
  padding: 3px;
  display: block;
}
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* =========================
   FOOTER TAF PREMIUM LIGHT
========================= */

.taf-footer {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #d1d5db;
  padding: 30px 15px; /* 🔥 plus petit */
  margin-top: 40px;
  border-top: 2px solid #facc15;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

/* LOGO / BRAND */
.footer-brand h2 {
  color: #facc15;
  font-size: 22px;
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 12px;
  color: #9ca3af;
}

/* LINKS */
.footer-links a {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  margin: 4px 0;
  font-size: 13px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #facc15;
  transform: translateX(3px);
}

/* INFO */
.footer-info {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .taf-footer {
    padding: 25px 10px;
  }

  .footer-content {
    gap: 15px;
  }
}

/* =========================
   DIAGRAMMES EN TRIANGLE
========================= */

.charts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* haut : 1 diagramme centré */
.charts > div:first-child {
  display: flex;
  justify-content: center;
}

/* bas : les 2 autres côte à côte */
.bottom-charts {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* taille des charts */
.charts canvas {
  width: 220px !important;
  height: 220px !important;
}

/* option : style carte */
.charts > div,
.bottom-charts > div {
  background: #fffbea;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid #fde68a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =========================
   ANIMATION SUPPRESSION LIGNE
========================= */

.fade-out {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

/* =========================
   ANIMATION AJOUT LIGNE
========================= */

.add-row {
  opacity: 0;
  transform: translateY(-15px);
  animation: fadeInRow 0.35s ease forwards;
}

@keyframes fadeInRow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    padding: 15px;
}

button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    .container {
        padding: 10px;
    }
}

.card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

button {
    background: #FFD54F;
    border: none;
    color: black;
    font-weight: bold;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    color: #222;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin: 15px 0;
    color: #333;
}

/* rend les blocs plus lisibles sans changer ton HTML */
div {
    box-sizing: border-box;
}

/* améliore les sections existantes */
section, .card, .container > div {
    background: white;
    margin: 10px;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* inputs plus lisibles */
input {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

/* boutons propres */
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: none;
    background: #f0c040;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

/* effet léger au clic */
button:active {
    transform: scale(0.99);
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 20px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    color: #222;
}

/* centre tout proprement */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
}

/* titre bien centré */
h1 {
    text-align: center;
    font-size: 22px;
    margin: 15px 0;
}

/* blocs bien cadrés */
.card, section, .container > div {
    background: white;
    width: 100%;
    margin: 12px 0;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* inputs alignés */
input {
    width: 100%;
    display: block;
    margin-top: 8px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
}

/* boutons bien visibles */
button {
    width: 100%;
    display: block;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #f0c040;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    max-width: 500px;
margin: 0 auto;
}

/* améliore le toucher mobile */
button:active {
    transform: scale(0.98);
}

/* optimisation mobile */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
    line-height: 1.4;
}

/* conteneur mieux centré */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px;
}

/* titre plus propre */
h1 {
    text-align: center;
    font-size: 22px;
    margin: 12px 0 18px;
}

/* cartes améliorées */
.card, section, .container > div {
    background: white;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* inputs plus confortables */
input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

/* focus propre (important UX) */
input:focus {
    border-color: #f0c040;
}

/* boutons plus modernes */
button {
    width: 100%;
    padding: 13px;
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    background: #f0c040;
    font-weight: bold;
    font-size: 15px;
}

/* effet tactile mobile */
button:active {
    transform: scale(0.97);
}

/* petit ajustement mobile */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }
}