/* =============================================================================
   PIBTS - FAMILLES DE CONTENU DES PAGES PUBLIQUES
   =============================================================================
   Cible : pages publiques servies par layouts/public.blade.php.
   --------------------------------------------------------------------------
   Origine : regles extraites des blocs <style> qui etaient embarques dans les
   vues (8 vues analysees).
   Principes :
     1. UNE famille = UNE definition : corriger ici corrige tous les ecrans ;
     2. les doublons inter-vues ont ete supprimes ;
     3. les variantes divergentees ont ete arbitrees sur le corps majoritaire ;
     4. les litteraux de couleur sont remplaces par les jetons des variables
        du monde concerne, ce qui evite toute regression de teinte ;
     5. l'ordre metier des declarations est conserve ;
     6. les documents autonomes (PDF, e-mails) gardent leurs styles inline.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Socle de jetons communs aux deux mondes
   -----------------------------------------------------------------------------
   Ces trois jetons sont ceux du design system des espaces de tableau de bord
   (memes noms, memes valeurs) ; l'accueil public ne les declarait pas alors que
   sa famille les utilise. public/css/pibts-variables.css reste la reference des
   jetons propres aux pages publiques (--pibts-orange, --pibts-blue, --color-*).
   ----------------------------------------------------------------------------- */

:root {
    --pibts-ink: #1A1A2E;
    --pibts-navy: #292874;
    --pibts-muted: #6C757D;
}

/* -----------------------------------------------------------------------------
   Famille : Tableaux
   ----------------------------------------------------------------------------- */

.table-debug {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.table-debug tbody td {
    padding: 0.4rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.75rem;
}

.table-debug tbody tr:hover {
    background: #fafbfc;
}

.table-debug thead th {
    background: #f8f9fc;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--pibts-muted);
    border-bottom: 2px solid #f0f0f0;
    padding: 0.6rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.table-scroll::-webkit-scrollbar {
    width: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #d4dae3;
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 576px) {
    .table-scroll {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .table-debug {
        font-size: 0.65rem;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Badges et statuts
   ----------------------------------------------------------------------------- */

.badge-status {
    font-size: 0.6rem;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-status.danger {
    background: rgba(232, 21, 0, 0.1);
    color: var(--color-danger);
}

.badge-status.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--color-info);
}

.badge-status.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--pibts-muted);
}

.badge-status.success {
    background: rgba(0, 172, 105, 0.1);
    color: var(--color-success);
}

.badge-status.warning {
    background: rgba(244, 161, 0, 0.1);
    color: var(--color-warning);
}

.badge-time {
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.debug-card .card-title .badge-count {
    background: var(--pibts-orange);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.refresh-controls .badge-time {
    background: rgba(255,255,255,0.15);
}

.refresh-controls .badge-time-auto {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.7rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.status-dot.danger {
    background: var(--color-danger);
}

.status-dot.info {
    background: var(--color-info);
}

.status-dot.secondary {
    background: var(--pibts-muted);
}

.status-dot.success {
    background: var(--color-success);
}

.status-dot.warning {
    background: var(--color-warning);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.08), rgba(15, 52, 96, 0.05));
    color: var(--pibts-ink);
    padding: 0.25rem 0.6rem 0.25rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(0, 206, 209, 0.2);
    transition: all 0.2s ease;
    animation: tagFadeIn 0.3s ease;
}

.tag .tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: var(--color-danger-light);
    color: var(--color-danger);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.tag .tag-remove:hover {
    background: rgba(232, 21, 0, 0.15);
    transform: scale(1.1);
}

.tag:hover {
    border-color: rgba(0, 206, 209, 0.4);
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.12), rgba(15, 52, 96, 0.08));
}

.tags-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
}

.tags-input-field {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    padding: 0.4rem 0.2rem;
    font-size: 0.85rem;
    background: transparent;
    color: var(--pibts-ink);
}

.tags-input-field::placeholder {
    color: #a7aeb8;
    font-size: 0.8rem;
}

.tags-input-wrapper {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.5rem;
    background: #fff;
    transition: all 0.3s ease;
}

.tags-input-wrapper.is-invalid {
    border-color: var(--color-danger);
}

