/* =========================================== */
/* PAGE SUIVRE MA DEMANDE - STYLES */
/* Respecte rigoureusement la charte graphique */
/* =========================================== */

/* Variables (identiques à mes_demandes.css) */
:root {
    --primary-color: #1a3a8f;
    --secondary-color: #2c5aa0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --icon-color: #ffd700;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =========================================== */
/* SECTION GLOBALE */
/* =========================================== */

.suivre-section {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: 100vh;
}

.suivre-container {
    animation: slideUp 0.6s ease;
}

/* Alertes */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 20px;
    animation: slideUp 0.5s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

/* =========================================== */
/* RECAP HEADER (partagé avec mes_demandes) */
/* =========================================== */

.recap-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
}

.recap-header .card-title {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.recap-header .card-title i {
    font-size: 1.5rem;
    color: var(--icon-color);
    margin-right: 12px;
}

/* =========================================== */
/* FORMULAIRE */
/* =========================================== */

.form-card {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

.form-instructions {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.form-instructions p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.suivre-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--icon-color);
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
    color: #333;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
    outline: none;
    color: #333;
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 1.05rem;
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-helper {
    display: flex;
    align-items: center;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.85rem;
}

.form-helper i {
    color: var(--warning-color);
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Bouton de recherche */
.btn-search {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    color: white;
    padding: 14px 30px;
    margin-top: 15px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 143, 0.3);
    color: white;
}

.btn-search:active {
    transform: translateY(0);
}

.btn-search i {
    color: var(--icon-color);
}

/* =========================================== */
/* SECTION D'AIDE */
/* =========================================== */

.help-section {
    animation: slideUp 0.6s ease 0.2s backwards;
}

.help-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.help-title i {
    color: var(--icon-color);
}

.help-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.help-item {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.help-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.help-item h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.help-item p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================== */
/* RESPONSIVE - TABLETTE (992px et moins) */
/* =========================================== */

@media (max-width: 992px) {
    .recap-header {
        padding: 20px 25px;
        border-radius: 12px 12px 0 0;
    }

    .recap-header .card-title {
        font-size: 1.2rem;
    }

    .recap-header .card-title i {
        font-size: 1.3rem;
        margin-right: 10px;
    }

    .form-instructions {
        padding: 20px 25px;
    }

    .form-instructions p {
        font-size: 0.9rem;
    }

    .suivre-form {
        padding: 25px;
    }

    .btn-search {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .help-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .help-items {
        gap: 20px;
    }

    .help-item {
        padding: 25px 20px;
    }

    .help-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .help-item h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .help-item p {
        font-size: 0.85rem;
    }
}

/* =========================================== */
/* RESPONSIVE - MOBILE (768px et moins) */
/* =========================================== */

@media (max-width: 768px) {
    .suivre-section {
        padding: 40px 0;
    }

    .recap-header {
        padding: 18px 20px;
        border-radius: 10px 10px 0 0;
    }

    .recap-header .card-title {
        font-size: 1.1rem;
    }

    .recap-header .card-title i {
        font-size: 1.2rem;
        margin-right: 8px;
    }

    .form-card {
        border-radius: 0 0 10px 10px;
    }

    .form-instructions {
        padding: 20px;
    }

    .form-instructions p {
        font-size: 0.9rem;
    }

    .suivre-form {
        padding: 20px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .form-control-lg {
        padding: 12px 15px;
    }

    .form-helper {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    .btn-search {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .help-section {
        margin-top: 30px;
    }

    .help-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .help-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .help-item {
        padding: 20px;
        border-top-width: 3px;
    }

    .help-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .help-item h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .help-item p {
        font-size: 0.85rem;
    }
}

/* =========================================== */
/* RESPONSIVE - PETIT MOBILE (576px et moins) */
/* =========================================== */

@media (max-width: 576px) {
    .suivre-section {
        padding: 30px 0;
    }

    .recap-header {
        padding: 15px;
        border-radius: 8px 8px 0 0;
    }

    .recap-header .card-title {
        font-size: 1rem;
    }

    .recap-header .card-title i {
        font-size: 1.1rem;
        margin-right: 6px;
    }

    .form-card {
        border-radius: 0 0 8px 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }

    .form-instructions {
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
    }

    .form-instructions p {
        font-size: 0.85rem;
    }

    .suivre-form {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 9px 10px;
        font-size: 0.9rem;
    }

    .form-control-lg {
        padding: 10px 12px;
    }

    .form-helper {
        font-size: 0.75rem;
        margin-top: 5px;
    }

    .btn-search {
        padding: 10px 15px;
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .help-section {
        margin-top: 25px;
    }

    .help-title {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .help-items {
        gap: 12px;
    }

    .help-item {
        padding: 18px;
    }

    .help-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .help-item h5 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .help-item p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}
/* Page de suivi des demandes - Design cohérent avec la charte CAVAIF */

.track-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.track-hero {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.track-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.track-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.track-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.track-hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.2rem;
}

/* Hero Illustration */
.track-hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.illustration-container {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===========================================
   TRACK CONTENT SECTION
   =========================================== */
.track-content {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Track Form Card */
.track-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.form-header h2 {
    color: #1a3a8f;
    font-size: 2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.form-header h2 i {
    font-size: 2.2rem;
    color: #2c5aa0;
}

.form-header p {
    color: #666;
    margin: 0;
    font-size: 1.05rem;
}

/* Search Info Box */
.search-info-box {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 4px solid #1a3a8f;
    border-radius: 10px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a3a8f;
    font-weight: 500;
}

.info-badge i {
    font-size: 1.3rem;
    color: #2c5aa0;
}

/* Form Groups */
.form-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.track-form-group {
    position: relative;
}

.track-form-group .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a3a8f;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.track-form-group .form-label i {
    font-size: 1.2rem;
    color: #2c5aa0;
}

.badge-optional {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: #ff9800;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.form-control-lg {
    padding: 12px 18px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control-lg:focus {
    background-color: white;
    border-color: #1a3a8f;
    box-shadow: 0 0 0 0.2rem rgba(26, 58, 143, 0.15);
    outline: none;
}

.form-control-lg::placeholder {
    color: #999;
    font-style: italic;
}

/* Form Helper Text */
.form-helper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 0;
}

.form-helper i {
    color: #2c5aa0;
    font-size: 0.9rem;
}

/* Form Action */
.form-action {
    margin: 35px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #153070 0%, #1f4a85 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 58, 143, 0.3);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.2);
}

/* Form Footer */
.form-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #25d366;
}

.form-footer p {
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-footer i {
    color: #25d366;
    font-size: 1.1rem;
}

/* ===========================================
   HELP SECTION
   =========================================== */
.track-help-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.track-help-section h3 {
    color: #1a3a8f;
    font-size: 1.8rem;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-help-section h3 i {
    color: #2c5aa0;
    font-size: 2rem;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.help-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 58, 143, 0.15);
    border-color: #1a3a8f;
}

.help-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.help-card:hover .help-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(26, 58, 143, 0.3);
}

.help-card h5 {
    color: #1a3a8f;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.help-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple elements */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 768px) {
    .track-hero {
        padding: 60px 0 40px;
    }

    .track-hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .track-hero-subtitle {
        font-size: 1rem;
    }

    .track-hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .feature-item {
        width: 100%;
    }

    .illustration-container {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }

    .track-form-card {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .form-header h2 i {
        font-size: 1.8rem;
    }

    .track-form-group .form-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge-optional {
        margin-left: 0;
        margin-top: 5px;
    }

    .help-cards {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .track-hero {
        padding: 50px 0 30px;
    }

    .track-hero-title {
        font-size: 1.5rem;
    }

    .form-header {
        text-align: left;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }

    .form-header p {
        font-size: 0.95rem;
    }

    .track-form-card {
        padding: 20px 15px;
    }

    .illustration-container {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}

/* ===========================================
   PRINT STYLE
   =========================================== */
@media print {
    .track-hero,
    .track-help-section {
        display: none;
    }

    .track-form-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
