/* ===== Variables et Reset ===== */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 3px 5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.12);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header-section {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-brand i {
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.02);
}

.brand-name {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-cta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    animation: pulse 2s ease-in-out infinite;
}

.header-cta i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    padding: 1.75rem 0;
}

/* ===== Loading Indicator ===== */
#loadingIndicator {
    padding: 2rem 0;
}

/* ===== Simple Intro ===== */
.intro-text {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Category Cards ===== */
.categories-section {
    margin-top: 0;
}

.row.g-4 {
    --bs-gutter-y: 0.8rem;
    --bs-gutter-x: 0.8rem;
}

/* Classe custom pour 5 colonnes sur desktop (20% x 5 = 100%) */
@media (min-width: 992px) {
    .col-lg-20 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.category-card {
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    box-shadow: var(--shadow-sm);
    min-height: 115px;
}

.category-card .card-body {
    padding: 0.85rem 0.7rem;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.category-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.category-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    margin-top: 0.4rem;
}

.category-card .card-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
}

/* ===== Message Section ===== */
.message-section {
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-container {
    max-width: 700px;
    margin: 0 auto;
}

.btn-nouveau {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 0.65rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    color: white;
}

.btn-nouveau:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-nouveau:active {
    transform: translateY(0);
}

.message-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin: 0;
    font-weight: 400;
}

/* ===== Info Sections (About, Privacy, Contact) ===== */
.info-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.info-section.bg-white {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Privacy Policy Styles */
.privacy-content {
    margin-top: 2rem;
}

.privacy-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Contact Styles */
.contact-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer-section {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 1.5rem 0;
    margin-top: 0;
}

.footer-section p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--bg-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-light);
    margin: 0 0.75rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .header-cta {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .category-icon {
        font-size: 1.4rem;
    }
    
    .category-card {
        min-height: 110px;
    }
    
    .message-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 0.7rem 0;
    }
    
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .message-card {
        padding: 1.4rem;
    }
    
    .message-text {
        font-size: 1rem;
    }
    
    .btn-nouveau {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
    
    .category-card {
        min-height: 105px;
    }
    
    .category-card .card-body {
        padding: 0.75rem 0.6rem;
    }
    
    .info-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.05rem;
    }
    
    .navbar-brand i {
        font-size: 1.4rem;
    }
    
    .category-card .card-title {
        font-size: 0.9rem;
    }
    
    .category-card .card-text {
        font-size: 0.72rem;
    }
    
    .category-icon {
        font-size: 1.3rem;
    }
    
    .category-card {
        min-height: 100px;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Focus States for Accessibility ===== */
.category-card:focus,
.btn-nouveau:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== RÉDUCTION TAILLE CARTES SUR TÉLÉPHONE ===== */
@media (max-width: 767px) {
    .category-card {
        min-height: 90px !important;
    }
    
    .category-card .card-body {
        padding: 0.6rem 0.5rem !important;
    }
    
    .category-icon {
        font-size: 1.2rem !important;
    }
    
    .category-card .card-title {
        font-size: 0.85rem !important;
        margin-top: 0.3rem !important;
    }
    
    .category-card .card-text {
        font-size: 0.68rem !important;
    }
}

@media (max-width: 575px) {
    .category-card {
        min-height: 85px !important;
    }
    
    .category-card .card-body {
        padding: 0.5rem 0.4rem !important;
    }
    
    .category-icon {
        font-size: 1.1rem !important;
    }
    
    .category-card .card-title {
        font-size: 0.8rem !important;
    }
    
    .category-card .card-text {
        font-size: 0.65rem !important;
    }
}

/* ===== STYLES POUR NAVIGATION NAVBAR ===== */

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link i {
    font-size: 1rem;
    color: var(--primary-color);
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
}

.nav-link:hover i {
    color: var(--secondary-color);
}

.nav-link-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    margin-left: 0.5rem;
}

.nav-link-contact i {
    color: white;
}

.nav-link-contact:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Navigation */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-link-contact {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767px) {
    .navbar-toggler {
        border-color: var(--primary-color);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}


/* ===== STYLES POUR PAGES À PROPOS ET POLITIQUE ===== */

/* Wrapper principal des pages */
.page-wrapper {
    padding: 2rem 0 3rem 0;
}

/* Titre de la page */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.page-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Contenu de la page */
.page-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Texte de paragraphe */
.page-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.page-text:last-child {
    margin-bottom: 0;
}

/* Bloc de mise en évidence */
.page-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.highlight-title i {
    margin-right: 0.5rem;
}

/* Liste dans les pages */
.page-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.page-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.page-list li:last-child {
    border-bottom: none;
}

.page-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Section politique de confidentialité */
.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.privacy-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.privacy-subtitle i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Lien dans la politique */
.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Info footer de page */
.page-footer-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.page-text-small {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    display: flex;
    align-items: center;
    margin: 0;
}

.page-text-small i {
    color: var(--primary-color);
}

/* ===== RESPONSIVE PAGES ===== */

@media (max-width: 991px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-title i {
        font-size: 1.6rem;
    }
    
    .page-content {
        padding: 1.75rem;
    }
    
    .highlight-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    .page-wrapper {
        padding: 1.5rem 0 2rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 1.5rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-highlight {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .highlight-title {
        font-size: 1.1rem;
    }
    
    .privacy-subtitle {
        font-size: 1.15rem;
    }
    
    .page-list li {
        padding-left: 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .page-title {
        font-size: 1.35rem;
    }
    
    .page-content {
        padding: 1.25rem;
    }
    
    .page-text {
        font-size: 0.95rem;
    }
    
    .page-highlight {
        padding: 1rem;
    }
    
    .highlight-title {
        font-size: 1.05rem;
    }
    
    .privacy-subtitle {
        font-size: 1.1rem;
    }
}

