/* ================================================================ */
/* MAIN.CSS - FICHIER CSS PRINCIPAL POUR NAMES LEGAL */
/* ================================================================ */

/* ===========================================
   CSS VARIABLES & BOOTSTRAP OVERRIDES
   =========================================== */
:root {
    /* Bootstrap custom overrides */
    --bs-primary: #337e16;
    --bs-primary-rgb: 51, 126, 22;
    --bs-secondary: #709eae;
    --bs-success: #337e16;
    --bs-info: #709eae;
    --bs-warning: #fbbf24;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #132a31;

    /* NAMES LEGAL custom theme */
    --names-legal-primary: #337e16;
    /* vert branding */
    --names-legal-secondary: #709eae;
    /* bleu-gris */
    --names-legal-accent: #132a31;
    /* très foncé, utilisé pour contraster */

    /* Variables pour les bordures des inputs */
    --bs-border-width: 1px;
    --bs-border-color: #dee2e6;
    --bs-border-radius: 0.375rem;
    
    /* Variables personnalisées pour inputs fins - Thème NAMES LEGAL */
    --input-border-width: 0.5px;                                    /* Bordure plus fine */
    --input-border-color: rgba(112, 158, 174, 0.3);                /* Bleu-gris très subtil */
    --input-border-color-focus: var(--names-legal-primary);         /* Vert branding au focus */
    --input-border-radius: 0.25rem;                                 /* Coins moins arrondis */
    --input-box-shadow-focus: 0 0 0 0.1rem rgba(51, 126, 22, 0.15); /* Shadow verte subtile */
    
    /* Variantes pour états spéciaux */
    --input-border-color-hover: rgba(112, 158, 174, 0.5);          /* Hover bleu-gris */
    --input-border-color-valid: var(--names-legal-primary);         /* Validation vert */
    --input-border-color-invalid: var(--bs-danger);                 /* Erreur rouge */
    --input-bg-focus: rgba(51, 126, 22, 0.02);                     /* Arrière-plan focus très léger */
}

/* ===========================================
   GLOBAL STYLES
   =========================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--names-legal-primary) 0%, #709eae 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--names-legal-primary), var(--names-legal-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    --bs-btn-bg: var(--names-legal-primary);
    --bs-btn-border-color: var(--names-legal-primary);
    --bs-btn-hover-bg: #2a6b13;
    --bs-btn-hover-border-color: #2a6b13;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* ===========================================
   FEATURES CAROUSEL STYLES
   =========================================== */
.features-carousel .carousel-control-prev,
.features-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.features-carousel .carousel-control-prev:hover,
.features-carousel .carousel-control-next:hover {
    opacity: 1;
}

.features-carousel .carousel-control-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.features-carousel .carousel-control-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.features-carousel .carousel-indicators {
    margin-bottom: 0;
    gap: 8px;
}

.features-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid var(--bs-primary);
}

.features-carousel .carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--bs-primary);
}

/* ===========================================
   FEATURE CARDS ANIMATIONS
   =========================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.icon-box {
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.15) rotate(5deg);
}

/* ===========================================
   CAROUSEL GLOBAL STYLES
   =========================================== */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-icon {
    transition: all 0.3s ease;
}

.carousel-control-icon:hover {
    transform: scale(1.1);
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Carousel auto-play settings */
#featuresCarousel {
    --bs-carousel-transition-duration: 0.8s;
}

#featuresCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* ===========================================
   BADGE ANIMATIONS
   =========================================== */
.badge {
    transition: all 0.3s ease;
}

.card:hover .badge {
    transform: scale(1.05);
}

