:root {
    /* Couleurs demandées */
    --primary: #0d4072;
    --secondary: #0063a1;
    --accent: #00a8ff;
    --bg-light: #f4f7fa;
    --text-main: #2d3436;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(13, 64, 114, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0; /* Assure qu'aucune marge par défaut ne traîne */
}

a {
	color: var(--secondary);
	font-size: 0.9rem;
}

h2, h3, h4, p, span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.container { display: flex; justify-content: space-between; align-items: center; }

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
}

/* --- STYLE DU LOGO IMAGE --- */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px; /* Ajustez la hauteur selon le design de votre logo */
    width: auto;  /* Conserve les proportions */
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Petit effet au survol */
}

/* On peut supprimer ou commenter l'ancien style .logo-text si vous ne l'utilisez plus */

.highlight { color: var(--secondary); }

.nav-links { display: flex; list-style: none; align-items: center; gap: 30px; }

/* --- STYLE DU PANIER DANS LE HEADER --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon {
    font-size: 1.3rem;
    color: var(--primary); /* Utilise votre bleu #0d4072 */
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.cart-icon:hover {
    color: var(--secondary); /* Passe au bleu #0063a1 */
}

/* Badge de notification (nombre d'items) */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #EF4444; /* Rouge alerte */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50%;
    border: 2px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
}

/* Ajustement du bouton connexion pour l'alignement */
.cta-nav {
    margin-left: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links i { font-size: 1.1rem; }

/* Hero Section */
.hero { 
	padding: 80px 0; background: radial-gradient(circle at top right, #eef5ff, transparent); 
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }

/* --- CONFIGURATION VIDEO HERO --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 80vh; /* Ajustez selon vos besoins */
    display: flex;
    align-items: center;
    background: #0d4072; /* Couleur de secours pendant le chargement */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit l'espace sans déformer */
}

/* Voile pour la lisibilité du texte */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 64, 114, 0.85) 0%, rgba(0, 99, 161, 0.4) 100%);
    z-index: 1;
}

/* On s'assure que le contenu passe au-dessus de la vidéo */
.hero-grid {
    position: relative;
    z-index: 2;
}

/* Amélioration du texte sur vidéo */
.hero-content h1 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
}


.badge {
    background: rgba(0, 99, 161, 0.7);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; line-height: 1.1; margin: 20px 0; color: var(--primary); }

