/*
Theme Name: VetGrafik
Description: Thème WordPress pour VetGrafik - Design vétérinaire professionnel
Author: Laurent LACOUTURE
Version: 1.0.0
Text Domain: vetgrafik
*/

/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    padding: 60px 0 120px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 80px;
    }
}

/* ===================================
   HERO LEFT - LOGO SLIDER
   =================================== */
.hero-logo-slider {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-logo-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-logo-slide.prev {
    transform: translateX(-100%);
}

.hero-logo-card {
    background: #ffffff;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 
                0 10px 20px -5px rgba(41, 94, 164, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-logo-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2), 
                0 15px 30px -5px rgba(41, 94, 164, 0.15);
    transform: translateY(-5px);
}

.hero-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 400px;
}

/* Logo Slider Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(41, 94, 164, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    background-color: rgba(41, 94, 164, 0.6);
}

.hero-indicator.active {
    background-color: #295EA4;
    width: 32px;
}

/* ===================================
   HERO RIGHT - CONTENT
   =================================== */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #e8f0f9;
    color: #244374;
    border-radius: 9999px;
    font-size: 0.875rem;
    width: fit-content;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-highlight {
    color: #E8610D;
}

.hero-description {
    font-size: 1.25rem;
    color: #666666;
    max-width: 640px;
    line-height: 1.7;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.hero-btn-primary {
    background: #E8610D;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(232, 97, 13, 0.3);
}

.hero-btn-primary:hover {
    background: #d45709;
    box-shadow: 0 20px 25px -5px rgba(232, 97, 13, 0.4);
    transform: translateY(-2px);
}

.hero-btn-primary svg {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #e5e7eb;
}

.hero-btn-secondary:hover {
    background: #f9fafb;
    border-color: #295EA4;
    color: #295EA4;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.hero-stat-item {
    text-align: left;
}

.hero-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #295EA4;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: #666666;
    display: block;
}

.hero-stat-sublabel {
    font-size: 0.75rem;
    color: #999999;
    margin-top: 4px;
    display: block;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-logo-slider {
        height: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 16px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-logo-card {
        padding: 24px;
    }
}

/* ===================================
   PORTFOLIO MODALS (2 NIVEAUX)
   =================================== */

/* POPUP NIVEAU 1 - Galerie du projet */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-modal.hidden,
.image-modal.hidden {
    display: none !important;
}

.portfolio-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.portfolio-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 10000;
}

.portfolio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #666;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.portfolio-modal-close:hover {
    background: #f3f4f6;
    transform: rotate(90deg);
}

.portfolio-modal-body {
    padding: 60px 40px 40px;
}

.portfolio-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.portfolio-modal-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.portfolio-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.portfolio-modal-description {
    font-size: 1.125rem;
    color: #ffffff;
    background-color: #295EA4;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.portfolio-modal-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #295EA4;
    margin-bottom: 32px;
}

.portfolio-category {
    margin-bottom: 40px;
}

.portfolio-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #295EA4;
    margin-bottom: 16px;
}

.portfolio-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.portfolio-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 12px;
}

.portfolio-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.portfolio-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.portfolio-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-thumbnail:hover .portfolio-thumbnail-overlay {
    opacity: 1;
}

.portfolio-thumbnail-overlay span {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* POPUP NIVEAU 2 - Zoom image */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10001;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #666;
    transition: all 0.3s;
    z-index: 10;
}

.image-modal-close:hover {
    transform: rotate(90deg);
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

.image-modal-prev:hover,
.image-modal-next:hover {
    background: #f3f4f6;
    transform: translateY(-50%) scale(1.1);
}

.image-modal-counter {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #295EA4;
}

.image-modal-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #f9fafb;
    padding: 20px;
}

.image-modal-info {
    padding: 24px;
    background: white;
}

.image-modal-image-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #295EA4;
    margin-bottom: 8px;
}

.image-modal-image-description {
    font-size: 1rem;
    color: #ffffff;
    background-color: #295EA4;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-modal-body {
        padding: 50px 20px 20px;
    }
    
    .portfolio-modal-title {
        font-size: 1.5rem;
    }
    
    .portfolio-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .image-modal-prev {
        left: 10px;
    }
    
    .image-modal-next {
        right: 10px;
    }
    
    .image-modal-counter {
        top: 10px;
    }
    
    .image-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* ===================================
   CONTACT FORM MESSAGES
   =================================== */
#form-message {
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#form-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

#form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#form-message.hidden {
    display: none;
}

/* Animation du spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===================================
   VETOSITE MODAL
   =================================== */
.vetosite-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vetosite-modal.hidden {
    display: none !important;
}

.vetosite-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.vetosite-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 100000;
}

.vetosite-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.vetosite-modal-close:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: rotate(90deg);
}

.vetosite-modal-body {
    padding: 60px 40px 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .vetosite-modal-content {
        max-height: 95vh;
    }
    
    .vetosite-modal-body {
        padding: 50px 20px 20px;
    }
    
    .vetosite-modal-close {
        top: 10px;
        right: 10px;
    }
}
