/* Présentation Écosystème Ubby - Lahma - Carrière Digitale */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow: hidden;
    height: 100vh;
}

.presentation-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 60px;
    animation: slideIn 0.6s ease-out;
    min-height: 80vh;
    position: relative;
}

.slide.active {
    display: block;
}

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

/* Navigation */
.nav-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slide counter */
.slide-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Typography */
h1 {
    font-size: 3em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.6em;
    margin: 25px 0 15px 0;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 10px;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

/* Emojis et icônes */
.emoji {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Cards pour les acteurs */
.actor-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actor-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.actor-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.actor-card ul {
    list-style: none;
    padding-left: 0;
}

.actor-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.actor-card li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Avantages grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.advantage-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: scale(1.05);
}

.advantage-item h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* Parcours client */
.client-journey {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.journey-step {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    position: relative;
}

.journey-step:not(:last-child):after {
    content: "→";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
}

.journey-step h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Schéma d'articulation */
.articulation-schema {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.schema-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border-top: 5px solid;
    transition: transform 0.3s ease;
}

.schema-item:hover {
    transform: translateY(-10px);
}

.schema-item:nth-child(1) { border-top-color: #667eea; }
.schema-item:nth-child(2) { border-top-color: #764ba2; }
.schema-item:nth-child(3) { border-top-color: #f093fb; }

.schema-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Synthèse finale */
.synthesis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.synthesis-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.synthesis-item .emoji {
    font-size: 2em;
}

/* Responsive */
@media (max-width: 768px) {
    .slide {
        padding: 30px;
        width: 95%;
    }
    
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    
    .client-journey {
        flex-direction: column;
    }
    
    .journey-step:not(:last-child):after {
        content: "↓";
        right: 50%;
        top: 100%;
        transform: translateX(50%);
    }
    
    .articulation-schema {
        grid-template-columns: 1fr;
    }
    
    .synthesis-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations d'entrée */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Print styles */
@media print {
    body {
        background: white;
        overflow: visible;
        height: auto;
    }
    
    .slide {
        display: block !important;
        page-break-after: always;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        width: 100%;
        max-width: none;
    }
    
    .nav-container,
    .slide-counter {
        display: none;
    }
}