/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-blue: #0071e3;
    --primary-hover: #0077ed;
    --dark-text: #1d1d1f;
    --grey-sub: #86868b;
    --bg-soft: #f5f5f7;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --border-light: rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR FLOATING ISLAND
   ========================================================================== */
.header-floating-island {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.island-container {
    pointer-events: auto;
    width: 92%;
    max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.site-logo img {
    max-height: 38px;
    width: auto;
    display: block;
}

.nav-main ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-main a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-main a:hover {
    opacity: 0.6;
}

.btn-premium-cta {
    background: var(--primary-blue);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-premium-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

/* ==========================================================================
   LAYOUT GÉNÉRAL (BASE)
   ========================================================================== */
.premium-formation-layout {
    background: #ffffff;
    color: var(--dark-text);
    padding-top: 100px !important;
}

.formation-hero-header {
    padding: 80px 0;
    background: var(--bg-soft);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 40px;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.category-badge .dot {
    width: 6px; height: 6px; background: var(--primary-blue); border-radius: 50%;
}

.premium-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--dark-text);
}

.premium-excerpt {
    font-size: 1.2rem;
    color: var(--grey-sub);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-actions { display: flex; align-items: center; gap: 24px; }

.btn-main-premium {
    background: var(--primary-blue);
    color: white;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-main-premium:hover { transform: scale(1.02); }

.price-tag { font-size: 1.4rem; font-weight: 700; color: var(--dark-text); }
.price-tag small { font-size: 0.8rem; font-weight: 400; color: var(--grey-sub); }

.hero-visual { position: relative; }
.image-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.image-wrapper img { width: 100%; height: auto; display: block; }
.f-item { margin-bottom: 5px; }
.f-item:last-child { margin-bottom: 0; }

.body-container {
    max-width: 1200px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 80px;
    padding: 0 40px;
}

.content-nav { position: sticky; top: 120px; height: fit-content; }
.content-nav ul { list-style: none; padding: 0; margin: 0; }
.content-nav li { margin-bottom: 16px; }
.content-nav a { text-decoration: none; color: var(--grey-sub); font-weight: 500; font-size: 15px; transition: 0.2s; }
.content-nav a.active, .content-nav a:hover { color: var(--dark-text); padding-left: 12px; box-shadow: inset 2px 0 0 var(--primary-blue); }

.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.01em; }
.content-section { margin-bottom: 80px; }

.p-accordion-item { border-bottom: 1px solid var(--border-light); }
.p-accordion-trigger { width: 100%; padding: 24px 0; background: none; border: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.4rem; font-weight: 600; cursor: pointer; text-align: left; color: var(--dark-text); }
.p-accordion-panel { display: none; padding-bottom: 24px; color: #48484a; font-size: 1.1rem; line-height: 1.6; }
.is-open .p-accordion-panel { display: block; }
.is-open svg { transform: rotate(180deg); transition: 0.3s; }
.info-box-premium { background: var(--bg-soft); padding: 40px; border-radius: 24px; }

/* ==========================================================================
   NEWS LAYOUT (Mag)
   ========================================================================== */
.news-layout { padding-top: 100px; background: #ffffff; }
.news-hero { padding: 80px 0 60px 0; text-align: left; }
.badge-tech { background: #f5f5f7; color: var(--primary-blue); padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 20px; display: inline-block; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 80px; }
.news-card { background: #ffffff; border-radius: 24px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #f1f5f9; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-image { height: 240px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .card-image img { transform: scale(1.05); }
.card-content { padding: 30px; }
.card-date { font-size: 13px; color: var(--grey-sub); font-weight: 500; display: block; margin-bottom: 12px; }
.card-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 15px; }
.card-excerpt { color: var(--grey-sub); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.read-more { color: var(--primary-blue); font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.news-card.featured-article { grid-column: span 3; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; }
.featured-article .card-image { height: 450px; }
.featured-article .card-title { font-size: 2.5rem; }

/* ==========================================================================
   CATALOGUE MINI FORMATIONS (Grille)
   ========================================================================== */
.mc-catalogue-wrapper { max-width: 1200px; margin: 60px auto; padding: 0 20px; font-family: sans-serif; }
.mc-catalogue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.mc-card { background: #ffffff; border-radius: 24px; border: 1px solid #e2e8f0; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.mc-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.mc-card-link { text-decoration: none; color: inherit; flex-grow: 1; display: flex; flex-direction: column; }
.mc-card-image { position: relative; height: 220px; overflow: hidden; background: #f1f5f9; }
.mc-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mc-card:hover .mc-card-image img { transform: scale(1.05); }
.mc-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); color: #64748b; font-weight: 700; font-size: 1.2rem; }
.mc-card-price { position: absolute; bottom: 15px; right: 15px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 50px; font-weight: 800; color: #0071e3; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.mc-card-content { padding: 25px; flex-grow: 1; }
.mc-card-meta { font-size: 0.85rem; color: #64748b; font-weight: 600; margin-bottom: 10px; }
.mc-card-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 0 0 10px 0; color: #1e293b; }
.mc-card-excerpt { font-size: 0.95rem; color: #64748b; line-height: 1.5; margin: 0; }
.mc-card-footer { padding: 0 25px 25px 25px; }
.mc-card-footer .btn-australe-add-cart { width: 100%; background: #f8fafc; color: #0071e3; padding: 14px; border-radius: 16px; border: 1px solid #e2e8f0; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; }
.mc-card-footer .btn-australe-add-cart:hover { background: #0071e3; color: white; border-color: #0071e3; }

/* ==========================================================================
   PAGE PRODUIT (Single Mini Course)
   ========================================================================== */
.mc-rating-block { display: flex; align-items: center; gap: 10px; margin-top: 15px; font-family: sans-serif; }
.mc-stars { color: #f59e0b; font-size: 1.2rem; letter-spacing: 2px; }
.mc-rating-number { font-weight: 700; color: #1e293b; }
.mc-review-count { color: #64748b; font-size: 0.9rem; }

/* --- SECTION OBJECTIFS (Style Liste Épurée) --- */
.mc-objectives-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px 40px; 
    margin-bottom: 40px; 
    font-family: sans-serif; 
}
.mc-objective-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    background: transparent; 
    padding: 8px 0; 
    font-weight: 400; 
    color: #334155; 
    line-height: 1.6; 
    border-bottom: none;
}
.mc-objective-item svg { 
    flex-shrink: 0; 
    margin-top: 3px; 
}

/* Accordéon du Programme */
.mc-curriculum-accordion { border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; font-family: sans-serif; }
.mc-accordion-item { border-bottom: 1px solid #e2e8f0; }
.mc-accordion-item:last-child { border-bottom: none; }
.mc-accordion-trigger { width: 100%; background: #ffffff; border: none; padding: 25px; display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 600; color: #1e293b; cursor: pointer; transition: 0.3s; }
.mc-accordion-trigger:hover { background: #f8fafc; }
.mc-accordion-trigger svg { transition: transform 0.3s; color: #64748b; }
.is-open .mc-accordion-trigger svg { transform: rotate(180deg); }
.mc-accordion-panel { display: none; background: #f8fafc; padding: 0 25px 25px 25px; }
.is-open .mc-accordion-panel { display: block; }
.mc-accordion-panel ul { list-style: none; padding: 0; margin: 0; }
.mc-accordion-panel li { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #e2e8f0; color: #475569; }
.mc-accordion-panel li:last-child { border-bottom: none; padding-bottom: 0; }

/* Liste Caractéristiques Sidebar */
.mc-features-list { list-style: none; padding: 0; margin: 0; font-family: sans-serif; }
.mc-features-list li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #f1f5f9; color: #334155; line-height: 1.5; font-size: 0.95rem; }
.mc-features-list li:last-child { border-bottom: none; padding-bottom: 0; }
.mc-features-list .icon { font-size: 1.2rem; }
.prereq-box { background: #fffbeb; padding: 15px !important; border-radius: 12px; margin-top: 10px; color: #b45309 !important; border: 1px solid #fef3c7 !important; }


/* ==========================================================================
   FLOATING CART (PANIER LATÉRAL)
   ========================================================================== */
#australe-cart-sidebar, 
#australe-cart-sidebar * {
    box-sizing: border-box;
}

#australe-cart-trigger { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #1e293b; 
    color: white; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    z-index: 99998; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

#australe-cart-trigger:hover { transform: scale(1.1); }

.cart-badge { 
    position: absolute; 
    top: -2px; 
    right: -2px; 
    background: #ef4444; 
    color: white; 
    font-size: 11px; 
    font-weight: 700; 
    width: 22px; 
    height: 22px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: 0.3s; 
    border: 2px solid #1e293b;
}

#australe-cart-trigger.has-items .cart-badge { opacity: 1; }

#australe-cart-sidebar { 
    position: fixed; 
    top: 0; 
    right: -450px; 
    width: 100%; 
    max-width: 400px; 
    height: 100vh; 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(20px); 
    z-index: 99999; 
    box-shadow: -10px 0 50px rgba(0,0,0,0.15); 
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; 
    flex-direction: column; 
}

#australe-cart-sidebar.active { right: 0; }

.cart-header { 
    /* On augmente drastiquement l'espace en haut (40px au lieu de 24px) */
    padding: 40px 30px 20px 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid rgba(0,0,0,0.06); 
}

.cart-header h3 { 
    margin: 0; 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #1e293b; 
}

#close-cart { 
    background: #f1f5f9; 
    border: none; 
    width: 40px; /* Un peu plus grand */
    height: 40px; /* Un peu plus grand */
    border-radius: 50%; 
    font-size: 16px; 
    cursor: pointer; 
    color: #64748b; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.2s;
}

#close-cart:hover { background: #e2e8f0; color: #1e293b; }

.cart-items-container { 
    padding: 20px; 
    overflow-y: auto; 
    flex-grow: 1; 
    scrollbar-width: thin;
}

.cart-item { 
    background: white; 
    padding: 16px; 
    border-radius: 16px; 
    border: 1px solid #f1f5f9; 
    margin-bottom: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    gap: 15px; 
}

.cart-item-info {
    flex: 1;
    min-width: 0; 
}

.cart-item-title { 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: #1e293b; 
    line-height: 1.4;
    margin-bottom: 4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price { 
    color: #0071e3; 
    font-weight: 700; 
    font-size: 0.95rem;
    white-space: nowrap; 
}

.cart-total-box { 
    padding: 24px; 
    background: #ffffff; 
    border-top: 1px solid #f1f5f9; 
    box-shadow: 0 -10px 20px rgba(0,0,0,0.02);
}

.cart-total-row { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.15rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    color: #1e293b; 
}

.btn-checkout { 
    display: block; 
    width: 100%; 
    background: #0071e3; 
    color: white; 
    text-align: center; 
    padding: 16px; 
    border-radius: 14px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem; 
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2); 
    transition: 0.3s;
}

.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3); }

.btn-clear { 
    display: block; 
    width: 100%; 
    text-align: center; 
    padding: 12px; 
    color: #94a3b8; 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-top: 8px; 
    cursor: pointer; 
    background: none; 
    border: none;
    transition: 0.2s;
}

.btn-clear:hover { color: #ef4444; }

#australe-cart-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(4px); 
    z-index: 99998; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s; 
}

#australe-cart-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

/* ==========================================================================
   RESPONSIVE GLOBALE (Tablettes et Mobiles)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr !important; text-align: left; gap: 40px; }
    .hero-actions { justify-content: flex-start; }
    .body-container { grid-template-columns: 1fr; gap: 40px; }
    .content-nav { display: none; }
    .island-container { width: 95%; padding: 8px 16px; }
    .nav-main { display: none; } 
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card.featured-article { grid-template-columns: 1fr; grid-column: span 2; }
    .mc-objectives-grid { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card.featured-article { grid-column: span 1; }
}