/* Styles personnalisés pour le site Kaigre Avocat */

/* Variables CSS */
:root {
    --primary-color: #1e3a8a;     /* Bleu marine professionnel */
    --secondary-color: #f59e0b;    /* Accent doré */
    --text-dark: #1f2937;          /* Gris foncé pour le texte */
    --text-light: #6b7280;        /* Gris clair pour le texte secondaire */
    --border-light: #e5e7eb;      /* Bordures légères */
    --bg-light: #f9fafb;          /* Arrière-plan clair */
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navbar personnalisée */
.navbar-brand {
    font-size: 1.4rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Section Hero avec image de la baie de Brest */
.hero-section {
    background: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.8) 100%),
        url('/static/images/cabinet/baie-brest-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

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

.hero-wave {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-actions .btn {
    transition: all 0.3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cards avec effet hover */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

.hover-card:hover .service-icon {
    transform: scale(1.1);
}

/* Sections */
section {
    position: relative;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

/* Styles pour les icônes de contact */
.contact-info .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formulaire de contact */
.contact-form {
    background-color: var(--white) !important;
    border: 1px solid var(--border-light);
}

.form-control {
    border: 2px solid var(--border-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-select {
    border: 2px solid var(--border-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Boutons personnalisés */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: #1f2937 !important;
}

footer .social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Stats section */
.stats-grid .stat-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.stats-grid .stat-item:hover {
    transform: translateY(-3px);
}

/* Map placeholder */
.map-placeholder {
    border: 2px dashed var(--border-light);
    transition: border-color 0.3s ease;
}

.map-placeholder:hover {
    border-color: var(--primary-color);
}

/* Alertes personnalisées */
.alert {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Page d'erreur */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-illustration {
    font-size: 8rem;
    color: var(--text-light);
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
    
    .hero-section .min-vh-75 {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-info .contact-item {
        text-align: center;
    }
    
    .contact-info .icon-wrapper {
        margin: 0 auto 1rem auto;
    }
    
    .stats-grid .row {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem !important;
    }
    
    section {
        padding: 3rem 0 !important;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mode sombre (optionnel, pour le futur) */
@media (prefers-color-scheme: dark) {
    /* Les styles sombres peuvent être ajoutés ici si nécessaire */
}

/* Impression */
@media print {
    .navbar,
    footer,
    .btn,
    .hero-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* Styles pour la photo de l'avocate */
.avocat-photo-container {
    position: relative;
    display: inline-block;
    margin: 2rem 0;
}

.avocat-photo {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid var(--white);
}

.avocat-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.avocat-photo-frame {
    background: var(--white);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    display: inline-block;
}

.avocat-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Section cabinet avec intégration photo */
.cabinet-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
}

.cabinet-intro .avocat-photo-container {
    flex-shrink: 0;
}

.cabinet-intro .content {
    flex: 1;
}

/* Responsive pour la section cabinet */
@media (max-width: 768px) {
    .cabinet-intro {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .avocat-photo {
        width: 250px;
        height: 330px;
    }
}