/* --- VARIABLES (Rappel) --- */
:root {
    --primary-color: #3D4C53; /* Dark Slate */
    --secondary-color: #95a7b6; /* Blue Grey */
    --accent-color: #D64545; /* Faded Red */
    --white: #ffffff;
    --off-white: #f6f6f6;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- GRID LAYOUT --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    align-items: center; /* Centre verticalement */
}

/* --- CARTES STYLE "SCRAPBOOK" --- */
.pricing-card {
    background: var(--white);
    padding: 0; /* Le padding est géré dans card-content */
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    /* Petit effet de rotation aléatoire pour le réalisme */
    transform: rotate(-1deg);
}

.pricing-card:nth-child(2) {
    transform: rotate(1deg); /* L'autre carte penche de l'autre côté */
}

.pricing-card:hover {
    transform: scale(1.02) rotate(0deg); /* Se redresse au survol */
    z-index: 10;
}

.card-content {
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* EFFET SCOTCH (CSS PUR) */
.tape-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0.8;
    z-index: 5;
}

/* Carte "Featured" (Recommandé) */
.pricing-card.featured .card-content {
    border: 2px solid var(--accent-color);
    background: linear-gradient(to bottom, #fff, #fffafa);
}

/* Tags (Labels) */
.tag-recommendation {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.tag-secondary {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Typographie des Prix */
.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 20px 0;
    color: var(--primary-color);
}

.price-display .currency {
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 5px;
}

.price-display .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.featured .price-display .amount {
    color: var(--accent-color); /* Rouge pour le prix principal */
}

.price-display .unit {
    font-size: 1rem;
    color: #888;
    margin-left: 5px;
}

/* Listes */
.benefits-list {
    list-style: none;
    text-align: left;
    margin: 30px 0;
    padding: 0;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #555;
}

.benefits-list li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- NOTE LEGALE (POST-IT) --- */
.legal-postit {
    background-color: #fff9c4; /* Jaune pâle post-it */
    padding: 25px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    transform: rotate(1deg);
    font-family: 'Poppins', sans-serif; /* Idéalement une police manuscrite ici */
}

.legal-postit .pin {
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.legal-postit h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.legal-postit p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* --- VISUAL BAR (TRANSPARENCE) --- */
.breakdown-container {
    max-width: 800px;
    margin: 0 auto;
}

.breakdown-bar {
    display: flex;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: width 1s ease-in-out;
}

.segment.student {
    background-color: var(--secondary-color);
    border-right: 2px solid white;
}

.segment.lkdm {
    background-color: var(--accent-color);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    ); /* Rayures subtiles */
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--off-white);
    border-radius: 10px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-box.red {
    background-color: var(--accent-color);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        transform: rotate(0deg) !important; /* On annule les rotations sur mobile */
        margin-bottom: 20px;
    }
    .breakdown-bar {
        height: auto;
        flex-direction: column;
    }
    .segment {
        width: 100% !important;
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid white;
    }
}