.text-gradient {
    background: linear-gradient(90deg, #0286d8, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btns { display: flex; gap: 15px; margin-top: 30px; }


.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 13px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-2 {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 13px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

/* --- BOUTONS UNIFIÉS --- */
.btn-primary {
    background: var(--secondary); /* Bleu Pharmaflow */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
	text-decoration: none;
    font-weight: 600;
    /* cursor: pointer; */
    /* display: flex; */
    /* align-items: center; */
    /* gap: 8px; */
    transition: 0.3s;
}

/* Bouton "Voir tout l'historique" (Capture image_4d6281) */
.btn-text-link {
    background: none;
    border: none;
    color: #64748B;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.btn-text-link:hover {
    color: #0063A1;
    text-decoration: underline;
}

/* Icônes d'action (Téléchargement/Oeil dans la modal) */
.btn-icon {
    background: #F1F5F9;
    border: none;
    color: #64748B;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    background: #E2E8F0;
    color: #0063A1;
}

/* --- BOUTON METTRE À JOUR (btn-secondary) --- */
.btn-secondary {
    background: #F1F5F9;
    color: #0d4072; /* --primary */
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* margin-top: 10px; */
}

.btn-secondary:hover {
    background: #E2E8F0;
    color: #0063a1; /* --secondary */
    transform: translateY(-2px);
}


/* --- STYLE DU PANIER MOBILE --- */
.mobile-tab-bar {
    background: var(--white);
}

.mobile-tab-bar, 
.mobile-tab-bar-2 {
    display: none;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #E2E8F0;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.mobile-tab-bar .tab-item,
.mobile-tab-bar-2 .tab-item {
    color: #64748B;
	text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 4px;
    flex: 1;
}

.mobile-tab-bar .tab-item.active {
    color: var(--primary); /* #0d4072 */
}

/* --- STYLE DU PANIER MOBILE DANS LE DASH --- */
.mobile-tab-bar-2 {
    background: var(--primary);
}

.mobile-tab-bar-2 .tab-item.active {
    color: var(--white); /* #0d4072 */
}

/* Conteneur pour superposer le badge */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper i {
    font-size: 1.2rem;
}

/* Badge spécifique au mobile */
.cart-badge-mobile {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.tab-item i { font-size: 1.4rem; margin-bottom: 4px; }

.tab-item.active { color: var(--secondary); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .hero-mockup { display: none; }
    .mobile-tab-bar, .mobile-tab-bar-2 { display: flex; }
    h1 { font-size: 2.5rem; }
    .hero { text-align: center; padding: 40px 0; }
    .hero-btns { justify-content: center; flex-direction: column; }
}

/* Section Catalogue Styles */
.catalogue-section { padding: 80px 0; background-color: var(--white); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

/* Modification de la grille pour une hiérarchie 2/3 */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Grille de 6 colonnes pour plus de flexibilité */
    gap: 25px;
}

/* Les deux premières cartes occupent 3 colonnes chacune (soit 50% de la ligne) */
.cat-card:nth-child(1),
.cat-card:nth-child(2) {
    grid-column: span 3;
}

/* Les trois cartes suivantes occupent 2 colonnes chacune (soit 33% de la ligne) */
.cat-card:nth-child(3),
.cat-card:nth-child(4),
.cat-card:nth-child(5) {
    grid-column: span 2;
}

/* Ajustement pour le Responsive : On repasse en colonne unique sur Mobile */
@media (max-width: 992px) {
    .catalogue-grid {
        display: flex;
        flex-direction: column;
    }
    
    .cat-card:nth-child(1),
    .cat-card:nth-child(2),
    .cat-card:nth-child(3),
    .cat-card:nth-child(4),
    .cat-card:nth-child(5) {
        grid-column: auto;
    }
}

/* Style des Cartes */
.cat-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.15s;
    border: 1px solid rgba(13, 64, 114, 0.07);
    display: flex;
    flex-direction: column;
}

.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--cat-glow, transparent);
    z-index: 0;
}

.cat-card > * { position: relative; z-index: 1; }

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.cat-card.featured {
    border: 2px solid var(--secondary);
    background: var(--white);
}

/* Couleur du dégradé par catégorie — définie inline sur la card */
.cat-card[data-color="blue"]  { --cat-glow: radial-gradient(ellipse at 115% 115%, rgba(24,95,165,0.28) 0%, rgba(24,95,165,0.07) 40%, transparent 70%); }
.cat-card[data-color="green"] { --cat-glow: radial-gradient(ellipse at 115% 115%, rgba(59,109,17,0.25) 0%, rgba(59,109,17,0.07) 40%, transparent 70%); }
.cat-card[data-color="amber"] { --cat-glow: radial-gradient(ellipse at 115% 115%, rgba(133,79,11,0.25) 0%, rgba(133,79,11,0.07) 40%, transparent 70%); }
.cat-card[data-color="teal"]  { --cat-glow: radial-gradient(ellipse at 115% 115%, rgba(15,110,86,0.25) 0%, rgba(15,110,86,0.07) 40%, transparent 70%); }
.cat-card[data-color="coral"] { --cat-glow: radial-gradient(ellipse at 115% 115%, rgba(153,60,29,0.25) 0%, rgba(153,60,29,0.07) 40%, transparent 70%); }

.cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.cat-icon i {
    font-size: 1.6rem;
    line-height: 1;
    display: block;
}

.cat-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }
.cat-card p { font-size: 0.92rem; color: #636e72; margin-bottom: 20px; flex-grow: 1; line-height: 1.6; }

.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.cat-tag {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid rgba(13,64,114,0.1);
    color: #636e72;
    background: rgba(255,255,255,0.7);
}

.cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(13,64,114,0.08);
    padding-top: 18px;
    margin-top: auto;
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.price-note {
    font-size: 0.72rem;
    color: #636e72;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-discover {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.15s;
}

.btn-discover:hover { gap: 8px; }

.cat-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 14px;
    align-self: flex-start;
}

.cat-badge--popular {
    background: #E6F1FB;
    color: #0C447C;
    border: 1px solid #B5D4F4;
}

.cat-badge--soon {
    background: #EAF3DE;
    color: #27500A;
    border: 1px solid #C0DD97;
}

.bundle-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #00b894;
    color: white;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 2;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .catalogue-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.8rem; }
}


/* Product Detail Styles */
.product-detail { padding: 40px 0 80px; }

