/*
 * TEAM Acquisition - Refonte du site
 *
 * Ce fichier CSS contient le design complet et les animations pour la refonte du site.
 * L'environnement est inspiré de la technologie, du digital et de l'innovation.
 *
 * Auteurs : Votre agence d'IA
 * Date : Septembre 2025
 *
 */

/* ==================================== */
/* 1. Variables et Réinitialisation */
/* ==================================== */

:root {
    /* Couleurs de la palette */
    --clr-primary: #00FFFF;       /* Couleur principale : Cyan lumineux */
    --clr-secondary: #4FC3F7;    /* Couleur secondaire : Bleu ciel */
    --clr-accent: #9cecfb;       /* Couleur d'accentuation : Aqua clair */

    /* Couleurs de fond et de texte */
    --clr-background-dark: #0A0A1F;  /* Arrière-plan principal : Très sombre */
    --clr-background-mid: #1A1A30;   /* Arrière-plan secondaire : Gris-bleu sombre */
    --clr-text-light: #E0E0E0;       /* Texte clair pour le contraste */
    --clr-text-subtle: #E0E0E0;      /* Texte secondaire ou discret */

    /* Effets de lumière et d'ombre */
    --eff-border-glow: rgba(0, 255, 255, 0.3); /* Lueur de bordure subtile */
    --eff-shadow-glow: rgba(0, 255, 255, 0.2); /* Ombre lumineuse */

    /* Animations et transitions */
    --anim-duration: 0.8s;                  /* Durée des animations principales */
    --trans-fast: all 0.3s ease-in-out;     /* Transition rapide et fluide */
    --trans-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transition lente et élégante */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--clr-background-dark);
    color: var(--clr-text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================================== */
/* 2. Backgrounds et Animations */
/* ==================================== */

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--clr-background-dark) 0%, rgba(10, 10, 31, 0.8) 50%, rgba(0, 255, 255, 0.1) 100%);
    opacity: 0.8;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================================== */
/* 3. Globales et Composants Bootstrap */
/* ==================================== */

.bg-dark-transparent {
    background-color: rgba(10, 10, 31, 0.9);
    backdrop-filter: blur(5px);
}

.container {
    max-width: 1200px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

.section-title.text-start::after, .section-title.text-lg-start::after {
    left: 0;
    transform: translateX(0);
}

.btn-primary.custom-btn {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-background-dark);
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--trans-fast);
}

.btn-primary.custom-btn:hover {
    background-color: transparent;
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    box-shadow: 0 0 15px var(--eff-shadow-glow);
}

.btn-outline-primary {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    font-weight: 600;
    transition: var(--trans-fast);
}

.btn-outline-primary:hover {
    background-color: var(--clr-primary);
    color: var(--clr-background-dark);
    box-shadow: 0 0 15px var(--eff-shadow-glow);
}

/* ==================================== */
/* 4. Sections Spécifiques */
/* ==================================== */

/* Hero Section */
.hero-content {
    background: rgba(10, 10, 31, 0.6);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 30px var(--eff-shadow-glow);
    border: 1px solid var(--eff-border-glow);
}

.hero-content h1 {
    font-size: calc(2rem + 3vw);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Services Section */
.service-card {
    background-color: rgba(26, 26, 48, 0.8);
    border: 1px solid var(--eff-border-glow);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    transition: var(--trans-slow);
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--eff-shadow-glow);
}

.service-card h3 {
    color: var(--clr-primary); 
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--clr-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.service-card i {
    color: var(--clr-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Calculateur Section */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: flex-start;
    padding: 2rem;
    background-color: rgba(26, 26, 48, 0.9);
    border: 1px solid var(--eff-border-glow);
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 25px var(--eff-shadow-glow);
}

@media (min-width: 992px) {
    .calculator-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Côté Gauche - Options */
.calculator-options-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.option-group h3 {
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.option-item-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(10, 10, 31, 0.7);
    border: 2px solid transparent;
    border-radius: 1rem;
    cursor: pointer;
    transition: var(--trans-fast);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.option-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-secondary);
    box-shadow: 0 5px 20px var(--eff-shadow-glow);
}

.option-item-card.selected {
    border-color: var(--clr-primary);
    background-color: rgba(0, 255, 255, 0.1);
    animation: pulseGlow 1.5s infinite alternate;
}

.option-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    transition: var(--trans-fast);
}

.option-item-card.selected .option-icon {
    transform: scale(1.1);
}

.option-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-text-light);
    margin: 0;
}

