.formation-container {
    width: 90%;
    /*background: linear-gradient(145deg, rgba(26,26,26,0.4), rgba(18,18,18,0.6));*/
    background:transparent;
    border-radius: 20px;
    padding: 50px 40px;
    border: 1px solid rgba(181, 0, 21, 0.08);
    /*backdrop-filter: blur(15px);*/
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);*/
    animation: fadeInUp 0.6s ease-out;
}

main{
    background: black url(../../../newsletters/bg-rayures.png) center top repeat;
    background-size: 1000px;

}

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

/* Titre principal */
.formation-container h1 {
    font-weight: 200;
    font-size: 42px;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.formation-container h1 span {
    background: linear-gradient(135deg, #B50015 0%, #ff1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

.formation-container > p {
    color: #999;
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Grille des formations */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

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

/* Carte de formation */
.formation-card {
    background: linear-gradient(145deg, rgba(30,30,30,0.6), rgba(20,20,20,0.8));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(181, 0, 21, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B50015, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.formation-card:hover::before {
    transform: translateX(100%);
}

.formation-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(181, 0, 21, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(181, 0, 21, 0.1);
}

.formation-card h3 {
    font-weight: 300;
    margin-bottom: 25px;
    color: #f0f0f0;
    font-size: 22px;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Informations de la formation */
.formation-info {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.formation-info div {
    color: #b3b3b3;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.formation-info div:hover {
    color: #f0f0f0;
}

/* Styles des émojis/icônes */
.formation-info div::before {
    font-size: 16px;
    filter: grayscale(20%);
}

/* Prix avec style amélioré */
.formation-info div:last-child {
    font-size: 18px;
    font-weight: 400;
    color: #f0f0f0;
    margin-top: 5px;
}

/* Bouton ajouter au panier */
.btn-add-cart {
    width: 100%;
    background: rgba(181, 0, 21, 0.1);
    color: #B50015;
    border: 1px solid rgba(181, 0, 21, 0.3);
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(181, 0, 21, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-add-cart:hover::after {
    width: 300px;
    height: 300px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 0, 21, 0.3);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart .btn-text {
    position: relative;
    z-index: 1;
}

/* État vide */
.formation-container > div[style*="text-align: center"] {
    padding: 60px 20px;
    background: rgba(30, 30, 30, 0.3);
    border-radius: 12px;
    border: 1px dashed rgba(181, 0, 21, 0.2);
}

.formation-container > div[style*="text-align: center"] p {
    color: #999;
    font-size: 16px;
    margin: 10px 0;
}

.formation-container > div[style*="text-align: center"] p:first-child {
    font-size: 18px;
    color: #f0f0f0;
    font-weight: 300;
}

/* Compteur panier flottant */
#cart-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(145deg, rgba(18,18,18,0.95), rgba(10,10,10,0.95));
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid rgba(181, 0, 21, 0.2);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#cart-count {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

#cart-counter a {
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cart-counter a:hover {
    background: linear-gradient(135deg, #ff1a1a, #B50015);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(181, 0, 21, 0.4);
}

/* Notification */
#cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #B50015, #8B0010);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    z-index: 2000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(181, 0, 21, 0.5);
}

#cart-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========== PANIER.CSS ========== */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-container h1 {
    font-weight: 200;
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.cart-items {
    background: linear-gradient(145deg, rgba(26,26,26,0.6), rgba(18,18,18,0.8));
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(181, 0, 21, 0.08);
    backdrop-filter: blur(10px);
}

.cart-items h2 {
    font-weight: 300;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(181, 0, 21, 0.15);
    font-size: 20px;
}

.cart-item {
    background: rgba(42, 42, 42, 0.3);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.cart-item:hover {
    background: rgba(42, 42, 42, 0.5);
    border-color: rgba(181, 0, 21, 0.2);
    transform: translateX(5px);
}

.formation-info h4 {
    margin: 0 0 8px 0;
    color: #f0f0f0;
    font-weight: 400;
    font-size: 18px;
}

.formation-date {
    color: #999;
    font-size: 14px;
    opacity: 0.8;
}

.formation-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.formation-price {
    font-weight: 300;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.5px;
}

.btn-remove-cart {
    background: transparent;
    color: #999;
    border: 1px solid rgba(153, 153, 153, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 400;
}

.btn-remove-cart:hover {
    background: rgba(181, 0, 21, 0.1);
    color: #B50015;
    border-color: rgba(181, 0, 21, 0.3);
}

.cart-summary {
    background: linear-gradient(145deg, rgba(18,18,18,0.95), rgba(10,10,10,0.95));
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(181, 0, 21, 0.2);
    backdrop-filter: blur(10px);
}

.cart-summary h3 {
    font-weight: 300;
    margin-bottom: 25px;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    color: #999;
    font-size: 14px;
}

.summary-line span:last-child {
    color: #f0f0f0;
    font-weight: 400;
}

.summary-line.total {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    border-top: 1px solid rgba(181, 0, 21, 0.2);
    border-bottom: none;
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.summary-line.total span:first-child {
    color: #999;
    font-size: 16px;
}

.discount-badge {
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 10px;
    font-weight: 500;
}

.checkout-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(51, 51, 51, 0.5);
    background: rgba(42, 42, 42, 0.5);
    color: #f0f0f0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(181, 0, 21, 0.5);
    background: rgba(42, 42, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(181, 0, 21, 0.1);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.payment-option:hover {
    background: rgba(42, 42, 42, 0.5);
    border-color: rgba(181, 0, 21, 0.2);
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    width: auto;
    accent-color: #B50015;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-checkout:hover::before {
    width: 400px;
    height: 400px;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #ff1a1a, #B50015);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(181, 0, 21, 0.4);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-cart h2 {
    font-weight: 300;
    margin-bottom: 15px;
    color: #f0f0f0;
    font-size: 28px;
}

.empty-cart p {
    font-size: 16px;
    margin-bottom: 30px;
}

.empty-cart a {
    display: inline-block;
    color: #B50015;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid rgba(181, 0, 21, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.empty-cart a:hover {
    background: rgba(181, 0, 21, 0.1);
    border-color: rgba(181, 0, 21, 0.5);
    transform: translateY(-2px);
}

/* ========== AMÉLIORATIONS GLOBALES ========== */
* {
    box-sizing: border-box;
}

body {
    background: #121212;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #f0f0f0;
    line-height: 1.6;
}

main {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(181, 0, 21, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(181, 0, 21, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .formations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-summary {
        position: relative;
    }
}

@media (max-width: 768px) {
    .formation-container {
        padding: 30px 20px;
    }
    
    .formation-container h1 {
        font-size: 32px;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    #cart-counter {
        right: 15px;
        top: auto;
        bottom: 20px;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 15px;
    }
    
    #cart-notification {
        bottom: 100px;
        right: 15px;
        left: 15px;
    }
    
    .cart-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .formation-container h1 {
        font-size: 28px;
    }
    
    .formation-card {
        padding: 20px;
    }
    
    .btn-add-cart {
        font-size: 12px;
        padding: 12px 20px;
    }
}

@media (orientation: portrait) {
    html{
        font-size:62.5% !important;
    }
    html body{
        font-size:1.6rem !important;
    }
    .formations-grid{
        display: flex !important;
        flex-direction: column !important;
    }
    .formation-container{
        margin-left:auto;
        margin-right:auto;
        width:100% !important;
    }
}