/**
 * D360X Widgets Styles
 * Global styles matching the HTML prototype design
 */

/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==================== GLOBAL VARIABLES (from HTML prototype) ==================== */
:root {
    /* Colors */
    --d360x-primary: #FF6B00;
    --d360x-primary-dark: #D45A00;
    --d360x-primary-light: #FF8C30;
    --d360x-primary-glow: rgba(255, 107, 0, 0.2);
    --d360x-secondary: #1a1a1a;
    --d360x-dark: #0a0a0a;
    --d360x-light: #f8f8f8;
    --d360x-white: #ffffff;
    --d360x-medium-gray: #333333;
    --d360x-text-gray: #666666;
    --d360x-border-light: rgba(0, 0, 0, 0.08);

    /* Typography */
    --d360x-font-heading: 'Playfair Display', serif;
    --d360x-font-body: 'Montserrat', sans-serif;

    /* Effects */
    --d360x-radius-button: 50px;
    --d360x-radius-card: 20px;
    --d360x-radius-small: 8px;
    --d360x-transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --d360x-transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --d360x-shadow-card: 0 20px 40px rgba(0, 0, 0, 0.08);
    --d360x-shadow-card-hover: 0 40px 80px rgba(255, 107, 0, 0.15);
    --d360x-shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.1);

    /* Gradients */
    --d360x-gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF8C30 100%);
    --d360x-gradient-primary-hover: linear-gradient(135deg, #FF8C30 0%, #FF6B00 100%);
}

/* ==================== COMMON SECTION STYLES ==================== */
.d360x-section {
    width: 100%;
    position: relative;
}

.d360x-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d360x-container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
.d360x-heading {
    font-family: var(--d360x-font-heading);
    color: var(--d360x-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.d360x-heading-xl {
    font-size: 48px;
}

.d360x-heading-lg {
    font-size: 36px;
}

.d360x-heading-md {
    font-size: 28px;
}

.d360x-heading-sm {
    font-size: 22px;
}

.d360x-text {
    font-family: var(--d360x-font-body);
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

.d360x-text-lg {
    font-size: 18px;
}

.d360x-text-sm {
    font-size: 14px;
}

/* ==================== BUTTONS (matching HTML prototype) ==================== */
.d360x-button {
    display: inline-block;
    padding: 20px 45px;
    background: var(--d360x-gradient-primary);
    color: var(--d360x-white);
    font-family: var(--d360x-font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--d360x-radius-button);
    cursor: pointer;
    transition: var(--d360x-transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px var(--d360x-primary-glow);
}

/* Shine effect on hover */
.d360x-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
    z-index: -1;
}

.d360x-button:hover::before {
    left: 0;
}

.d360x-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
    color: var(--d360x-white);
}

.d360x-button-secondary {
    background: var(--d360x-secondary);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.2);
}

.d360x-button-secondary:hover {
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.3);
}

.d360x-button-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--d360x-white);
    box-shadow: none;
}

.d360x-button-outline:hover {
    background: var(--d360x-gradient-primary);
    border-color: transparent;
    color: var(--d360x-white);
}

.d360x-button-lg {
    padding: 20px 45px;
    font-size: 1rem;
}

.d360x-button-sm {
    padding: 12px 25px;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ==================== CARDS (matching HTML prototype) ==================== */
.d360x-card {
    background: var(--d360x-white);
    border-radius: var(--d360x-radius-card);
    padding: 35px 30px 40px;
    box-shadow: var(--d360x-shadow-card);
    transition: var(--d360x-transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Gradient overlay on hover */
.d360x-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--d360x-gradient-primary);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.d360x-card:hover {
    transform: translateY(-25px) scale(1.02);
    box-shadow: var(--d360x-shadow-card-hover);
    z-index: 10;
}

.d360x-card:hover::before {
    opacity: 0.03;
}

.d360x-card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--d360x-radius-card);
    margin-bottom: 20px;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.d360x-card:hover .d360x-card-image {
    transform: scale(1.1);
}

.d360x-card-icon {
    font-size: 1.8rem;
    color: var(--d360x-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--d360x-white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--d360x-transition-smooth);
    position: relative;
    z-index: 2;
}

.d360x-card:hover .d360x-card-icon {
    background: var(--d360x-gradient-primary);
    color: var(--d360x-white);
    transform: translateY(-10px);
}

.d360x-card-title {
    font-family: var(--d360x-font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--d360x-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    padding-bottom: 15px;
}

/* Animated underline */
.d360x-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--d360x-gradient-primary);
    transition: width 0.6s ease;
}