.tags-input-wrapper:focus-within {
    border-color: #00CED1;
    box-shadow: 0 0 0 4px rgba(0, 206, 209, 0.08);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

@media (max-width: 576px) {
    .refresh-controls .badge-time-auto {
        display: none;
    }
}

@media (max-width: 768px) {
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem 0.2rem 0.6rem;
    }
    .tags-input-field {
        min-width: 100px;
        font-size: 0.8rem;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Cartes et statistiques
   ----------------------------------------------------------------------------- */

.debug-card .card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pibts-ink);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.debug-card .card-title i {
    color: var(--pibts-orange);
    margin-right: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Famille : Formulaires et import
   ----------------------------------------------------------------------------- */

.btn-debug-danger {
    background: var(--color-danger);
    border: none;
    color: #fff;
}

.btn-debug-danger:hover {
    background: #c51200;
    color: #fff;
}

.btn-debug-primary {
    background: var(--pibts-orange);
    border: none;
    color: #fff;
}

.btn-debug-primary:hover {
    background: #e05a00;
    color: #fff;
}

.btn-debug-secondary {
    background: var(--pibts-muted);
    border: none;
    color: #fff;
}

.btn-debug-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.btn-debug-success {
    background: var(--color-success);
    border: none;
    color: #fff;
}

.btn-debug-success:hover {
    background: #008f56;
    color: #fff;
}

.btn-formations-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    background: var(--pibts-gradient);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(252, 108, 15, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-formations-cta:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(252, 108, 15, 0.34);
}

.btn-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--pibts-ink);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

.btn-hero-cta-primary i:last-child {
    transition: transform 0.3s ease;
}

.btn-hero-cta-primary:hover {
    color: var(--pibts-ink);
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.45);
    transform: translateY(-2px);
}

.btn-hero-cta-primary:hover i:last-child {
    transform: translateX(4px);
}

.btn-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-hero-cta-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-next-step {
    background: linear-gradient(135deg, #00CED1, #009999);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 206, 209, 0.25);
}

.btn-prev-step {
    background: #f8f9fa;
    color: var(--pibts-muted);
    border: 1px solid #e9ecef;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev-step:hover {
    background: #e9ecef;
}

.btn-process-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    background: #ffffff;
    color: var(--pibts-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-process-cta:hover {
    color: var(--pibts-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.btn-refresh-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50px;
    padding: 0.15rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-refresh-toggle.active {
    background: rgba(0, 172, 105, 0.3);
    border-color: var(--color-success);
}

.btn-refresh-toggle.inactive {
    background: rgba(232, 21, 0, 0.3);
    border-color: var(--color-danger);
}

.btn-refresh-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.btn-submit-final {
    background: linear-gradient(135deg, var(--color-success), #008f56);
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 172, 105, 0.3);
}

.file-upload-wrapper .file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: rgba(0, 172, 105, 0.06);
    color: var(--color-success);
}

.file-upload-wrapper .file-info .file-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.file-upload-wrapper .file-info .file-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    background: var(--color-success);
}

.file-upload-wrapper .file-info.has-file {
    background: rgba(0, 172, 105, 0.06);
    color: var(--color-success);
}

.file-upload-wrapper .file-input {
    display: none;
}

.file-upload-wrapper .file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.file-upload-wrapper .file-label .file-icon {
    font-size: 1.2rem;
    color: #00CED1;
}

.file-upload-wrapper .file-label .file-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--pibts-muted);
}

.file-upload-wrapper .file-label .file-text strong {
    color: var(--pibts-ink);
}

.file-upload-wrapper .file-label:hover {
    border-color: #00CED1;
    background: rgba(0, 206, 209, 0.02);
}

.form-step {
    animation: fadeInStep 0.4s ease;
}

.newsletter-section .btn-newsletter {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    min-height: 44px;
    background: var(--pibts-orange) !important;
    border: none !important;
    color: #fff;
    font-weight: 600;
}

.newsletter-section .btn-newsletter:hover {
    background: var(--pibts-orange-dark) !important;
}

.newsletter-section .form-control {
    border-radius: 50px;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    height: 44px;
}

@media (max-width: 576px) {
    .btn-hero-cta-primary, .btn-hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Fiches detail
   ----------------------------------------------------------------------------- */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-buttons .btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

.compact-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
    background: #f8f9fc;
    border-radius: 6px;
    font-size: 0.8rem;
}

.compact-info .info-item .label {
    color: var(--pibts-muted);
    font-weight: 500;
}

.compact-info .info-item .value {
    color: var(--pibts-ink);
    font-weight: 600;
}

