/* e-process.css - Styles spécifiques à la page E-Process */

/* ========== STYLES DE BASE ========== */

h1 {
    text-align: center;
    margin-bottom: 40px;
}

.content-block {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
    scroll-margin-top: 150px;
}

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

.section-title {
    color: #4a90c8;
    font-size: clamp(1.5em, 3vw, 1.8em);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(74, 144, 200, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ========== BANNER BPM ========== */

.bpm-banner {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #001529 0%, #003057 50%, #1a5490 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.bpm-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 84, 144, 0.1) 0%, transparent 70%);
    opacity: 0.6;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.circuit-line {
    position: absolute;
    background: rgba(74, 144, 200, 0.4);
    box-shadow: 0 0 8px rgba(74, 144, 200, 0.6);
}

.circuit-line.h1 {
    width: 35%;
    height: 2px;
    top: 15%;
    left: 10%;
    animation: pulseCircuit 4s ease-in-out infinite;
}

.circuit-line.h2 {
    width: 25%;
    height: 2px;
    top: 45%;
    right: 15%;
    animation: pulseCircuit 5s ease-in-out infinite 1s;
}

.circuit-line.h3 {
    width: 30%;
    height: 2px;
    bottom: 20%;
    left: 20%;
    animation: pulseCircuit 4.5s ease-in-out infinite 2s;
}

.circuit-line.v1 {
    width: 2px;
    height: 25%;
    top: 20%;
    left: 25%;
    animation: pulseCircuit 4s ease-in-out infinite 0.5s;
}

.circuit-line.v2 {
    width: 2px;
    height: 30%;
    top: 30%;
    right: 20%;
    animation: pulseCircuit 5s ease-in-out infinite 1.5s;
}

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4a90c8;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(74, 144, 200, 0.8);
    animation: nodeGlow 3s ease-in-out infinite;
}

.circuit-node.n1 { top: 15%; left: 10%; animation-delay: 0s; }
.circuit-node.n2 { top: 15%; left: 45%; animation-delay: 0.5s; }
.circuit-node.n3 { top: 45%; right: 15%; animation-delay: 1s; }
.circuit-node.n4 { top: 45%; right: 40%; animation-delay: 1.5s; }
.circuit-node.n5 { bottom: 20%; left: 20%; animation-delay: 2s; }
.circuit-node.n6 { bottom: 20%; left: 50%; animation-delay: 2.5s; }
.circuit-node.n7 { top: 20%; left: 25%; animation-delay: 0.7s; }
.circuit-node.n8 { top: 30%; right: 20%; animation-delay: 1.2s; }

@keyframes pulseCircuit {
    0%, 100% { 
        opacity: 0.3;
        box-shadow: 0 0 8px rgba(74, 144, 200, 0.6);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(74, 144, 200, 1);
    }
}

@keyframes nodeGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(74, 144, 200, 0.8);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(74, 144, 200, 1), 0 0 30px rgba(74, 144, 200, 0.6);
    }
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
}

