/* Partie banner  */

#banner-712 span {
    color: #fff;
}

#banner-712 span a {
    color: var(--primary);
    text-decoration: none;
}

@media only screen and (min-width: 0rem) {
    #banner-712 {
        padding: clamp(10.9375rem, 10vw, 12.5rem) 1rem 6.25rem;
        position: relative;
        z-index: 1;
    }

    #banner-712 .cs-container {
        text-align: center;
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: center;
        /* align-items: flex-start; */
        flex-direction: column;
        gap: 1rem;
    }

    #banner-712 .cs-int-title {
        font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
        /* font-weight: 900; */
        line-height: 1.2em;
        text-align: inherit;
        margin: 0;
        color: var(--bodyTextColorWhite);
        position: relative;
    }

    #banner-712 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    #banner-712 .cs-background:before {
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #000;
        opacity: 0.75;
        top: 0;
        left: 0;
        z-index: 1;
    }

    #banner-712 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

@media only screen and (min-width: 48rem) {
    #banner-712 .cs-background:before {
        opacity: 1;
        background: linear-gradient(
            90.01deg,
            rgba(0, 0, 0, 0.9) 16.86%,
            rgba(0, 0, 0, 0) 100%
        );
    }
}
/* Fin partie banner  */

@media only screen and (min-width: 0rem) {
    .services-341 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(3rem, 6vw, 4rem);
    }

    .services-341 {
        padding: var(--sectionPadding);
    }

    .services-341 .cs-content {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services-341 .cs-card-group {
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: clamp(1rem, 1.6vw, 1.25rem);
    }

    .services-341 .cs-item {
        list-style: none;
        width: 100%;
        max-width: 31.25rem;
        border-radius: 0.5rem;
        position: relative;
        z-index: 1;
        transition:
            box-shadow 0.3s,
            transform 0.3s,
            background 0.3s;
        background: #fff;
    }

    .services-341 .cs-item:hover {
        box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
        transform: translateY(-0.4375rem);
    }

    .services-341 .cs-item:hover .cs-picture img {
        transform: scale(1.1);
    }

    .services-341 .cs-item:hover .cs-h3 {
        color: var(--primaryDark);
    }

    .services-341 .cs-item:before {
        content: "";
        width: 100%;
        height: 100%;
        border-radius: 0.5rem;
        border: 1px solid #e8e8e8;
        background: 0 0;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .services-341 .cs-link {
        text-decoration: none;
        padding-bottom: clamp(1rem, 2.2vw, 1.5rem);
        display: block;
    }

    .services-341 .cs-picture {
        width: 100%;
        height: 15rem;
        margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
        border-radius: 0.5rem 0.5rem 0 0;
        overflow: hidden;
        display: block;
        position: relative;
        z-index: 10;
    }

    .services-341 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition:
            transform 0.6s,
            opacity 0.3s;
    }

    .services-341 .cs-h3 {
        font-size: clamp(1.25rem, 3vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: 700;
        color: var(--headerColor);
        margin: 0 0 0.75rem;
        padding: 0 clamp(1rem, 2vw, 1.5rem);
        transition: color 0.3s;
    }

    .services-341 .cs-item-text {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        color: var(--bodyTextColor);
        margin-bottom: 20px;
        padding: 0 clamp(1rem, 2.2vw, 1.5rem);
    }
}

/* Layout principal */
.space-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenu principal */
.space-container .main {
    flex: 1;
}

.space-container .form {
    max-width: 100%;
}

.space-container .panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.space-container .panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
}

.space-container .panel:hover {
    border-color: #3b82f6;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.space-container .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.space-container .panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.space-container .char-count {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.space-container .code-textarea {
    width: 100%;
    height: 400px;
    padding: 1.25rem;
    border: none;
    background: #ffffff;
    color: #0f172a;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.space-container .code-textarea::placeholder {
    color: #94a3b8;
}

.space-container .code-textarea:focus {
    background: #ffffff;
}

.space-container .output-textarea {
    background: #fafafa;
    color: #64748b;
}

/* Actions */
.space-container .actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.space-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;

    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
    min-width: 140px;
    justify-content: center;
}

.space-container .btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.space-container .btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.space-container .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.space-container .btn-secondary {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.space-container .btn-secondary:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.space-container .btn-outline {
    background: #ffffff;
    color: #64748b;
    border-color: #e2e8f0;
}

.space-container .btn-outline:hover {
    background: #f1f5f9;
    border-color: #64748b;
    color: #0f172a;
    transform: translateY(-1px);
}

.space-container .btn svg {
    flex-shrink: 0;
}

#version {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Statistiques */
.space-container .stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: #ffffff;

    border: 1px solid #e2e8f0;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.space-container .stat-item {
    text-align: center;
    min-width: 140px;
}

.space-container.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.space-container .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.space-container .stat-item.success .stat-value {
    color: #10b981;
}

/* États de chargement */
.space-container .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

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

.space-container .stats {
    animation: fadeIn 0.3s ease-out;
}

/* Toast pour les notifications */
.space-container .toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.75rem 1rem;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .space-container .panels {
        grid-template-columns: 1fr;
    }

    .space-container .stats {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .space-container .container {
        padding: 0;
    }

    .space-container .main {
        /* padding: 1.5rem 1rem; */
        padding: 15rem 1.5rem 3rem 1.5rem;
    }

    .space-container .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .space-container .btn {
        min-width: auto;
    }

    .space-container .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .space-container .stat-item {
        min-width: auto;
    }

    .space-container .code-textarea {
        height: 300px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .space-container .main {
        padding: 1rem;
    }

    .space-container .panel-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .space-container .code-textarea {
        padding: 1rem;
        height: 250px;
    }
}

.faq-container {
    width: 80%;
    margin: 20px auto 70px auto;
}

.faq-question {
    padding: 15px;
    background-color: #f0f0f0;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.faq-question:hover {
    background-color: #e0e0e0;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
}

.faq-question.active::after {
    content: "-";
}

.faq-answer {
    padding: 15px;
    display: none;
    /* Caché par défaut */
    border-bottom: 1px solid #ccc;
}

.faq-answer.show {
    display: block;
}