.compact-info .info-item .value code {
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.info-card-teacher {
    border-left-color: #00CED1 !important;
}

.info-card-teacher h6 i {
    color: #00CED1 !important;
}

@media (max-width: 576px) {
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Workflow et etapes
   ----------------------------------------------------------------------------- */

.progress-steps {
    padding: 0.5rem 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-item .step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pibts-ink);
}

.step-item .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--pibts-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-item.active {
    opacity: 1;
    background: rgba(0, 206, 209, 0.08);
}

.step-item.active .step-number {
    background: #00CED1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.3);
}

.step-item.completed {
    opacity: 0.8;
}

.step-item.completed .step-number {
    background: var(--color-success);
    color: #fff;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pibts-gradient);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.suivi-illustration-blue .step-num {
    background: linear-gradient(135deg, #0061f2 0%, #00cfd5 100%);
}

@media (max-width: 768px) {
    .step-item .step-label {
        font-size: 0.7rem;
    }
    .step-navigation {
        flex-direction: column;
    }
    .step-navigation button {
        width: 100%;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Hero et sections
   ----------------------------------------------------------------------------- */

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hero-fullscreen {
    padding-top: 112px;
    padding-bottom: 70px;
}

.hero-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    --slide-accent: #FFD700;
    --slide-soft: rgba(255, 215, 0, 0.14);
    --slide-soft-2: rgba(255, 215, 0, 0.30);
}

.hero-slider-container .carousel {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.18);
}

.hero-slider-container .carousel-autoplay {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    color: rgba(255,255,255,0.85);
    font-size: 0.62rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.hero-slider-container .carousel-autoplay.is-paused {
    color: var(--slide-accent);
    border-color: var(--slide-soft-2);
}

.hero-slider-container .carousel-autoplay:hover {
    background: rgba(0,0,0,0.45);
    color: #fff;
}

.hero-slider-container .carousel-control-prev, .hero-slider-container .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    margin: 0 0.9rem;
    background: rgba(0,0,0,0.22);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
}

.hero-slider-container .carousel-control-prev-icon, .hero-slider-container .carousel-control-next-icon {
    background-size: 48%;
    filter: invert(1);
}

.hero-slider-container .carousel-control-prev:hover, .hero-slider-container .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.45);
    border-color: rgba(255,255,255,0.30);
}

.hero-slider-container .carousel-counter {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.85);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
}

.hero-slider-container .carousel-counter span {
    color: var(--slide-accent);
}

.hero-slider-container .carousel-indicators {
    bottom: 26px;
    margin: 0;
    gap: 8px;
}

.hero-slider-container .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: width 0.35s ease, background 0.35s ease;
}

.hero-slider-container .carousel-indicators button.active {
    width: 28px;
    border-radius: 50px;
    background: var(--slide-accent);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.hero-slider-container .carousel-indicators button:hover {
    background: rgba(255,255,255,0.55);
}

.hero-slider-container .carousel-inner {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
}

.hero-slider-container .carousel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 3px;
    background: rgba(255,255,255,0.10);
    overflow: hidden;
}

.hero-slider-container .carousel-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--slide-accent), rgba(255,255,255,0.6));
}

.hero-slider-container .carousel-progress span.is-running {
    animation: heroSlideProgress 5s linear forwards;
}

.hero-slider-container:hover .carousel-progress span.is-running {
    animation-play-state: paused;
}

.hero-title {
    font-size: clamp(1.45rem, 6.1vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.4px;
}

.hero-title .highlight {
    white-space: nowrap;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.35rem;
    padding: 0;
    margin: 1.1rem 0 0;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: inherit;
    opacity: 0.85;
}

.hero-trust li i {
    color: var(--pibts-orange);
    font-size: 0.85rem;
}

.process-section .section-header .section-badge {
    background: rgba(255, 255, 255, 0.10);
    color: #ffc85c;
}

.process-section .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.70);
}

.process-section .section-header .section-title {
    color: #ffffff;
}

.stat-item {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.stat-item .label {
    font-size: 0.7rem;
    color: var(--pibts-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stat-item .number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-item .number.blue {
    color: var(--color-info);
}

.stat-item .number.cyan {
    color: #00cfd5;
}

.stat-item .number.green {
    color: var(--color-success);
}

.stat-item .number.orange {
    color: var(--pibts-orange);
}

.stat-item .number.pink {
    color: #e83e8c;
}

.stat-item .number.purple {
    color: #6900c7;
}

.stat-item .number.red {
    color: var(--color-danger);
}

.stat-item .number.teal {
    color: #20c997;
}

.stat-item .sub-label {
    font-size: 0.6rem;
    color: #adb5bd;
    margin-top: 0.1rem;
}

.stat-item:hover {
    border-color: rgba(252, 108, 15, 0.1);
    transform: translateY(-2px);
}

.stat-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    height: 100%;
    text-align: left;
}

.stat-mini .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--pibts-ink);
}