.banner-title {
    font-size: clamp(2.5em, 6vw, 4.5em);
    font-weight: 700;
    color: white;
    text-shadow: 
        0 0 20px rgba(74, 144, 200, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.banner-subtitle {
    font-size: clamp(1.2em, 3vw, 2em);
    font-weight: 300;
    color: #e8f4ff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-top: 15px;
    opacity: 0.9;
}

.banner-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* ========== INTRODUCTION ========== */

.intro-text {
    font-size: clamp(0.95em, 1.5vw, 1.05em);
    line-height: 1.7;
    color: #e8f4ff;
    padding: 18px 22px;
    background: rgba(0, 48, 87, 0.6);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-left: 4px solid rgba(74, 144, 200, 0.8);
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.definition-box {
    padding: 20px 25px;
    margin: 20px 0;
    background: rgba(0, 48, 87, 0.5);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-left: 4px solid rgba(74, 144, 200, 0.8);
    border-radius: 8px;
}

.definition-box h4 {
    color: #e8f4ff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2em;
}

.definition-box ul {
    margin-top: 10px;
}

.questions {
    padding: 25px;
    margin: 20px 0;
    background: rgba(0, 48, 87, 0.5);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-left: 4px solid rgba(74, 144, 200, 0.8);
    border-radius: 8px;
}

.questions h3 {
    color: #4a90c8;
    margin-top: 0;
    margin-bottom: 15px;
}

.questions ul li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1em;
}

.questions ul li:before {
    content: "❓";
    position: absolute;
    left: 5px;
    color: #d4a34a;
    font-size: 1.2em;
}

/* ========== SOLUTION ========== */

/* MODIFICATION 4: Augmentation de la police du paradigm-box */
.paradigm-box {
    padding: 18px 25px;
    margin: 20px 0;
    background: rgba(0, 48, 87, 0.5);
    backdrop-filter: blur(8px);
    border: 3px solid rgba(74, 144, 200, 0.6);
    text-align: center;
    border-radius: 8px;
}

.paradigm-box p {
    font-size: clamp(1.05em, 1.75vw, 1.15em); /* Augmenté de clamp(0.95em, 1.6vw, 1.05em) */
    color: #e8f4ff;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* MODIFICATION 5: Augmentation de la police du vision-section */
.vision-section {
    padding: 18px 22px;
    margin-bottom: 18px;
    background: rgba(0, 48, 87, 0.5);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-left: 4px solid rgba(74, 144, 200, 0.8);
    border-radius: 8px;
}

.vision-section ul li {
    font-size: 1.05em; /* Augmenté pour tout le bloc */
    line-height: 1.6;
}

.vision-section ul li:before {
    content: "→";
    color: #4a90c8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.benefit-card {
    background: rgba(0, 48, 87, 0.6);
    backdrop-filter: blur(8px);
    padding: 16px;
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-radius: 8px;
}

.benefit-card h4 {
    color: #e8f4ff;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ========== SHOWCASE ========== */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 0 auto 30px auto;
    max-width: 1200px;
}

.showcase-item {
    background: rgba(0, 48, 87, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid rgba(74, 144, 200, 0.4);
    transition: all 0.4s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 200, 0.6);
    box-shadow: 0 20px 60px rgba(0, 48, 87, 0.6);
}

.showcase-item-full {
    grid-column: 1 / -1;
}

.item-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e8f4ff;
}

.item-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #003057, #1a5490);
    border-radius: 10px;
    text-align: center;
    line-height: 35px;
    margin-right: 12px;
    font-weight: bold;
}

/* ========== BPMN CONTAINER ========== */

/* MODIFICATION 6: Réduction de la hauteur des 2 premières sections */
.bpmn-container {
    position: relative;
    height: 450px; /* Réduit de 550px à 450px */
    padding: 15px; /* Réduit de 20px à 15px */
    overflow: hidden;
}

/* ========== IFRAME CONTAINER ========== */

/* MODIFICATION 8: Ajout d'une phrase d'invitation */
.form-invitation {
    text-align: center;
    font-size: 1.1em;
    color: #4a90c8;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(74, 144, 200, 0.1);
    border-radius: 8px;
}

.iframe-container {
    width: 100%;
    min-height: 1200px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.iframe-container iframe {
    display: block;
    width: 100%;
    min-height: 1200px;
}

/* ========== INTEGRATION CONTAINER ========== */

/* MODIFICATION 6 et 7: Réduction de la hauteur et centrage */
.integration-container {
    position: relative;
    height: 350px; /* Réduit de 300px à 350px pour mieux centrer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-central {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #003057, #1a5490);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 48, 87, 0.8);
    z-index: 10;
    position: absolute; /* Changé pour centrage absolu */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: flash-glow 2s ease-in-out infinite;
}

@keyframes flash-glow {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(0, 48, 87, 0.8);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 60px rgba(74, 144, 200, 1), 0 0 80px rgba(26, 84, 144, 0.8);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.server-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    color: white;
}

.server-icon {
    font-size: 1.8rem;
}

.integration-node {
    position: absolute;
    width: 90px;
    height: 70px;
    background: linear-gradient(135deg, rgba(74, 144, 200, 0.2), rgba(26, 84, 144, 0.2));
    border: 2px solid #4a90c8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float-node 3s ease-in-out infinite;
    padding: 8px;
}

.node-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.node-label {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
    color: white !important;
}

@keyframes float-node {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Ajustement des positions des nœuds pour le centrage */
.node-1 { top: 10%; left: 15%; animation-delay: 0s; }
.node-2 { top: 10%; right: 15%; animation-delay: 0.5s; }
.node-3 { bottom: 10%; left: 15%; animation-delay: 1s; }
.node-4 { bottom: 10%; right: 15%; animation-delay: 1.5s; }

/* ========== DASHBOARD ========== */

.analytics-dashboard {
    width: 100%;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-card {
    background: linear-gradient(135deg, rgba(0, 48, 87, 0.3), rgba(26, 84, 144, 0.3));
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-radius: 12px;
    padding: 20px;
}

.chart-title {
    font-size: 1rem;
    color: #e8f4ff;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.pie-chart {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.bar-chart,
.line-chart {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.chart-legend {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e8f4ff;
}

.legend-color {
    width: 18px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== HIGHLIGHT BOX ========== */

/* MODIFICATION 2 et 3: Application du style rotating-banner aux highlight-box */
.highlight-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 8px;
    margin: 30px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(74, 144, 200, 0.3);
}

.highlight-box-text {
    font-size: clamp(1em, 1.8vw, 1.2em);
    font-weight: 600;
    text-align: center;
    white-space: normal;
    max-width: 90%;
    padding: 0 10px;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

/* Effet shimmer électrique identique au rotating-text */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .highlight-box-text {
        background: linear-gradient(110deg, #d0e5f5 0%, #ffffff 50%, #d0e5f5 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.highlight-box-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.08) 20%,
        rgba(0, 255, 255, 0.18) 40%,
        rgba(0, 212, 255, 0.25) 50%,
        rgba(0, 255, 255, 0.18) 60%,
        rgba(0, 212, 255, 0.08) 80%,
        transparent 100%
    );
    animation: electricBanner 4s ease-in-out infinite;
    transform: skewX(-15deg);
    filter: blur(2px);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
}

@keyframes electricBanner {
    0% {
        left: -100%;
    }
    100% {
        left: 120%;
    }
}

.highlight-box-text {
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

/* ========== NAVIGATION BUTTONS ========== */

.navigation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(74, 144, 200, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a90c8, #2a6aa0);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5aa0d8, #3a7ab0);
}

/* ========== MODAL DE CONTACT ========== */

/* MODIFICATION 1: S'assurer que le bouton contact utilise le même style que index.html */
/* Le style est défini dans global.css et ne doit pas être surchargé ici */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    padding: 35px;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal h2 {
    color: #003057;
    margin-bottom: 25px;
    border-bottom: 2px solid #003057;
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #003057;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.form-group label.required:after {
    content: " *";
    color: #d32f2f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #1a5490;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003057;
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85em;
    margin-top: 5px;
    min-height: 18px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.send-btn {
    background: #2a6aa0;
    color: white;
}

.send-btn:hover {
    background: #3a7ab5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 106, 160, 0.3);
}

.cancel-btn {
    background: #f0f4f8;
    color: #003057;
    border: 2px solid #003057;
}

.cancel-btn:hover {
    background: #e0e8f0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .intro-text {
        padding: 15px 18px;
        font-size: 0.95em;
    }
    
    .definition-box,
    .questions {
        padding: 18px;
    }
    
    .highlight-box {
        padding: 20px;
        font-size: 1em;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .bpm-banner {
        height: 300px;
    }

    .banner-content {
        padding: 20px;
    }

    .circuit-line.h1,
    .circuit-line.h2,
    .circuit-line.h3 {
        width: 40%;
    }

    .circuit-line.v1,
    .circuit-line.v2 {
        height: 35%;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bpm-banner {
        height: 250px;
    }

    .banner-subtitle {
        margin-top: 10px;
    }
}

.form-invitation {
    text-align: center;
    margin: 30px auto;
    padding: 25px 40px;
    background: linear-gradient(135deg, 
        rgba(26, 84, 144, 0.1) 0%, 
        rgba(74, 144, 200, 0.15) 50%, 
        rgba(26, 84, 144, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 200, 0.3);
    box-shadow: 0 4px 15px rgba(74, 144, 200, 0.2);
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.form-invitation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmerMove 3s infinite;
    pointer-events: none;
}

.form-invitation .shimmer-text {
    font-size: 1.2em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

@keyframes shimmerMove {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(50%) translateY(50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .form-invitation {
        padding: 20px 25px;
        margin: 20px auto;
    }
    
    .form-invitation .shimmer-text {
        font-size: 1em;
    }
}