/* ============================================
   COMPOSANTS SPÉCIFIQUES
   Styles extraits des styles inline pour améliorer la maintenabilité
   ============================================ */

/* ===== CARTES BOUTIQUE ===== */
.card-image-container {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-dashed {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--border-color);
    background-color: var(--bg-light);
}

.card-dashed-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== OFFRES / SERVICES ===== */
.offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offer-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.offer-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-card-title {
    font-size: 1.5rem;
}

.offer-card-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.service-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0;
    min-height: 8rem;
}

.service-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.service-card-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.service-card-description {
    margin-bottom: 1.5rem;
    flex-grow: 0;
    min-height: 4.5rem;
}

.service-card-features {
    margin-bottom: 1.5rem;
}

.service-card-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.service-card-cta .btn {
    width: 100%;
}

.service-card-featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.service-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== TÉMOIGNAGES ===== */
.testimonial-card {
    /* Utilise déjà .card */
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.testimonial-company {
    margin: 0;
    font-weight: 600;
}

.testimonial-text {
    margin-top: 1rem;
    font-weight: 600;
}

.testimonial-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== PRÉSENTATION ===== */
.presentation-card {
    text-align: center;
}

.presentation-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.presentation-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presentation-text-card {
    display: flex;
    align-items: center;
}

.presentation-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-section {
    padding: 3rem 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.contact-form-grid {
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
}

.contact-form-card {
    padding: 1.5rem !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
}

.contact-form-label {
    display: block !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background: transparent !important;
    border: none !important;
}

.contact-form-card-message {
    padding: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

.contact-form-card-submit {
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.contact-form-group {
    width: 100%;
    margin: 0;
}

/* ===== FOOTER ===== */
.footer-content-wrapper {
    text-align: center;
    padding: 2rem 0;
}

.footer-brand {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-white);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-lang-separator {
    color: var(--bg-white);
    opacity: 0.4;
    margin: 0 0.5rem;
}

.footer-lang-link {
    color: var(--bg-white);
    opacity: 0.9;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.footer-lang-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== FICHES DÉTAILLÉES ===== */
.fiche-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.fiche-image-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.fiche-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fiche-image-container-tool {
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.fiche-image-container-tool img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-light);
}

.fiche-content-section {
    margin-bottom: 2rem;
}

.fiche-before-after {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.fiche-before-title {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.fiche-after-title {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.fiche-before-after ul {
    font-size: 0.9rem;
    color: var(--text-light);
}

.fiche-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fiche-data-source {
    font-size: 0.9rem;
    color: var(--text-light);
}

.fiche-price-box {
    margin-bottom: 2rem;
}

.fiche-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.fiche-form {
    margin-bottom: 2rem;
}

.fiche-form-group-spaced {
    margin-top: 1rem;
}

.fiche-form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* ===== FILTRES HERO ===== */
.hero-filters {
    margin-top: 0.125rem !important;
    margin-bottom: 0 !important;
}

.hero-filters:not(:first-of-type) {
    margin-top: 1mm !important;
}

.hero .filter-btn {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--bg-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero .filter-btn:hover,
.hero .filter-btn.active {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== PROJETS / CARTES ===== */
.project-card {
    text-align: center;
}

.project-image-container {
    height: 200px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-emoji-container {
    height: 200px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 4rem;
}

.project-emoji-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-emoji-gradient-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-title {
    margin-bottom: 1rem;
}

.project-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.project-cta {
    width: 100%;
}

/* ===== CGV ===== */
.cgv-card {
    padding: 3rem;
}

.cgv-section-title {
    margin-top: 2rem;
}

.cgv-section-text {
    margin-top: 1rem;
}

.cgv-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ===== UTILITAIRES ===== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== GRID UTILITAIRES ===== */
.grid-gap-lg {
    gap: 2rem;
}

.grid-align-stretch {
    align-items: stretch;
}

/* ===== FICHES - LIEN RETOUR ===== */
.fiche-back-link {
    margin-bottom: 1.5rem;
}

.fiche-back-link a {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== FICHES - CONTENU ===== */
.fiche-content-spaced {
    margin-top: 1rem;
}

.fiche-list-indented {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.fiche-methodology-section {
    margin-bottom: 1.5rem;
}

.fiche-methodology-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.fiche-methodology-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fiche-methodology-text {
    margin-bottom: 1rem;
}

.fiche-methodology-text-small {
    margin-bottom: 0.5rem;
}

.fiche-link-external {
    color: var(--accent-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fiche-container {
        grid-template-columns: 1fr !important;
    }
    
    .fiche-before-after {
        grid-template-columns: 1fr !important;
    }
}