.stat-mini > i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
}

.stat-mini small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--pibts-muted);
}

.stat-mini.blue > i {
    background: rgba(0, 207, 213, 0.12);
    color: #00a4a9;
}

.stat-mini.green > i {
    background: rgba(0, 172, 105, 0.10);
    color: var(--color-success);
}

.stat-mini.warning > i {
    background: rgba(244, 161, 0, 0.12);
    color: var(--color-warning);
}

.suivi-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.suivi-btn {
    background: var(--pibts-gradient);
    border: none;
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.suivi-btn-blue {
    background: linear-gradient(135deg, #0061f2 0%, #00cfd5 100%);
}

.suivi-btn-blue:hover {
    box-shadow: 0 8px 24px rgba(0, 97, 242, 0.25);
}

.suivi-btn:hover {
    box-shadow: 0 8px 24px rgba(252, 108, 15, 0.25);
}

.suivi-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.suivi-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #00CED1 0%, #0f3460 100%);
    border: none;
    color: #ffffff;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.suivi-compact-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,206,209,0.3);
}

.suivi-compact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(0,206,209,0.04) 0%, rgba(15,52,96,0.04) 100%);
    border: 1px solid rgba(0,206,209,0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.suivi-compact-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.suivi-compact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00CED1 0%, #0f3460 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,206,209,0.25);
}

.suivi-compact-input {
    flex: 1;
    min-width: 180px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    background: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.suivi-compact-input::placeholder {
    color: #adb5bd;
}

.suivi-compact-input:focus {
    border-color: #00CED1;
    box-shadow: 0 0 0 3px rgba(0,206,209,0.08);
}

.suivi-compact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pibts-ink);
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin-right: 0.25rem;
}

.suivi-compact-label i {
    color: #00CED1;
}

.suivi-compact-section {
    padding: 1.25rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.suivi-form-help {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--pibts-muted);
}

.suivi-form-help i {
    color: var(--pibts-orange);
}

.suivi-form-hint {
    color: var(--pibts-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.suivi-form-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pibts-ink);
    margin-bottom: 0.5rem;
}

.suivi-illustration {
    background: linear-gradient(135deg, rgba(252,108,15,0.04) 0%, rgba(41,40,116,0.04) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(252,108,15,0.08);
}

.suivi-illustration h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pibts-ink);
    margin-bottom: 0.75rem;
}

.suivi-illustration-blue {
    background: linear-gradient(135deg, rgba(0,97,242,0.04) 0%, rgba(0,207,213,0.04) 100%);
    border-color: rgba(0,97,242,0.08);
}

.suivi-illustration-blue .suivi-illustration-icon {
    background: linear-gradient(135deg, #0061f2 0%, #00cfd5 100%);
    box-shadow: 0 8px 24px rgba(0, 97, 242, 0.2);
}

.suivi-illustration-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pibts-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 8px 24px rgba(252, 108, 15, 0.2);
}

.suivi-input {
    flex: 1;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-family: inherit;
}

.suivi-input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: #ffffff;
}

.suivi-input-group:focus-within {
    border-color: var(--pibts-orange);
    box-shadow: 0 0 0 4px var(--pibts-orange-light);
}

.suivi-input-icon {
    display: flex;
    align-items: center;
    padding: 0 0 0 1rem;
    color: var(--pibts-muted);
    background: transparent;
}

.suivi-input-icon i {
    color: var(--pibts-orange);
}

.suivi-input::placeholder {
    color: #adb5bd;
}

.suivi-quick-arrow {
    margin-left: auto;
    color: #adb5bd;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.suivi-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.suivi-quick-icon.blue {
    background: rgba(0, 207, 213, 0.08);
    color: #00cfd5;
}

.suivi-quick-icon.green {
    background: var(--color-success-light);
    color: var(--color-success);
}

.suivi-quick-icon.orange {
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
}

.suivi-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-decoration: none;
    transition: all 0.3s ease;
}

.suivi-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    text-decoration: none;
}

.suivi-quick-link:hover .suivi-quick-arrow {
    color: var(--pibts-orange);
    transform: translateX(4px);
}

.suivi-quick-text {
    font-size: 0.75rem;
    color: var(--pibts-muted);
}

.suivi-quick-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pibts-ink);
    margin-bottom: 0.1rem;
}

.suivi-recall-section {
    padding: 1.5rem 0 2.5rem;
    background: #ffffff;
}

