/* form/assets/css/style.css */

/* Appliquer la police moderne Inter partout */
body, button, input, optgroup, select, textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

body {
    background-color: #fafbfc;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    /* Ensures main content pushes footer down */
}

/* Define theme colors */
:root {
    --jmmj-primary: #2f3376;
    /* Dark Green */
    --jmmj-secondary: #a93435;
    /* Gold/Brown */
    --jmmj-light: #f1f8f5;
    /* Light green tint for backgrounds */
}

/* On adoucit les boutons Bootstrap existants pour correspondre à Tailwind */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Custom Primary Button */
.btn-primary {
    background-color: var(--jmmj-primary);
    border-color: var(--jmmj-primary);
}

.btn-primary:hover {
    background-color: #494ca1; /* Bleu plus clair au survol */
    border-color: #494ca1;
}

/* Custom Outline Button */
.btn-outline-primary {
    color: var(--jmmj-primary);
    border-color: var(--jmmj-primary);
}

.btn-outline-primary:hover {
    background-color: var(--jmmj-primary);
    color: white;
}

/* Custom Secondary/Accent Button */
.btn-secondary {
    background-color: var(--jmmj-secondary);
    border-color: var(--jmmj-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #c84041; /* Rouge plus clair au survol */
    border-color: #c84041;
    color: white;
}

/* Style links */
a {
    color: var(--jmmj-primary);
    text-decoration: none;
}

a:hover {
    color: #494ca1; /* Bleu plus clair qui correspond au survol des boutons */
    text-decoration: underline;
}

/* Improve form focus */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border-color: #e5e7eb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--jmmj-primary);
    box-shadow: 0 0 0 4px rgba(47, 51, 118, 0.1);
}

/* Header and Footer specific styles */
.site-header {
    background-color: var(--jmmj-light);
    border-bottom: 3px solid var(--jmmj-primary);
    padding: 1rem 0;
}

.site-header .navbar-brand img {
    max-height: 50px;
    /* Adjust as needed */
}

.site-header .site-title {
    color: var(--jmmj-primary);
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 10px;
}

.site-footer {
    background-color: var(--jmmj-primary);
    color: rgba(255, 255, 255, 0.8);
    /* White text with some transparency */
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ffffff;
    /* White links in footer */
    text-decoration: underline;
}

.site-footer a:hover {
    color: #dddddd;
    /* Lighter gray on hover */
}

.footer-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Loading spinner styles */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-left: 5px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Alert styling override if needed */
.alert-primary {
    background-color: var(--jmmj-light);
    color: var(--jmmj-primary);
    border-color: #d1e2db;
}

/* Add other custom styles as needed */