.option-description {
    font-size: 0.9rem;
    color: var(--clr-text-subtle);
    margin: 0;
}

.option-price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: rgba(156, 236, 251, 0.1);
    border-radius: 50px;
    border: 1px solid var(--clr-accent);
    opacity: 0.8;
}

/* Côté Droit - Résumé */
.calculator-summary-side {
    background-color: rgba(10, 10, 31, 0.9);
    border: 1px solid var(--clr-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 20px var(--eff-shadow-glow);
    position: sticky;
    top: 2rem;
}

.summary-container {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

#summary-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

#summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: var(--clr-text-light);
    opacity: 0;
    animation: fadeInSlide 0.5s ease-out forwards;
}

#summary-list li:first-child {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.summary-item-price {
    font-weight: 600;
    color: var(--clr-accent);
}

.summary-total-box {
    border-top: 2px solid var(--clr-primary);
    padding-top: 1.5rem;
    margin-top: auto;
}

.summary-total-text {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

#summary-total-price {
    font-size: 2.5rem;
    color: var(--clr-primary);
    font-weight: 700;
    animation: totalPricePulse 2s infinite alternate;
}

/* Contact Section */
.contact-info-card, .contact-form-card {
    background-color: var(--clr-background-mid);
    border: 1px solid var(--eff-border-glow);
    border-radius: 1rem;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list i {
    color: var(--clr-primary);
    margin-right: 10px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--clr-text-light);
    margin-right: 15px;
    transition: var(--trans-fast);
}

.social-icon:hover {
    color: var(--clr-primary);
    transform: scale(1.1);
}

/* Page Réalisations */
.realisation-card {
    background-color: rgba(26, 26, 48, 0.8);
    border: 1px solid var(--eff-border-glow);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    transition: var(--trans-slow);
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.realisation-card img {
    border-radius: 0.5rem;
    transition: all 0.5s ease-in-out;
}

.realisation-card:hover img {
    transform: scale(1.05);
}

.realisation-card .card-body h5 {
    color: var(--clr-primary);
}

/* Page FAQ */
.faq-section {
    padding: 5rem 0;
}

.accordion-item {
    background-color: var(--clr-background-mid);
    border: 1px solid var(--eff-border-glow);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.accordion-button {
    background-color: transparent;
    color: var(--clr-text-light);
    font-weight: 600;
    padding: 1.5rem;
    transition: background-color 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--clr-primary);
    box-shadow: 0 0 10px var(--eff-shadow-glow);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 255, 0.25);
}

.accordion-body {
    color: var(--clr-text-subtle);
}

.faq-icon {
    color: var(--clr-primary);
}

/* Page Équipe */
.team-member-card {
    background-color: var(--clr-background-mid);
    border: 1px solid var(--eff-border-glow);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--trans-fast);
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--eff-shadow-glow);
}

.team-member-card img {
    border: 3px solid var(--clr-primary);
    box-shadow: 0 0 15px var(--eff-shadow-glow);
}

.team-member-card h5 {
    color: var(--clr-primary);
    font-weight: 600;
}

/* ==================================== */
/* 5. Cookie Banner */
/* ==================================== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(10, 10, 31, 0.95);
    border: 1px solid var(--eff-border-glow);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-right: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Modal */
.cookie-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    padding-top: 50px;
}

.cookie-modal-content {
    background-color: var(--clr-background-mid);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--eff-border-glow);
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.modal-close {
    color: var(--clr-text-light);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--clr-primary);
}

.cookie-category {
    margin-bottom: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.category-title {
    font-size: 1.2rem;
    color: var(--clr-primary);
    margin: 0;
}

.required-tag {
    background-color: var(--clr-primary);
    color: var(--clr-background-dark);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-description {
    font-size: 0.9rem;
    color: var(--clr-text-subtle);
}

.form-check-input:checked {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* ==================================== */
/* 6. Animations génériques */
/* ==================================== */

.animated-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animations Keyframes pour le calculateur */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 5px var(--eff-shadow-glow); }
    to { box-shadow: 0 0 20px var(--eff-shadow-glow); }
}

@keyframes totalPricePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* ==================================== */
/* 7. Responsive Design */
/* ==================================== */

@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(10, 10, 31, 0.95);
        border-top: 1px solid var(--eff-border-glow);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        margin-top: 15px;
        justify-content: center;
    }
}