.suivi-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.suivi-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252,108,15,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.suivi-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.suivi-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4a515b;
    padding: 0.35rem 0.5rem;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
}

.suivi-subtitle {
    color: var(--pibts-muted);
    font-size: 0.95rem;
    max-width: 550px;
    margin: 0 auto;
}

.suivi-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pibts-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    font-family: inherit;
}

.suivi-tab i {
    font-size: 0.95rem;
}

.suivi-tab-content {
    display: none;
    padding: 2rem;
}

.suivi-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.suivi-tab.active {
    color: var(--pibts-orange);
    background: #ffffff;
}

.suivi-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pibts-orange) 0%, var(--pibts-navy) 100%);
}

.suivi-tab:hover {
    color: var(--pibts-orange);
    background: rgba(252, 108, 15, 0.03);
}

.suivi-tabs {
    display: flex;
    background: #f8f9fc;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.suivi-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pibts-ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

@media (max-width: 576px) {
    .hero-cta-group {
        flex-direction: column;
    }
    .hero-slider-container .carousel-autoplay {
        top: 10px;
        left: 10px;
        width: 26px;
        height: 26px;
    }
    .hero-slider-container .carousel-control-prev, .hero-slider-container .carousel-control-next {
        width: 34px;
        height: 34px;
        margin: 0 0.4rem;
    }
    .hero-slider-container .carousel-counter {
        top: 10px;
        right: 10px;
        font-size: 0.62rem;
        padding: 0.15rem 0.6rem;
    }
    .hero-slider-container .carousel-indicators {
        bottom: 18px;
    }
    .hero-trust {
        flex-direction: column;
        gap: 0.4rem;
    }
    .stat-item {
        padding: 0.75rem;
    }
    .stat-item .number {
        font-size: 1.2rem;
    }
    .stat-mini {
        justify-content: flex-start;
    }
    .suivi-btn {
        justify-content: center;
        padding: 0.85rem 1rem;
    }
    .suivi-form-title {
        font-size: 0.95rem;
    }
    .suivi-input {
        text-align: center;
        padding: 0.85rem 1rem;
    }
    .suivi-input-group {
        flex-direction: column;
    }
    .suivi-input-icon {
        display: none;
    }
    .suivi-subtitle {
        font-size: 0.85rem;
    }
    .suivi-tab-content {
        padding: 1.25rem;
    }
    .suivi-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .stat-item .number {
        font-size: 1.4rem;
    }
    .suivi-compact-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
    .suivi-compact-card {
        flex-wrap: wrap;
    }
    .suivi-compact-form {
        width: 100%;
    }
    .suivi-compact-input {
        min-width: 0;
        flex: 1;
    }
    .suivi-compact-label {
        width: 100%;
        font-size: 0.8rem;
    }
}

@media (max-width: 991.98px) {
    .hero-fullscreen {
        padding-top: 96px;
        padding-bottom: 55px;
    }
    .hero-slider-container .carousel-indicators {
        bottom: 22px;
    }
}

@media (max-width: 992px) {
    .hero-cta-group {
        justify-content: flex-start;
    }
    .suivi-tab {
        padding: 0.85rem 1rem;
        font-size: 0.8rem;
    }
    .suivi-tab i {
        font-size: 1.1rem;
    }
    .suivi-tab span {
        display: none;
    }
    .suivi-tab-content {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 2.05rem;
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 1.75rem;
        white-space: nowrap;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Divers
   ----------------------------------------------------------------------------- */

.candidature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--pibts-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 6px 20px rgba(252, 108, 15, 0.2);
}

.candidature-btn-blue {
    background: linear-gradient(135deg, #0061f2 0%, #00cfd5 100%);
    box-shadow: 0 6px 20px rgba(0, 97, 242, 0.2);
}

.candidature-btn-blue:hover {
    box-shadow: 0 10px 30px rgba(0, 97, 242, 0.35);
}

.candidature-btn:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(252, 108, 15, 0.35);
    transform: translateY(-2px);
}

.candidature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.candidature-card-blue .candidature-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 97, 242, 0.1), rgba(0, 207, 213, 0.1));
    color: #0061f2;
}

.candidature-card-blue::before {
    background: linear-gradient(90deg, #0061f2, #00cfd5);
}

.candidature-card-blue:hover {
    box-shadow: 0 20px 50px rgba(0, 97, 242, 0.12);
}

.candidature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pibts-orange), var(--pibts-navy));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.candidature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(252, 108, 15, 0.12);
}