.breadcrumb { font-size: 0.85rem; color: #636e72; margin-bottom: 30px; }
.breadcrumb span { color: var(--primary); font-weight: 600; }

.product-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.badge-category {
    display: inline-block;
    background: #e0eaf3;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.product-info h1 { font-size: 2.8rem; margin-bottom: 20px; }
.product-description { font-size: 1.1rem; color: #57606f; margin-bottom: 40px; }

/* Liste de contenu */
.content-list h3 { color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.content-list ul { list-style: none; }
.content-list li { 
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; 
    padding: 15px; background: var(--white); border-radius: 12px;
}
.content-list li i { color: #00b894; }

/* Carte d'Action (Sticky) */
.product-action-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.price-tag { margin-bottom: 30px; }
.price-tag .label { display: block; font-size: 0.9rem; color: #636e72; }
.price-tag .amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); }

.benefit-list { list-style: none; margin-bottom: 30px; }
.benefit-list li { font-size: 0.9rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.benefit-list i { color: var(--secondary); }

.full-width { width: 100%; border: none; cursor: pointer; text-align: center; }

.secure-text { text-align: center; font-size: 0.8rem; color: #b2bec3; margin-top: 15px; }

/* Preview Chapitres */
.chapters-preview { margin-top: 80px; }
.chapters-preview h2 { margin-bottom: 30px; color: var(--primary); }

.chapter-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.chapter-item:hover { border-color: var(--secondary); }
.chapter-num { font-weight: 800; color: var(--secondary); font-size: 1.2rem; opacity: 0.5; }
.chapter-text h4 { color: var(--primary); }
.chapter-text p { font-size: 0.85rem; color: #636e72; }
.chapter-item i { margin-left: auto; color: #b2bec3; }

/* Responsive Detail */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-action-card { position: relative; top: 0; }
    .product-info h1 { font-size: 2rem; }
}



/* Pages Publiques Additionnelles */
.page-content { padding: 60px 20px; }
.page-header { text-align: center; margin-bottom: 40px; }

/* Filtres Catalogue */
.catalogue-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; overflow-x: auto; padding-bottom: 10px; }
.filter-btn { padding: 10px 20px; border-radius: 50px; border: 1px solid #ddd; background: white; cursor: pointer; white-space: nowrap; }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Auth Pages (Connexion/Inscription) */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; background: var(--bg-light); }
.auth-card { background: white; padding: 40px; border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-width: 400px; text-align: center; }
.auth-card .btn-primary{ margin: 10px 0; }
.auth-header i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; display: block; }
.form-group { text-align: left; margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; }

/* Panier */
.cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 40px; }
.cart-item { display: flex; align-items: center; gap: 20px; background: white; padding: 20px; border-radius: 15px; margin-bottom: 15px; }
.cart-item i { font-size: 1.5rem; color: var(--secondary); }
.item-info { flex-grow: 1; }
.cart-summary { background: white; padding: 30px; border-radius: 20px; box-shadow: var(--shadow); height: fit-content; }
.cart-summary .btn-primary{ margin: 10px 0; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 15px; }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; border-top: 1px solid #eee; margin-top: 15px; color: var(--primary); }

@media (max-width: 768px) {
    .cart-grid { grid-template-columns: 1fr; }
}

/* Grille de sous-catégories */
.sub-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pack-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    position: relative;
    overflow: visible;
}

.pack-card.featured { border: 2px solid var(--secondary); transform: scale(1.05); }

/* Dégradé diagonal bleu — même style que les cat-cards */
.pack-glow-layer {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.pack-glow-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 115% 115%, rgba(24,95,165,0.28) 0%, rgba(24,95,165,0.07) 40%, transparent 70%);
}
.pack-card > *:not(.pack-glow-layer) { position: relative; z-index: 1; }

.pack-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0;
}

.pack-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.cat-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.3s ease, 
                box-shadow 0.3s ease;
    /* On force le display flex car c'était dans notre structure initiale */
    display: flex; 
    flex-direction: column;
}

/* On s'assure que la grille ne saute pas lors du filtrage */
.catalogue-grid {
    min-height: 600px; /* Évite que le footer remonte brusquement */
    align-items: start;
}

/* Configurateur de Robots */
.selection-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.robots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.robot-item input { display: none; }

.robot-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.robot-item input:checked + .robot-box {
    border-color: var(--secondary);
    background: rgba(0, 99, 161, 0.05);
}

.robot-box i { font-size: 2rem; color: #b2bec3; }
.robot-item input:checked + .robot-box i { color: var(--secondary); }

.unit-price { font-size: 0.8rem; font-weight: 700; color: #636e72; }

/* Sommaire latéral */
.selection-summary {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.total-box {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
}

.bundle-offer {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.selection-summary .btn-primary{
	margin: 10px 0;
}

@media (max-width: 992px) {
    .sub-cat-grid, .selection-container { grid-template-columns: 1fr; }
    .pack-card.featured { transform: scale(1); }
}


.selected-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.discount-row {
    color: #00ff9d; /* Un vert fluo pour marquer l'économie */
    font-weight: 700;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 5px;
    text-transform: uppercase;
}

.empty-msg {
    font-style: italic;
    opacity: 0.6;
    font-size: 0.85rem;
}

.robot-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.robot-item {
    margin-bottom: 0; /* On gère l'espacement via le wrapper */
}

.view-detail-link {
    text-align: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    padding: 8px;
    border-radius: 8px;
    background: rgba(0, 99, 161, 0.05);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.view-detail-link:hover {
    background: var(--secondary);
    color: white;
}

.view-detail-link i {
    font-size: 0.9rem;
}

/* On s'assure que la box du robot ne prend pas toute la place si on ajoute le lien en dessous */
.robot-box {
    min-height: 160px;
}


/* Amélioration des formulaires d'inscription */
.wide-card { max-width: 600px !important; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; text-align: left; }
.full-width { grid-column: span 2; }

.checkbox-group { margin-top: 10px; font-size: 0.85rem; color: #636e72; }
.checkbox-container { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }

.form-check-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0063a1;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-group label {
    font-size: 0.8rem;
    color: #1E293B;
    line-height: 1.5;
    cursor: pointer;
}

/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; margin-top: 40px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { 
    width: 50px; height: 50px; background: white; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--secondary); box-shadow: var(--shadow); font-size: 1.2rem;
}
.info-item h4 { color: var(--primary); margin-bottom: 5px; }
.contact-form-card { background: white; padding: 40px; border-radius: 24px; box-shadow: var(--shadow); }

/* Elements de formulaire */
textarea, .form-select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
}

@media (max-width: 768px) {
    .grid-form, .contact-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
}



/* Footer Styles */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 0 0; /* Pas de padding bas car la barre de copyright le fera */
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand .logo-text { color: var(--white); margin-bottom: 20px; display: block; }
.footer-brand .highlight { color: #00a8ff; }
.footer-brand p { color: #a5b1c2; font-size: 0.9rem; max-width: 250px; line-height: 1.5; }

.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials a { 
    color: var(--white); font-size: 1.2rem; opacity: 0.7; transition: 0.3s; 
}
.footer-socials a:hover { opacity: 1; color: var(--secondary); }

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    text-decoration: none;
    color: #a5b1c2;
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--white); padding-left: 5px; }

/* Copyright Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8492a6;
    font-size: 0.8rem;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p { margin: 0 auto 20px; }
    .footer-socials { justify-content: center; }
    .bottom-flex { flex-direction: column; gap: 15px; text-align: center; }
}

/* 2. On n'applique l'espace de sécurité QUE sur mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Espace réservé pour la barre d'onglets mobile */
    }
}

/* 3. Optionnel : S'assurer que le footer occupe tout l'espace restant */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 0 0;
    margin-top: 60px;
    width: 100%;
}









/* Layout Dashboard */
.dashboard-body {
    display: flex;
    background-color: #f0f4f8;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0d4072 0%, #1a5fa8 60%, #0d4072 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 24px rgba(13,64,114,.18);
}

.sidebar-header { padding: 0 30px 40px; }
.sidebar-header .logo-text { color: white; font-size: 1.2rem; }

.sidebar-nav { 
    flex-grow: 1; 
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    /* Scrollbar sur toute la sidebar via padding-right 0 */
    scrollbar-gutter: stable;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,.1);
    color: white;
}
.nav-item.active {
    background: rgba(255,255,255,.15);
    color: white;
    font-weight: 700;
    border-left: 3px solid rgba(255,255,255,.7);
    padding-left: 27px;
}

.sidebar-footer { padding: 20px 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { 
    width: 40px; height: 40px; background: var(--secondary); 
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.user-info .name { font-size: 0.9rem; font-weight: 600; }
.user-info .role { font-size: 0.75rem; opacity: 0.6; }

/* Accès Limité - Couronne */
.access-limited-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #00a8ff;
}

.access-limited-row i {
    font-size: 0.9rem;
}

.access-limited-row span:first-child {
    font-size: 0.9rem;
}

.access-limited-row .access-limited-label {
    animation: blinkingText 1.5s infinite;
}

.access-limited-row.is-pulsing .access-limited-label {
    animation: blinkingText 1s infinite;
}

@keyframes blinkingText {
    0%, 100% {
        opacity: 1;
        color: #00a8ff;
    }
    50% {
        opacity: 0.4;
        color: #0d4072;
    }
}

/* Scrollbar sidebar — fine, sur toute la hauteur */
.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* Firefox */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}


/* Accès limité */

.free, .free_ {
    color: #00a8ff;
}

/* Accès semi-total */
.pro, .pro_ {
    color: #10b981;
}

/* Accès total */
.pro1, .pro1_ {
    color: #c5a059;
}

/* Animation de pulsation douce pour le mode PRO */
.free {
    animation: crownPulse 2s infinite;
}

@keyframes crownPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Main Content */
.dashboard-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 30px;
}