.d360x-card:hover .d360x-card-title::after {
    width: 70px;
}

.d360x-card-text {
    font-family: var(--d360x-font-body);
    color: var(--d360x-text-gray);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* ==================== GRID SYSTEM ==================== */
.d360x-grid {
    display: grid;
    gap: 30px;
}

.d360x-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.d360x-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.d360x-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==================== HERO SECTIONS ==================== */
.d360x-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.d360x-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.d360x-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.d360x-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 800px;
    padding: 40px 20px;
}

.d360x-hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.d360x-hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.d360x-hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
}

/* ==================== FORM STYLES ==================== */
.d360x-form {
    width: 100%;
}

.d360x-form-group {
    margin-bottom: 20px;
}

.d360x-form-label {
    display: block;
    font-family: var(--d360x-font-heading);
    font-weight: 500;
    color: var(--d360x-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.d360x-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--d360x-font-body);
    font-size: 15px;
    transition: var(--d360x-transition);
    background: #fff;
}

.d360x-form-control:focus {
    outline: none;
    border-color: var(--d360x-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.d360x-form-control.error {
    border-color: #e74c3c;
}

.d360x-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.d360x-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.d360x-form-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.d360x-form-success {
    background: #27ae60;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

/* ==================== CONTACT INFO ==================== */
.d360x-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: var(--d360x-radius-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--d360x-transition);
}

.d360x-contact-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.d360x-contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--d360x-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.d360x-contact-content h4 {
    font-family: var(--d360x-font-heading);
    color: var(--d360x-secondary);
    font-size: 18px;
    margin-bottom: 8px;
}

.d360x-contact-content p {
    font-family: var(--d360x-font-body);
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.d360x-footer {
    background: var(--d360x-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.d360x-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start; /* Aligne toutes les colonnes en haut */
}

.d360x-footer-logo {
    max-width: 150px;
    display: block;
    margin-bottom: 15px;
}

.d360x-footer-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.d360x-footer-column h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.d360x-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.d360x-footer-column ul li {
    margin-bottom: 10px;
}

.d360x-footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--d360x-transition);
    font-family: var(--d360x-font-body);
}

.d360x-footer-column ul li a:hover {
    color: var(--d360x-primary);
    padding-left: 5px;
}

.d360x-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-family: var(--d360x-font-body);
    color: rgba(255, 255, 255, 0.6);
}

.d360x-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.d360x-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--d360x-transition);
}

.d360x-social-link:hover {
    background: var(--d360x-primary);
    transform: translateY(-3px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {

    .d360x-grid-3,
    .d360x-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .d360x-heading-xl {
        font-size: 36px;
    }

    .d360x-hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .d360x-grid-2,
    .d360x-grid-3,
    .d360x-grid-4 {
        grid-template-columns: 1fr;
    }

    .d360x-heading-xl {
        font-size: 32px;
    }

    .d360x-heading-lg {
        font-size: 28px;
    }

    .d360x-hero-title {
        font-size: 32px;
    }

    .d360x-hero-subtitle {
        font-size: 18px;
    }

    .d360x-hero-description {
        font-size: 16px;
    }

    .d360x-footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .d360x-container {
        padding: 0 15px;
    }

    .d360x-button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .d360x-card {
        padding: 20px;
    }

    .d360x-hero-title {
        font-size: 28px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d360x-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.d360x-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.d360x-slide-right {
    animation: slideInRight 0.6s ease-out;
}

/* ==================== UTILITY CLASSES ==================== */
.d360x-text-center {
    text-align: center;
}

.d360x-text-left {
    text-align: left;
}

.d360x-text-right {
    text-align: right;
}

.d360x-mb-0 {
    margin-bottom: 0 !important;
}

.d360x-mb-10 {
    margin-bottom: 10px !important;
}

.d360x-mb-20 {
    margin-bottom: 20px !important;
}

.d360x-mb-30 {
    margin-bottom: 30px !important;
}

.d360x-mb-40 {
    margin-bottom: 40px !important;
}

.d360x-mt-0 {
    margin-top: 0 !important;
}

.d360x-mt-10 {
    margin-top: 10px !important;
}

.d360x-mt-20 {
    margin-top: 20px !important;
}

.d360x-mt-30 {
    margin-top: 30px !important;
}

.d360x-mt-40 {
    margin-top: 40px !important;
}