.candidature-card:hover::before {
    transform: scaleX(1);
}

.candidature-features {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    text-align: left;
    padding: 0 0.5rem;
}

.candidature-features i {
    color: var(--color-success);
    font-size: 0.7rem;
}

.candidature-features span {
    font-size: 0.8rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.candidature-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(252, 108, 15, 0.1), rgba(41, 40, 116, 0.1));
    color: var(--pibts-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.candidature-text {
    color: var(--pibts-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.candidature-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pibts-ink);
    margin-bottom: 0.5rem;
}

.carousel-item.active .slide-content > *, .carousel-item-next .slide-content > *, .carousel-item-prev .slide-content > * {
    animation: heroSlideItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-item.active .slide-content > *:nth-child(2), .carousel-item-next .slide-content > *:nth-child(2), .carousel-item-prev .slide-content > *:nth-child(2) {
    animation-delay: 0.05s;
}

.carousel-item.active .slide-content > *:nth-child(3), .carousel-item-next .slide-content > *:nth-child(3), .carousel-item-prev .slide-content > *:nth-child(3) {
    animation-delay: 0.1s;
}

.carousel-item.active .slide-content > *:nth-child(4), .carousel-item-next .slide-content > *:nth-child(4), .carousel-item-prev .slide-content > *:nth-child(4) {
    animation-delay: 0.16s;
}

.carousel-item.active .slide-content > *:nth-child(5), .carousel-item-next .slide-content > *:nth-child(5), .carousel-item-prev .slide-content > *:nth-child(5) {
    animation-delay: 0.22s;
}

.compact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.1rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
}

.contact-card .contact-hours {
    font-size: 0.65rem;
    color: var(--pibts-muted);
}

.contact-card .contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-card .contact-phone {
    font-weight: 700;
    color: var(--pibts-orange);
    font-size: 1rem;
}

.contact-card a.contact-hours:hover {
    color: var(--pibts-blue);
}

.contact-card a.contact-phone, .contact-card a.contact-hours {
    display: inline-block;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-card a.contact-phone:hover {
    color: var(--pibts-orange-dark);
}

.contact-card h5 {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pibts-ink);
    margin-bottom: 0.15rem;
}

.contact-card p {
    color: var(--pibts-muted);
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.contact-card:hover {
    box-shadow: 0 10px 40px rgba(252, 108, 15, 0.06);
}

.debug-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.debug-card:hover {
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.debug-header {
    background: var(--pibts-gradient);
    padding: 2rem;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.debug-header h1 {
    font-weight: 800;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.debug-header h1 span {
    color: #FFD700;
}

.debug-header p {
    opacity: 0.8;
    margin: 0;
}

.debug-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.debug-page {
    padding: 120px 0 60px;
    background: #f0f2f5;
    min-height: 100vh;
}

.experience-item {
    background: #f8f9fc !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.experience-item .remove-experience {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
}

.experience-item:hover {
    border-color: rgba(0, 206, 209, 0.2) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.faq-accordion-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #495057;
    font-size: 0.88rem;
    line-height: 1.7;
}

.faq-answer-content .faq-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(252, 108, 15, 0.05);
    border-left: 3px solid var(--pibts-orange);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #495057;
}

.faq-answer-content .faq-note i {
    color: var(--pibts-orange);
    font-size: 0.95rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: var(--pibts-ink);
    font-weight: 700;
}

.faq-answer-content ul li, .faq-answer-content ol li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.faq-answer-content ul, .faq-answer-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.faq-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-contact-item i {
    color: var(--pibts-orange);
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-contact-item small {
    display: block;
    color: var(--pibts-muted);
    font-size: 0.72rem;
}

.faq-contact-item strong {
    display: block;
    color: var(--pibts-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.faq-contact-item:hover {
    background: rgba(252, 108, 15, 0.05);
    border-color: var(--pibts-orange-soft);
    text-decoration: none;
    transform: translateY(-2px);
}

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 30px var(--pibts-orange-light);
    border-color: var(--pibts-orange-soft);
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-item.active .faq-question-arrow {
    color: var(--pibts-orange);
    transform: rotate(180deg);
}

.faq-item.active .faq-question-icon {
    background: var(--pibts-gradient);
    color: #fff;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question-arrow {
    color: #adb5bd;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-question-text {
    flex: 1;
    font-weight: 700;
    color: var(--pibts-ink);
    font-size: 0.95rem;
    line-height: 1.4;
}

.faq-question:hover {
    background: rgba(252, 108, 15, 0.02);
}

.faq-status-danger {
    background: rgba(232, 21, 0, 0.06);
    color: var(--color-danger);
}

.faq-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.faq-status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.faq-status-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-status-item small {
    display: block;
    color: var(--pibts-muted);
    font-size: 0.72rem;
    margin-top: 2px;
}

.faq-status-item strong {
    display: block;
    color: var(--pibts-ink);
    font-size: 0.85rem;
}

.faq-status-success {
    background: rgba(0, 172, 105, 0.06);
    color: var(--color-success);
}

.faq-subsection {
    margin-bottom: 1rem;
}

.faq-subsection h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pibts-ink);
    margin-bottom: 0.5rem;
}

.faq-subsection:last-child {
    margin-bottom: 0;
}

.feature-item-modern {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item-modern .feature-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.2rem;
}

.feature-item-modern .feature-icon-modern.blue {
    background: rgba(0, 207, 213, 0.08);
    color: #00cfd5;
}

.feature-item-modern .feature-icon-modern.green {
    background: var(--color-success-light);
    color: var(--color-success);
}

.feature-item-modern .feature-icon-modern.orange {
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
}

.feature-item-modern .feature-icon-modern.warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.feature-item-modern .feature-text-modern {
    color: var(--pibts-muted);
    font-size: 0.8rem;
    margin: 0;
}

.feature-item-modern .feature-title-modern {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pibts-ink);
    margin-bottom: 0.35rem;
}

.feature-item-modern:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.formation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1.5rem 1.35rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.formation-card.blue .formation-icon {
    background: var(--pibts-blue-light);
    color: var(--pibts-blue);
}

.formation-card.cyan .formation-icon {
    background: rgba(0, 206, 209, 0.12);
    color: #00a4a9;
}

.formation-card.green .formation-icon {
    background: rgba(0, 172, 105, 0.10);
    color: var(--color-success);
}

.formation-card.purple .formation-icon {
    background: rgba(142, 68, 173, 0.10);
    color: var(--color-purple);
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pibts-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.formation-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 108, 15, 0.18);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.10);
}

.formation-card:hover::before {
    opacity: 1;
}

.formation-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
}

.formation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pibts-orange);
    text-decoration: none;
}