/* --- HEADER UNIFIÉ (DESKTOP & MOBILE) --- */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Important pour le Desktop */
    gap: 20px;
    padding: 15px 30px;
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    min-height: 70px;
}

/* Le bouton Burger : toujours prêt à gauche */
.mobile-nav-trigger {
    display: none; /* Masqué sur PC */
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

/* Le Fil d'Ariane : il prend l'espace central */
.breadcrumb-simple {
    flex: 1; /* C'est lui qui pousse les actions vers la droite */
    font-size: 0.85rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Les actions (Cloche, Profil) à droite */
/* Actions (Cloche, Profil, Boutique) */
.dash-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* --- AJUSTEMENTS RESPONSIVE (CAPTURE 1 & 2) --- */
@media (max-width: 1024px) {
    .sidebar { display: none; }
    .dashboard-content {
        margin-left: 0;
        padding: 15px;         /* Réduit le padding desktop de 30px → 15px */
        overflow-x: hidden;    /* Filet de sécurité contre tout débordement */
        box-sizing: border-box;
    }
    
    .dash-header {
        padding: 10px 15px;
        gap: 10px;
    }

    .mobile-nav-trigger {
        display: block !important;
        font-size: 1.4rem;
        color: var(--primary);
        background: none;
        border: none;
        order: 1;
    }

    .breadcrumb-simple {
        order: 2;
        flex: 1;
        font-size: 0.8rem;
    }

    .dash-actions {
        order: 3;
    }

    /* Stats : 1 colonne sur mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Stat cards : empêche le texte de déborder */
    .stat-card {
        box-sizing: border-box;
        width: 100%;
    }

    /* Doc items : gestion du débordement horizontal */
    .doc-item {
        flex-wrap: wrap;
        gap: 12px;
        box-sizing: border-box;
    }

    .doc-details {
        flex: 1;
        min-width: 0;
    }

    /* Welcome banner : padding réduit */
    .welcome-banner {
        padding: 25px 20px;
        box-sizing: border-box;
    }

    /* Conteneur principal : pas de débordement */
    .dash-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
	.dashboard-content--editor {
		padding-top: 0;
	}
	
	.dvcc-topbar{
		position: sticky;
		top: 0 !important;
	}
}

/* --- RESPONSIVE MOBILE (max-width: 992px) --- */
@media (max-width: 992px) {

    /* Layout du header en grille */
    .dash-header {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .mobile-nav-trigger {
        grid-column: 1;
    }

    .dash-actions {
        grid-column: 2;
        justify-content: flex-end;
    }

    .search-bar {
        grid-column: 1 / span 2;
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }

    /* Layout général du dashboard */
    .dashboard-content {
        margin-left: 0;
        padding-bottom: 100px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar en menu coulissant */
    .sidebar {
        display: flex;
        left: -280px;
        transition: left 0.4s;
        z-index: 9999;
    }

    .sidebar.active {
        left: 0;
    }

    /* Overlay sombre derrière la sidebar ouverte */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 31, 63, 0.4);
        z-index: 9998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* --- REORGANISATION MOBILE (CAPTURE) --- */
@media (max-width: 768px) {
    .dash-header {
        flex-wrap: wrap; /* Permet le passage à la ligne */
        gap: 15px;
    }

    /* Le bouton menu et les actions sur la ligne 1 */
    .mobile-nav-trigger { order: 1; }
    .dash-actions { 
        order: 2; 
        display: flex; 
        gap: 10px; 
        margin-left: auto; /* Pousse les boutons à droite */
    }

    /* La barre de recherche sur la ligne 2 pour aérer */
    .search-bar { 
        order: 3; 
        width: 100%; 
        margin-top: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
    .dash-actions .btn-secondary {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Embellissement du bouton Cloche */
.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e1e8ef;
    color: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: #f8f9fa;
    color: var(--secondary);
}

.icon-btn .dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #ff4757; /* Rouge vif pour l'alerte */
    border: 2px solid white;
    border-radius: 50%;
}

/* La Barre de Recherche (Dashboard uniquement) */
.search-bar {
    flex: 1; /* C'est elle qui prend l'espace central sur Desktop */
    max-width: 500px;
    background: #f4f7fa;
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
    border-radius: 24px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Cards & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop : 3 colonnes */
    gap: 20px;
    margin-bottom: 40px;
}

/* Mobile : 1 colonne — déclaré APRÈS la règle de base pour avoir la priorité */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.highlight-card { background: #fff9e6; border: 1px solid #ffeaa7; }
.stat-label { display: block; font-size: 0.85rem; color: #636e72; margin-bottom: 10px; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }

.progress-bar { height: 8px; background: #eee; border-radius: 10px; margin-top: 15px; overflow: hidden; }
.progress { height: 100%; background: var(--secondary); }

/* Document List */
.doc-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.doc-item:hover { transform: translateX(5px); }
.status-tag { padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-tag.yellow { background: #fff9e6; color: #d4a017; }
.status-tag.green { background: #e6fff4; color: #00b894; }

/* 1. Correction du bouton "Nouvel Audit" (Contraste et taille) */
.dash-actions .btn-secondary {
    background: var(--secondary);
    color: white !important; /* Force la visibilité du texte */
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 99, 161, 0.2);
}

/* 2. Correction du bouton de téléchargement (Cercle et alignement) */
.btn-icon-only {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none; /* Pour les balises <a> */
}

.btn-icon-only:hover {
    background: var(--secondary);
    color: white;
}





.quiz-container {
    max-width: 700px;
    margin: 40px auto;
}

.quiz-progress-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.quiz-step-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
}

.quiz-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.quiz-question {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-item input { display: none; }

.option-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.option-letter {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.option-item:hover .option-box { border-color: var(--secondary); background: #f8fbff; }

.option-item input:checked + .option-box {
    border-color: var(--secondary);
    background: #f0f7ff;
}

.option-item input:checked + .option-box .option-letter {
    background: var(--secondary);
    color: white;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 30px;
}




/* Cache les annexes par défaut */
.annexe-item.is-hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Classe active pour l'animation d'apparition */
.annexe-item.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

/* Style du bouton quand il est ouvert */
.annexe-item.view-all.active {
    background: var(--primary);
    color: white;
    border-style: solid;
}


/* --- MODAL INVITATION --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 64, 114, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    transition: 0.3s;
}

.modal-overlay.is-hidden { opacity: 0; pointer-events: none; }

.modal-card {
    background: white;
    width: 95%;
    max-width: 800px; /* Pour le quiz large */
    max-height: 90vh; /* Limite la hauteur à 90% de la fenêtre */
    display: flex;
    flex-direction: column; /* Organise le header, body et footer */
    border-radius: 24px;
    overflow: hidden; /* Empêche le contenu de déborder des arrondis */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* --- RENDRE LE CORPS SCROLLABLE --- */
.modal-body {
    padding: 20px 30px;
    overflow-y: auto; /* Active le défilement vertical uniquement ici */
    flex: 1; /* Prend tout l'espace disponible entre le header et le footer */
}

/* Optionnel : Rendre la barre de défilement plus élégante */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.close-btn {
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: 0.2s;
}

.close-btn:hover {
    background: #ef4444;
    color: white;
}

/* --- PERSONNALISATION DU SCROLLBAR --- */

/* 1. La largeur de la barre */
.modal-body::-webkit-scrollbar {
    width: 6px; /* Plus fine pour plus d'élégance */
}

/* 2. Le fond (Track) */
.modal-body::-webkit-scrollbar-track {
    background: #F1F5F9; /* Gris très clair pour rester discret */
    border-radius: 10px;
}

/* 3. La partie mobile (Thumb) */
.modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1; /* Couleur ardoise claire */
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* 4. Effet au survol pour l'interactivité */
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8; /* S'assombrit légèrement quand on passe dessus */
}

/* 5. Support pour Firefox (plus limité mais propre) */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 #F1F5F9;
}





.email-input-container {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    margin: 15px 0;
}

.email-tags .tag {
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-tags .tag span { cursor: pointer; opacity: 0.7; }

#emailInput { border: none; outline: none; flex: 1; min-width: 150px; padding: 5px; }

.role-selector { margin-top: 20px; }
.role-selector label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }

/* --- FOOTER DU MODAL --- */
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Aligne les boutons à droite */
    gap: 12px;                /* Crée l'espace précis entre les boutons */
    margin-top: 30px;         /* Espace avec le reste du formulaire */
    padding-top: 20px;
    border-top: 1px solid #F1F5F9; /* Petit trait de séparation élégant */
	padding: 30px;
}

/* Force les boutons à avoir la même hauteur et un espacement interne propre */
/* .modal-footer .btn-primary,  */
/* .modal-footer .btn-outline { */
    /* padding: 10px 20px; */
    /* font-size: 0.9rem; */
    /* cursor: pointer; */
    /* border-radius: 10px; */
    /* transition: 0.2s; */
	/* text-align: center !important; */
/* } */

/* Responsive : Sur mobile, on les empile pour faciliter le clic */
@media (max-width: 480px) {
    .modal-footer {
        /* flex-direction: column-reverse; /* "Annuler" en bas, "Envoyer" en haut */
        gap: 10px;
    }
    
    .modal-footer button {
        width: 100%; /* Pleine largeur pour le pouce */
    }
}



/* 1. Correction de l'espacement sous le header */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 30px; /* Ajoute l'espace vital sous le fil d'ariane */
}

/* 2. Stylisation du bouton "+ Noter une erreur" */
.btn-small-ghost {
    background: #FFFBEB; /* Jaune très léger pour le rappel de la zone d'alerte */
    color: #B45309; /* Ambre foncé pour le texte */
    border: 1px solid #FDE68A;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-small-ghost:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

/* 3. Ajustement de la disposition dans la zone d'alerte */
.points-summary {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pousse le bouton à droite sur Desktop */
    gap: 20px;
    flex-wrap: wrap; /* Sécurité pour mobile */
}

/* Animation de flash rouge/orange */
@keyframes alertFlash {
    0% { color: #F59E0B; transform: scale(1); }
    25% { color: #EF4444; transform: scale(1.2) rotate(-5deg); }
    50% { color: #EF4444; transform: scale(1.2) rotate(5deg); }
    75% { color: #EF4444; transform: scale(1.2) rotate(0); }
    100% { color: #F59E0B; transform: scale(1); }
}

.pulse-alert {
    animation: alertFlash 0.6s ease-in-out;
    display: inline-block; /* Nécessaire pour l'animation scale/rotate */
}

/* Ajustement pour l'intégration du module pratique */
#validation-pratique {
    border-top: 4px solid #10B981; /* Couleur verte pour signifier "Validation" */
    margin-top: 25px;
}

.badge-live {
    background: #EF4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulseFade 1.5s infinite;
}


/* --- CORRECTION DE L'ALIGNEMENT MOBILE --- */
@media (max-width: 768px) {
    
    /* 1. On s'assure que le conteneur principal ne dépasse JAMAIS 100% */
    .profile-container, .main-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden; /* Supprime le scroll horizontal à la racine */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* 2. Ajustement de la Sidebar (Carte Marie-Lou) pour qu'elle soit identique aux Politiques */
    .profile-sidebar {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .member-card {
        width: 100%;
        margin: 0 auto; /* Centre la carte */
        padding: 20px;
        box-sizing: border-box; /* Force le padding à rester à l'intérieur */
        border-radius: 20px; /* Aligne l'arrondi sur vos autres cartes */
    }

    /* 3. Correction des éléments internes qui pourraient "pousser" les bords */
    .member-card h2, .member-card p, .btn-recertify {
        max-width: 100%;
        word-wrap: break-word; /* Casse les mots trop longs si nécessaire */
    }

    /* 4. On s'assure que le header (Équipe > Dossier...) suit le même alignement */
    .breadcrumb-container {
        padding: 10px 0;
        margin-bottom: 15px;
    }
}

/* Style pour les champs grisés */
.form-group-readonly input:disabled, 
.form-group-readonly textarea:disabled {
    background-color: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
    cursor: not-allowed;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* NOTE: .modal-overlay est défini plus haut (ligne ~1170) avec display:flex.
   La classe .is-hidden (opacity:0; pointer-events:none) gère la visibilité. */

/* Conteneur de la modal */
.modal-container {
    background: white;
    margin: 40px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 30px;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

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

.modal-header {
    padding: 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal { font-size: 2rem; cursor: pointer; color: #64748B; }

.modal-filters {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #F1F5F9;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 30px 30px;
}

/* Table complète */
.full-history-table {
    width: 100%;
    border-collapse: collapse;
}

.full-history-table th {
    position: sticky; top: 0; background: white;
    padding: 15px 10px; text-align: left;
    color: #94A3B8; font-size: 0.8rem; text-transform: uppercase;
}

.full-history-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
}

.modal-filters select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    font-weight: 600;
}

/* --- OPTIMISATION DE LA SIDEBAR AVEC SCROLL --- */
.member-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: white;
    border-right: 1px solid #E2E8F0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    
    /* Activation du défilement vertical */
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- STYLISATION DU SCROLLBAR INTERNE --- */
.member-sidebar::-webkit-scrollbar {
    width: 4px; /* Très fin pour ne pas encombrer la vue */
}

.member-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.member-sidebar::-webkit-scrollbar-thumb {
    background: #CBD5E1; /* Gris ardoise clair */
    border-radius: 10px;
}

.member-sidebar::-webkit-scrollbar-thumb:hover {
    background: #0063A1; /* Devient bleu Pharmaflow au survol */
}

/* Pour Firefox */
.member-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}


/* --- HEADER FIXE AU SCROLL --- */
.dash-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- TOPBAR ET TOC DVCC FIXES SOUS LE DASH-HEADER --- */

/* La topbar devient sticky et colle sous le dash-header */
.dvcc-topbar {
    position: sticky;
    top: 70px; /* hauteur du .dash-header */
    z-index: 90;
    background: #f8fafc;
    border-radius: 0;
}

/* La TOC se cale au même niveau vertical que la topbar */
/* .dvcc-toc { */
    /* position: sticky; */
    /* top: 100px; /* même valeur que .dvcc-topbar */ */
    /* max-height: calc(100vh - 100px); */
    /* overflow-y: auto; */
    /* align-self: flex-start; */
/* } */

/* Le parent flex ne doit pas bloquer le sticky des enfants */
.dvcc-layout {
    align-items: flex-start;
}

.dvcc-layout__main {
    overflow: visible;
}



/* --- CONTENEUR PRINCIPAL --- */
.pricing-container_ {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.pricing-container_ .pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-container_ .pricing-header h1 {
    font-size: 2.5rem;
    color: #0d4072;
    font-weight: 800;
    margin-bottom: 15px;
}

.pricing-container_ .text-gradient {
    background: linear-gradient(90deg, #0d4072, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-container_ .pricing-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* --- GRILLE DE TARIFICATION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
}

/* --- CARTE DE TARIF --- */
.pricing-container_ .pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-container_ .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Plan Recommandé (Mis en avant) */
.pricing-container_ .pricing-card.featured {
    border: 2px solid #0d4072;
    box-shadow: 0 10px 30px rgba(13, 64, 114, 0.15);
    z-index: 10;
}

.pricing-container_ .pricing-card.featured:hover {
    transform: translateY(-5px);
}

.pricing-container_ .popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00a8ff;
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- TYPOGRAPHIE DES PRIX --- */
.pricing-container_ .pricing-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.pricing-container_ .price {
    font-size: 2rem;
    font-weight: 800;
    color: #0d4072;
    margin-bottom: 8px;
}

.pricing-container_ .price span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.pricing-container_ .save-hint {
    color: #10b981;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

/* --- LISTE DES FONCTIONNALITÉS --- */
.pricing-container_ .features {
    list-style: none;
    padding: 0;
    margin: 12px 0 auto;
    text-align: left;
}

.pricing-container_ .features li {
    padding: 6px 0;
    color: #475569;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-container_ .features li i {
    font-size: 1.1rem;
}

.pricing-container_ .features li i.fi-rr-check { color: #10b981; }
.pricing-container_ .features li i.fi-rr-cross-small { color: #ef4444; }

/* --- BOUTONS --- */
.pricing-container_ .btn-primary-full, .pricing-container_ .btn-outline-full {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.3s;
    border: none;
}

.pricing-container_ .btn-primary-full {
    background: #0d4072;
    color: white;
}

.pricing-container_ .btn-primary-full:hover {
    background: #0063a1;
    box-shadow: 0 8px 20px rgba(0, 99, 161, 0.3);
}

.pricing-container_ .btn-outline-full {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.pricing-container_ .btn-outline-full:hover {
    border-color: #0d4072;
    color: #0d4072;
    background: #f8fafc;
}

/* --- RESPONSIVITÉ --- */
@media (max-width: 768px) {
    .pricing-container_ .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-container_ .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}


/* --- CUSTOM FULLCALENDAR --- */
.calendar-section-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

#calendar {
    max-width: 100%;
    margin-top: 20px;
    font-family: inherit;
}

/* Couleurs des événements selon le type */
.event-theorie { background-color: #0d4072 !important; border-color: #0d4072 !important; }
.event-pratique { background-color: #c5a059 !important; border-color: #c5a059 !important; }
.event-audit { background-color: #64748b !important; border-color: #64748b !important; }

/* Customisation Header Calendrier */
.fc .fc-button-primary {
    background-color: #0d4072;
    border: none;
    text-transform: capitalize;
}

.fc .fc-button-primary:hover {
    background-color: #0063a1;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 700;
}

/* --- MODAL FORM (Fidèle à la capture) --- */
.participant-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-delete-small {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.modal-footer-alt {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary-save {
    background: #0d4072;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel-alt {
    background: #cbd5e1;
    color: #475569;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    flex: 1;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .fc-toolbar { flex-direction: column; gap: 10px; }
    .modal-footer-alt { flex-direction: column; }
    .form-row { grid-template-columns: 1fr !important; }
}