/* ==========================================
   STYLES PERSONNALISÉS POUR LE SITE VITRINE
   (COULEURS DYNAMIQUES VIA LES VARIABLES CSS)
   ========================================== */

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3.5rem;
}

/* --- Cartes --- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* --- Boutons --- */
.btn {
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

/* --- Témoignages --- */
.blockquote-footer {
    margin-top: 8px;
}

/* --- Footer --- */
footer a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* --- Responsive ajustements --- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* --- Gallery images --- */
.img-thumbnail {
    border-radius: 8px;
}

/* ==========================================
   STYLES POUR LES TEXTES RICH (CKEDITOR)
   ========================================== */
.rich-text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #212529;
    word-wrap: break-word;
}

.rich-text h2, .rich-text h3, .rich-text h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
}

.rich-text h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary-color, #0d6efd);
    padding-bottom: 0.5rem;
}

.rich-text h3 {
    font-size: 1.5rem;
}

.rich-text h4 {
    font-size: 1.25rem;
}

.rich-text p {
    margin-bottom: 1.2rem;
}

.rich-text ul, .rich-text ol {
    margin: 1.2rem 0;
    padding-left: 1.8rem;
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rich-text blockquote {
    border-left: 5px solid var(--primary-color, #0d6efd);
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

.rich-text blockquote p {
    margin-bottom: 0;
}

.rich-text a {
    color: var(--primary-color, #0d6efd);
    text-decoration: underline;
    transition: color 0.2s;
}

.rich-text a:hover {
    color: var(--secondary-color, #0a58ca);
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.rich-text table th,
.rich-text table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: top;
}

.rich-text table th {
    background-color: var(--primary-color, #0d6efd);
    color: white;
    font-weight: 600;
}

.rich-text table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Styles pour les citations */
.rich-text .citation {
    font-style: italic;
    color: #6c757d;
    border-left: 4px solid var(--primary-color, #0d6efd);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* Responsive pour les tableaux */
@media (max-width: 768px) {
    .rich-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Espacement des listes sur mobile */
@media (max-width: 576px) {
    .rich-text ul, .rich-text ol {
        padding-left: 1.2rem;
    }
    .rich-text li {
        margin-bottom: 0.3rem;
    }
}