.formation-link i {
    transition: transform 0.3s ease;
}

.formation-link:hover {
    color: var(--pibts-orange-dark);
}

.formation-link:hover i {
    transform: translateX(4px);
}

.formation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.formation-tags span {
    padding: 0.24rem 0.7rem;
    border-radius: 50px;
    background: #f5f7fa;
    color: #4a4a68;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.formation-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--pibts-muted);
}

.formation-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pibts-ink);
}

.module-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fc;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.module-item .module-name {
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
}

.module-item .module-path {
    font-size: 0.55rem;
    color: #adb5bd;
    font-family: monospace;
}

.module-item:hover {
    border-color: rgba(252, 108, 15, 0.1);
}

.module-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.7rem;
    border-radius: 50px;
    background: rgba(41, 40, 116, 0.06);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.35rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--pibts-orange);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.09);
}

.news-date {
    font-size: 0.72rem;
    color: var(--pibts-muted);
}

.news-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--pibts-muted);
}

.news-title {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pibts-ink);
}

.newsletter-section .newsletter-lock {
    color: rgba(255,255,255,0.25) !important;
    font-size: 0.7rem;
    margin-top: 0.75rem;
}

.partner-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
}

.partner-card .partner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.4rem;
}

.partner-card h6 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pibts-ink);
    margin-bottom: 0.1rem;
}

.partner-card small {
    font-size: 0.7rem;
    color: var(--pibts-muted);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(252, 108, 15, 0.06);
}

.path-text {
    font-size: 0.65rem;
    color: var(--pibts-muted);
    word-break: break-all;
    font-family: monospace;
    max-width: 250px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.process-section {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(135deg, #14142b 0%, var(--pibts-navy) 60%, #3b3b93 100%);
    overflow: hidden;
}

.process-section .container {
    position: relative;
    z-index: 2;
}

.process-section::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 108, 15, 0.28), transparent 65%);
    pointer-events: none;
}

.process-step {
    position: relative;
    height: 100%;
    padding: 2rem 1.35rem 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.process-step h5 {
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
}

.process-step p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.70);
}

.process-step-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffc85c;
}

.process-step-num {
    position: absolute;
    top: -14px;
    left: 1.35rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--pibts-gradient);
    box-shadow: 0 8px 18px rgba(252, 108, 15, 0.35);
}