/* Feature type specific styles */
.feature-boolean .badge {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

.feature-limit .badge {
    background: linear-gradient(45deg, #132a31, #709eae) !important;
}

.feature-text .badge {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
}

/* ===========================================
   FEATURES PAGE STYLES
   =========================================== */
.features-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-stat {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    display: block;
}

.stat-label {
    color: #6c757d;
    margin-top: 0.5rem;
}

.feature-row {
    margin-bottom: 5rem;
}

.feature-reverse .row {
    flex-direction: row-reverse;
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary), #2a6b13);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.feature-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.visual-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    opacity: 0.7;
}

.theme-showcase {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.theme-preview {
    position: relative;
    overflow: hidden;
}

.theme-preview img {
    transition: transform 0.3s ease;
}

.theme-showcase:hover .theme-preview img {
    transform: scale(1.05);
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-showcase:hover .theme-overlay {
    opacity: 1;
}

.theme-info {
    padding: 1.5rem;
}

.theme-features {
    margin-top: 1rem;
}

.feature-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
}

.features-cta {
    background: linear-gradient(135deg, var(--bs-primary), #2a6b13) !important;
}

.mockup-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

.mockup-placeholder-content {
    opacity: 0.6;
}

/* ===========================================
   CLASSE GÉNÉRIQUE POUR FORMULAIRES NAMES LEGAL
   =========================================== */

.names-legal-form .form-control,
.names-legal-form .form-select {
    border-width: var(--input-border-width);
    border-color: var(--input-border-color);
    border-radius: var(--input-border-radius);
    transition: all 0.3s ease;
}

.names-legal-form .form-control:focus,
.names-legal-form .form-select:focus {
    border-color: var(--input-border-color-focus);
    box-shadow: var(--input-box-shadow-focus);
    background-color: var(--input-bg-focus);
}

.names-legal-form .form-control:hover,
.names-legal-form .form-select:hover {
    border-color: var(--input-border-color-hover);
}

/* Validation states */
.names-legal-form .form-control.is-valid,
.names-legal-form .form-select.is-valid {
    border-color: var(--input-border-color-valid);
}

.names-legal-form .form-control.is-invalid,
.names-legal-form .form-select.is-invalid {
    border-color: var(--input-border-color-invalid);
}

/* Labels avec icônes */
.names-legal-form .form-label {
    font-weight: 600;
    color: var(--names-legal-accent);
}

.names-legal-form .form-label i {
    color: var(--names-legal-primary);
    width: 16px;  }

/* ===========================================
   ABOUT PAGE STYLES
   =========================================== */
.about-hero {
    padding: 5rem 0;
}

.about-stats {
    background: #f8f9fa;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bs-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 1.1rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-profession {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===========================================
   CONTACT PAGE STYLES
   =========================================== */
.contact-hero {
    padding: 3rem 0;
    background: #f8f9fa;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quick-faq .faq-item {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.quick-faq .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.quick-faq .faq-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===========================================
   LOADING & SKELETON STATES
   =========================================== */
.feature-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .hero-section {
        min-height: 60vh;
    }

    .features-carousel .carousel-control-prev,
    .features-carousel .carousel-control-next {
        width: 8%;
    }

    .features-carousel .carousel-control-icon {
        width: 35px;
        height: 35px;
    }

    .icon-box {
        width: 60px !important;
        height: 60px !important;
    }

    .icon-box i {
        font-size: 1.5rem !important;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .feature-reverse .row {
        flex-direction: column;
    }

    .feature-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .features-carousel .carousel-indicators {
        display: none;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem auto;
    }
}

/* ===========================================
   DARK MODE SUPPORT
   =========================================== */
[data-bs-theme="dark"] .features-carousel .carousel-control-icon {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .hover-lift:hover {
    box-shadow: 0 1.5rem 3rem rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .theme-showcase {
    background: #212529;
}

[data-bs-theme="dark"] .contact-info {
    background: #212529;
}

[data-bs-theme="dark"] .contact-form-wrapper {
    background: #212529;
}

[data-bs-theme="dark"] .testimonial-card {
    background: #212529;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.min-vh-75 {
    min-height: 75vh;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* ===========================================
   Style pour la barre de langue
=========================================== */

/* ===========================================
   TOPBAR STYLES - NAMES LEGAL
   =========================================== */

#topbar {
    background: linear-gradient(135deg, var(--names-legal-primary) 0%, #2a6b13 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#topbar .contact-info {
    color: rgba(255, 255, 255, 0.9);
}

#topbar .contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

#topbar .contact-info a:hover {
    color: white;
    text-decoration: underline;
}

#topbar .contact-info i {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
}

/* ===========================================
   LANGUAGE SELECTOR STYLES
   =========================================== */

.language-bar {
    display: flex;
    align-items: center;
}

.language-bar form {
    margin: 0;
}

.language-bar .btn-group {
    gap: 3px;
}

.language-bar .btn {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 4px;
}

.language-bar .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-bar .btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--names-legal-primary);
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.language-bar .btn.active:hover {
    background: white;
    color: var(--names-legal-primary);
    transform: translateY(-1px);
}

/* ===========================================
   SOCIAL LINKS STYLES
   =========================================== */

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-links .linkedin:hover {
    background: #0077b5;
    color: white;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media (max-width: 768px) {
    #topbar {
        padding: 10px 0;
    }

    #topbar .contact-info {
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }

    #topbar .contact-info .d-flex {
        margin-bottom: 5px;
    }

    .language-bar {
        justify-content: center;
        margin-bottom: 10px;
    }

    .language-bar .btn {
        font-size: 11px;
        padding: 3px 6px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    #topbar .contact-info {
        flex-direction: column;
    }

    #topbar .contact-info .ms-md-4 {
        margin-left: 0 !important;
        margin-top: 5px;
    }

    .language-bar .btn-group {
        gap: 2px;
    }

    .language-bar .btn {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* ===========================================
   DARK MODE SUPPORT
   =========================================== */

[data-bs-theme="dark"] #topbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-bs-theme="dark"] .language-bar .btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .language-bar .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .language-bar .btn.active {
    background: var(--names-legal-primary);
    color: white;
    border-color: var(--names-legal-primary);
}

[data-bs-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#topbar {
    animation: fadeInDown 0.5s ease-out;
}

.language-bar .btn {
    position: relative;
    overflow: hidden;
}

.language-bar .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.language-bar .btn:hover::before {
    left: 100%;
}

/* ===========================================
   BADGE INDICATOR (optionnel)
   =========================================== */

.language-bar .btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--names-legal-secondary);
    border-radius: 1px;
}