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

@font-face {
    font-family: 'MyCustomFont';
    src: local('MyCustomFont'),
    url('../fonts/FivoSans-Medium.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'MyCustomFont', sans-serif !important;
    min-height: 100vh;
    background: #f5f5f5;
    color: #333;
    /*line-height: 1.6;*/
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* HEADER */
header {
    background: linear-gradient(to right, rgb(107, 42, 28), rgb(167, 53, 41));
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header img {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

h1 {
    color: white;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.custom-background {
    background-color: rgb(107, 42, 28) !important;
}

/* MAIN CONTENT */
main {
    flex: 1;
    padding: 15px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 100%;
    padding: 15px;
    margin: 30px !important;

}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

.page-header h1 {
    color: rgb(107, 42, 28);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    color: #666;
}

.cagnottes-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

/* PUBLIC APP CSS */

.ms-auto {
    margin-left: 0 !important;
}

.nav-link:focus, .nav-link:hover {
    color: rgb(107, 42, 28) !important;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: rgb(107, 42, 28) !important;
}

.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: rgb(0, 0, 0) !important;
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

/* END */

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 3px solid rgb(107, 42, 28);
}

.section-header a {
    text-decoration: none;
    color: rgb(107, 42, 28); /* On reprend la couleur de votre bordure */
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

/* Effet de soulignement animé */
.section-header a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(107, 42, 28);
    transition: width 0.3s ease;
}

.section-header a:hover {
    opacity: 0.8;
}

.section-header a:hover::after {
    width: 100%;
}

/* Optionnel : Ajout d'une petite icône chevron via CSS */
.section-header a::before {
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-header a:hover::before {
    transform: translateX(5px);
}

.section-header h2 {
    color: rgb(107, 42, 28);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-badge {
    background: linear-gradient(to right, rgb(107, 42, 28), rgb(167, 53, 41));
    color: white;
    padding: 8px 10px;
    border-radius: 10px;
}


.progress-text {
    padding: 10px 0px;
}


/* CAGNOTTE CARD */

.cagnotte-card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cagnotte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cagnotte-info {
    font-size: 14px;
}

.cagnotte-card:hover {
    transform: translateY(-4px);
    border-color: rgb(107, 42, 28);
}

.cagnotte-image {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.cagnotte-title {
    font-size: 19px;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-weight: 600;
}

/* CAGNOTTE CARD END */

.progress-container {
    width: 100%;
    height: 10px;
    margin-top: 10px;
    background: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: rgb(107, 42, 28) !important;
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.btn-success {
    text-decoration: none;
    padding: 12px 24px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    background: rgb(107, 42, 28) !important;
    color: white;
}

.btn-success:hover {
    background: rgb(87, 32, 18);
    transform: translateY(-2px);
}


header {
    background: linear-gradient(to right, rgb(107, 42, 28), rgb(167, 53, 41));
    color: white;
    padding: 15px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.logo-section img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
}

.logo-section h1 {
    font-size: 1.8rem;
    color: whitesmoke;
    font-weight: 700;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.date-display {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.div-custom {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.div-custom:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


.div-custom-logout {
    background: linear-gradient(135deg, #ff4b4b, #ff0000);
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.div-custom-logout:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.35);
}

.div-custom a, .div-custom-logout a {
    color: white;
    text-decoration: none;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}


/* --- DROPDOWN LANGUES --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.dropdown .chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* menu caché */
.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    min-width: 160px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 999;
}

/* éléments du menu */
.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: rgb(107, 42, 28);
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(107, 42, 28, 0.08);
}

/* visible quand actif */
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.active .chevron {
    transform: rotate(180deg);
}


.progress-container {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 8px;
}

.progress-bar {
    height: 100%;
    width: 0%; /* valeur par défaut */
    background: rgb(107, 42, 28);
    border-radius: 8px;
    transition: width .4s ease;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .header-info {
        width: 100%;
        justify-content: center;
    }

    .container {
        max-width: 100%;
        padding: 10px;
        margin: 0px !important;
    }

    main {
        flex: 1;
        padding: 10px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .dropdown-menu {
        right: auto;
        left: 0;
    }

    .dropdown-menu {
        right: auto;
        left: 0;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding-top: 10px;
        padding-bottom: 15px;
        padding-left: 2em;
        padding-right: 2em;
        /* padding: 30px 12em;*/
    }

    header img {
        width: 60px;
        height: 60px;
    }


    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cagnotte-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cagnotte-card {
        padding: 20px;
    }

    .card-actions {
        flex-direction: column;
    }

    .app-button img {
        height: 45px;
    }
}

/* RESPONSIVE DESKTOP */
@media (min-width: 769px) {
    header {
        padding-top: 10px;
        padding-bottom: 10px;
        /*padding-left: 4em;
        padding-right: 4em;*/
    }


    main {
        padding: 10px 3.2em;
    }

    .cagnotte-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
        gap: 20px;
    }
}

/* RESPONSIVE LARGE DESKTOP */
@media (min-width: 1400px) {
    .cagnotte-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
        gap: 20px;
    }
}


@media (max-width: 480px) {
    .header-info {
        flex-direction: column;
        gap: 15px;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== MONTANTS CAGNOTTE ===== */

.amount-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 15px;
    margin-top: 6px;
}

.amount-current {
    font-size: 18px;
    font-weight: 700;
    color: rgb(107, 42, 28);
}

.amount-separator {
    font-weight: 600;
    color: #999;
}

.amount-target {
    font-size: 14px;
    color: #666;
}

.amount-secondary {
    margin-top: 4px;
    font-size: 13px;
    color: #888;
}
/*===== FOOTER ===== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0px;
}

.footer-card {
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}


/* Download section spécifique */
.download-card h3 {
    color: rgb(255, 255, 255);
    margin-bottom: 20px !important;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.app-button img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Legal section */
.legal-card h3 {
    color: rgb(255, 255, 255);
    margin-bottom: 12px;
}

.legal-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.legal-links a.btn-success {
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    background: rgb(107, 42, 28);
    color: white;
    font-weight: 600;
}


/* Footer général */
footer {
    background: linear-gradient(to right, rgb(107, 42, 28), rgb(167, 53, 41));
    color: white;
    text-align: center;
}

footer p {
    margin-top: 20px;
    opacity: 0.9;
}

/* Responsive */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 4fr 8fr; /* Card 1 = 4, Card 2 = 8 */
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 card par ligne sur mobile */
    }
}


/* FOOTER */
footer {
    width: 100%;
    background: linear-gradient(to right, rgb(107, 42, 28), rgb(167, 53, 41));
    backdrop-filter: blur(10px);
    /*padding: 15px 10px;*/
    text-align: center;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-top: 20px;
    margin-bottom: 0px;
    opacity: 0.9;
}

/* FOOTER END */

/* DOWNLOAD SECTION */
.download-section {
    margin-bottom: 10px;
}

.download-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* DOWNLOAD SECTION END */
.img-fluid {
    width: 60px !important;
    height: 60px !important;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.app-button {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-button img {
    height: 50px;
    width: auto;
}