.process-step-tag {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #ffc85c;
}

.process-step:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(252, 108, 15, 0.45);
}

.refresh-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card .service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.3rem;
}

.service-card .service-icon.blue {
    background: rgba(0, 207, 213, 0.08);
    color: #00cfd5;
}

.service-card .service-icon.green {
    background: var(--color-success-light);
    color: var(--color-success);
}

.service-card .service-icon.orange {
    background: var(--pibts-orange-light);
    color: var(--pibts-orange);
}

.service-card .service-text {
    color: var(--pibts-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-card .service-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pibts-ink);
    margin-bottom: 0.4rem;
}

.service-card:hover {
    box-shadow: 0 12px 40px var(--pibts-orange-light);
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--slide-soft);
    color: var(--slide-accent);
    border: 1px solid var(--slide-soft-2);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.slide-content {
    position: relative;
    padding: 3.1rem 2.5rem 2.9rem;
    text-align: center;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-content h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.slide-content h3, .slide-content p, .slide-details, .slide-badge {
    position: relative;
    z-index: 1;
}

.slide-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 380px;
    margin: 0 auto 0.4rem;
    line-height: 1.5;
}

.slide-content::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--slide-soft), transparent 70%);
    pointer-events: none;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--slide-accent), transparent);
}

.slide-details {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.slide-details span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.slide-details span i {
    color: #FFD700;
    font-size: 0.75rem;
}

.slide-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--slide-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: var(--slide-accent);
    margin-bottom: 1.15rem;
    border: 1px solid var(--slide-soft-2);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.stats-mini-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.85rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--pibts-muted);
    font-weight: 500;
}

.summary-section {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.summary-section h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pibts-ink);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    color: var(--pibts-ink);
    font-weight: 600;
}

.teacher-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, var(--pibts-ink) 100%) !important;
}

.teacher-hero .deadline {
    background: rgba(0, 206, 209, 0.15) !important;
    border-color: rgba(0, 206, 209, 0.2) !important;
}

.teacher-hero h1 span {
    color: #00CED1 !important;
}

@media (max-width: 576px) {
    .candidature-card {
        padding: 1.5rem 1.25rem;
    }
    .candidature-title {
        font-size: 1.1rem;
    }
    .debug-card {
        padding: 1rem;
    }
    .faq-answer-content {
        padding: 0 1rem 1.25rem 1rem;
        font-size: 0.82rem;
    }
    .faq-contact-grid {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }
    .faq-question-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .faq-question-text {
        font-size: 0.85rem;
    }
    .formation-card {
        padding: 1.35rem 1.15rem;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process-step {
        padding: 1.75rem 1.15rem 1.35rem;
    }
    .slide-content {
        padding: 2rem 1.15rem 2.3rem;
        min-height: 250px;
    }
    .slide-content h3 {
        font-size: 1.15rem;
    }
    .slide-content p {
        font-size: 0.8rem;
    }
    .slide-details {
        gap: 0.5rem 0.9rem;
    }
    .slide-details span {
        font-size: 0.7rem;
    }
    .slide-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
        border-radius: 18px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .compact-info {
        grid-template-columns: 1fr;
    }
    .debug-header h1 {
        font-size: 1.5rem;
    }
    .debug-page {
        padding: 100px 0 40px;
    }
    .experience-item {
        padding: 1rem !important;
    }
    .module-status-grid {
        grid-template-columns: 1fr;
    }
    .path-text {
        max-width: 120px;
    }
    .refresh-controls {
        gap: 0.3rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .slide-content {
        padding: 2.4rem 1.75rem 2.6rem;
        min-height: 300px;
    }
    .slide-content h3 {
        font-size: 1.35rem;
    }
    .slide-content p {
        font-size: 0.88rem;
    }
    .slide-icon {
        width: 68px;
        height: 68px;
        font-size: 1.75rem;
        border-radius: 20px;
    }
}

@media (max-width: 992px) {
    .faq-status-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-section {
        padding: 55px 0;
    }
    .slide-content {
        padding: 2.5rem 2rem;
        min-height: 260px;
    }
    .slide-content h3 {
        font-size: 1.3rem;
    }
    .slide-content p {
        font-size: 0.85rem;
    }
    .slide-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

/* -----------------------------------------------------------------------------
   Famille : Animations et at-rules
   ----------------------------------------------------------------------------- */

@keyframes fadeInStep {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes heroSlideProgress {
    from { width: 0; }
    to { width: 100%; }
}

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

@keyframes tagFadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
