/* style.css */

/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Définition des variables CSS personnalisées (pour Shadcn UI) */
:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
}

/* Styles de base pour le corps et les éléments */
* {
    border-color: hsl(var(--border));
}
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Source Sans Pro', sans-serif; /* Police par défaut */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Styles personnalisés spécifiques au design AbAmAd */
.font-heading {
    font-family: 'Montserrat', sans-serif; /* Police spécifique pour les titres */
}
.text-brand-blue {
    color: #3b82f6; /* Une nuance de bleu */
}
.hover\:text-brand-blue\/80:hover { /* Utilitaire hover de Tailwind pour la couleur personnalisée */
    color: rgba(59, 130, 246, 0.8);
}
.text-brand-accent {
    color: #1e293b; /* Une nuance de gris foncé */
}
.gradient-bg {
    background: linear-gradient(to right, #6366f1, #8b5cf6); /* Du bleu-indigo au violet */
}

/* Styles pour les composants Shadcn UI (simplifiés pour HTML) */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem; /* rounded-md */
    padding-left: 0.625rem; /* px-2.5 */
    padding-right: 0.625rem; /* px-2.5 */
    padding-top: 0.125rem; /* py-0.5 */
    padding-bottom: 0.125rem; /* py-0.5 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border: 1px solid transparent;
}
.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}
.badge-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    height: 2.25rem; /* h-9 */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-default {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.btn-default:hover {
    background-color: hsl(var(--primary) / 0.9);
}
.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}
.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.card {
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.card-header {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.375rem; /* space-y-1.5 */
}
.card-title {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em; /* tracking-tight */
}
.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

.input-field {
    display: flex;
    height: 2.25rem; /* h-9 */
    width: 100%;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem; /* px-3 */
    padding-top: 0.25rem; /* py-1 */
    padding-bottom: 0.25rem; /* py-1 */
    font-size: 1rem; /* text-base */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.input-field::placeholder {
    color: hsl(var(--muted-foreground));
}
.input-field:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px hsl(var(--ring));
}
.input-field:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
@media (min-width: 768px) {
    .input-field {
        font-size: 0.875rem; /* md:text-sm */
    }
}

.textarea-field {
    display: flex;
    min-height: 60px;
    width: 100%;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem; /* px-3 */
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
    font-size: 1rem; /* text-base */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.textarea-field::placeholder {
    color: hsl(var(--muted-foreground));
}
.textarea-field:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px hsl(var(--ring));
}
.textarea-field:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
@media (min-width: 768px) {
    .textarea-field {
        font-size: 0.875rem; /* md:text-sm */
    }
}
