/* ========== VARIABLES SPÉCIFIQUES ========== */
:root {
    --hosting-blue: #1A365D;
    --hosting-blue-light: #2D4B8C;
    --hosting-orange: #E06C00;
    --hosting-green: #38A169;
    --hosting-purple: #805AD5;
    --hosting-gold: #D4AF37;
}

/* ========== HERO SPÉCIFIQUE HÉBERGEMENT ========== */
.expertise-hero {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--hosting-blue) 100%);
    color: var(--blanc);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.expertise-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(56, 161, 105, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(224, 108, 0, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.expertise-hero::after {
    content: '⚡';
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 300px;
    opacity: 0.05;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.expertise-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: var(--blanc);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 40px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    padding: 5px 0;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb span {
    color: var(--orange);
    font-weight: 600;
}

/* ========== OVERVIEW SECTION ========== */
.expertise-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 60px 0;
}

.overview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--bleu-nuit);
    position: relative;
    padding-bottom: 15px;
}

.overview-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--orange);
}

.overview-content p {
    margin-bottom: 20px;
    color: var(--gris-fonce);
    line-height: 1.8;
}

.overview-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.overview-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.overview-image:hover img {
    transform: scale(1.05);
}

/* ========== PRICING SECTION ========== */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2338a169' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Onglets pour les types d'hébergement */
.technologies-tabs {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--bleu-nuit-light);
    padding: 20px;
    border-bottom: 1px solid var(--gris);
}

.tab-button {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: var(--blanc);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.tab-button::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: 0.5s;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 108, 0, 0.3);
}

.tab-content {
    display: none;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content .section-subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: var(--bleu-nuit);
    font-weight: 600;
}

.tab-content>p {
    text-align: center;
    margin-bottom: 40px;
    color: var(--gris-fonce);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille de tarification */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange);
}

.pricing-card.popular {
    border-color: var(--orange);
    position: relative;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular::before {
    content: 'POPULAIRE';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--orange);
    color: var(--blanc);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
    letter-spacing: 1px;
}

.pricing-header {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--hosting-blue-light) 100%);
    color: var(--blanc);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.pricing-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-header::after {
    transform: scaleX(1);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--blanc);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blanc);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}

.pricing-features {
    padding: 30px;
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gris);
    color: var(--gris-fonce);
    transition: var(--transition);
}

.pricing-features li:hover {
    color: var(--bleu-nuit);
    transform: translateX(5px);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    width: 20px;
    flex-shrink: 0;
}

.pricing-features li i.fa-check {
    color: var(--hosting-green);
}

.pricing-features li i.fa-times {
    color: #E53E3E;
    opacity: 0.7;
}

.pricing-cta {
    padding: 0 30px 30px;
    text-align: center;
}

.pricing-cta .cta-button {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
}

.pricing-cta .cta-button:hover {
    background: transparent;
    background-image: none;
    color: var(--orange);
}

/* ========== TECHNOLOGIES SECTION ========== */
.technologies-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--hosting-blue) 100%);
    color: var(--blanc);
    position: relative;
    overflow: hidden;
}

.technologies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(224, 108, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.technologies-section .section-title,
.technologies-section .section-subtitle {
    color: var(--blanc);
    position: relative;
    z-index: 2;
}

.technologies-section .container {
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-item i {
    color: var(--orange);
    margin-bottom: 15px;
    display: block;
    transition: var(--transition);
    font-size: 2.5rem;
}

.tech-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.tech-item span {
    font-weight: 600;
    color: var(--blanc);
    font-size: 1.1rem;
    display: block;
}

/* ========== SERVICES SECTION ========== */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-item {
    background: var(--blanc);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 108, 0, 0.05), transparent);
    transition: 0.5s;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--orange);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--blanc);
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-item:hover .service-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--bleu-nuit);
    position: relative;
    z-index: 1;
}

.service-content p {
    color: var(--gris-fonce);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ========== CTA SPÉCIFIQUE ========== */
.expertise-cta {
    background: linear-gradient(135deg, var(--hosting-blue) 0%, var(--bleu-nuit) 100%);
    color: var(--blanc);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.expertise-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(56, 161, 105, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(224, 108, 0, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.expertise-cta .container {
    position: relative;
    z-index: 2;
}

.expertise-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--blanc);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.expertise-cta p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.expertise-cta .cta-button {
    background: linear-gradient(135deg, var(--hosting-green), #2F855A);
    border: none;
    font-size: 1.2rem;
    padding: 18px 40px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3);
}

.expertise-cta .cta-button:hover {
    background: transparent;
    color: var(--hosting-green);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.5);
}

/* ========== ANIMATIONS ========== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card,
.tech-item,
.service-item {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

/* Délais d'animation pour les cartes de prix */
.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Délais d'animation pour les services */
.service-item:nth-child(1) {
    animation-delay: 0.1s;
}

.service-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-item:nth-child(3) {
    animation-delay: 0.3s;
}

.service-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Animation pour l'éclair */
@keyframes flash {

    0%,
    100% {
        opacity: 0.05;
    }

    50% {
        opacity: 0.1;
    }
}

.expertise-hero::after {
    animation: float 6s ease-in-out infinite, flash 3s ease-in-out infinite;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablette (768px - 992px) */
@media (max-width: 992px) {
    .expertise-hero {
        padding: 140px 0 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .expertise-overview {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .overview-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .overview-image {
        order: -1;
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }

    .overview-image:hover {
        transform: none;
    }

    .tab-buttons {
        justify-content: center;
    }

    .tab-button {
        min-width: 140px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .pricing-card.popular {
        transform: none;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .expertise-cta h2 {
        font-size: 2.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .expertise-hero {
        padding: 120px 0 60px;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .expertise-hero::after {
        font-size: 200px;
        bottom: -30px;
        right: -30px;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tab-button {
        min-width: 100%;
        padding: 15px;
    }

    .pricing-card.popular::before {
        top: 15px;
        right: -30px;
        font-size: 0.7rem;
        padding: 4px 30px;
    }

    .price {
        font-size: 2.5rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .tech-item {
        padding: 20px 15px;
    }

    .tech-item i {
        font-size: 2rem;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .expertise-cta h2 {
        font-size: 2.2rem;
    }

    .expertise-cta p {
        font-size: 1.1rem;
    }
}

/* Très petits écrans (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        margin-bottom: 20px;
    }

    .pricing-card.popular {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-content {
        padding: 20px 15px;
    }

    .pricing-header {
        padding: 30px 20px;
    }

    .pricing-features {
        padding: 20px;
    }

    .expertise-cta h2 {
        font-size: 1.8rem;
    }

    .expertise-cta p {
        font-size: 1rem;
    }

    .expertise-cta .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}