/* ============================================
   Style CSS pour la Présentation Shawarma Syrien
   ============================================ */

/* === Variables CSS === */
:root {
    --primary-color: #D2691E;
    --secondary-color: #8B4513;
    --accent-color: #F4A460;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --bg-dark: #16213e;
    --bg-darker: #1a1a2e;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-arabic: 'Amiri', serif;
    --font-main: 'Poppins', sans-serif;
}

/* === Styles Généraux === */
.reveal {
    font-family: var(--font-main);
    font-size: 18px;
}

.reveal h1, .reveal h2, .reveal h3 {
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: none;
}

.reveal h1 {
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reveal h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.reveal h3 {
    font-size: 1.1em;
}

.reveal p {
    line-height: 1.4;
    font-size: 0.9em;
}

.reveal a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.reveal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* === Slide Titre === */
.title-slide {
    text-align: center;
}

.main-title {
    font-size: 2em !important;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary-color);
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px var(--accent-color), 0 0 40px var(--accent-color);
    }
}

.subtitle {
    font-size: 1em;
    font-style: italic;
    opacity: 0.9;
}

.author {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.8;
}

.bounce-arrow {
    margin-top: 25px;
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* === Content Box === */
.content-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === Learning Objective === */
.learning-objective {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
}

.learning-objective i {
    font-size: 1.2em;
}

/* === Timeline === */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid var(--accent-color);
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 3px;
}

/* === Images === */
.image-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.food-image {
    max-width: 30%;
    max-height: 180px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.food-image:hover {
    transform: scale(1.02);
}

.image-caption {
    font-style: italic;
    opacity: 0.8;
    margin-top: 5px;
    font-size: 0.75em;
}

/* === Ingredients Grid === */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
}

.ingredient-card {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.3), rgba(139, 69, 19, 0.3));
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.ingredient-card i {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.ingredient-card h3 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.ingredient-card p {
    font-size: 0.75em;
    opacity: 0.8;
}

/* === Spices Wheel === */
.spices-wheel {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.spice-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.spice-item:hover {
    transform: scale(1.15) rotate(15deg);
    background: var(--primary-color);
    border-color: var(--accent-color);
}

.spice-name {
    font-size: 1em;
    color: var(--accent-color);
    font-weight: 600;
    min-height: 25px;
}

/* === Steps Container === */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.15);
}

.step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0;
    font-size: 0.9em;
}

.step-detail {
    display: none;
    margin-top: 5px;
    font-size: 0.8em;
    opacity: 0.9;
}

.step.active .step-detail {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 0.9; transform: translateY(0); }
}

.instruction-hint {
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 10px;
}

/* === Quiz Styles === */
.quiz-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 0.95em;
    margin-bottom: 12px;
    min-height: 35px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.85em;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-color);
}

.quiz-option.correct {
    background: var(--success-color);
    border-color: var(--success-color);
}

.quiz-option.incorrect {
    background: var(--error-color);
    border-color: var(--error-color);
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-feedback {
    margin: 10px 0;
    font-size: 0.85em;
    min-height: 20px;
}

.quiz-score {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--accent-color);
}

.quiz-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    color: white;
    font-size: 0.85em;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(210, 105, 30, 0.4);
}

/* === Comparison Table === */
.comparison-table {
    overflow-x: auto;
    max-width: 700px;
    margin: 0 auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75em;
}

.comparison-table th,
.comparison-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-table th {
    background: var(--primary-color);
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Cooking Animation === */
.cooking-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    height: 180px;
    margin: 15px 0;
}

.shawarma-spit {
    position: relative;
    width: 50px;
    height: 150px;
    animation: rotate-spit 4s linear infinite;
}

@keyframes rotate-spit {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.meat-layer {
    position: absolute;
    width: 100%;
    height: 25px;
    background: linear-gradient(135deg, #8B4513, #A0522D, #CD853F);
    border-radius: 25px / 12px;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.3);
}

.meat-layer:nth-child(1) { top: 0; }
.meat-layer:nth-child(2) { top: 28px; }
.meat-layer:nth-child(3) { top: 56px; }
.meat-layer:nth-child(4) { top: 84px; }
.meat-layer:nth-child(5) { top: 112px; }

.spit-rod {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 170px;
    background: linear-gradient(90deg, #666, #999, #666);
    border-radius: 3px;
    top: -10px;
}

.fire-container {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.flame {
    width: 18px;
    height: 35px;
    background: linear-gradient(to top, #ff6b35, #ff9500, #ffcc00);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s ease-in-out infinite alternate;
}

.flame:nth-child(2) {
    height: 45px;
    animation-delay: 0.1s;
}

.flame:nth-child(3) {
    height: 30px;
    animation-delay: 0.2s;
}

@keyframes flicker {
    0% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(1.1) scaleX(0.9);
        opacity: 0.8;
    }
}

.temperature-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.85em;
}

.temperature-control input[type="range"] {
    width: 120px;
    accent-color: var(--primary-color);
}

#tempValue {
    min-width: 60px;
    font-weight: 600;
    color: var(--accent-color);
}

/* === Nutrition Cards === */
.nutrition-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nutrition-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    width: 140px;
    text-align: center;
}

.nutrition-icon {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.nutrition-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.nutrition-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    transition: width 1s ease;
}

/* === Recipe Generator === */
.recipe-generator {
    text-align: center;
}

.generated-recipe {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
}

.generated-recipe .recipe-content {
    text-align: left;
}

.generated-recipe h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1em;
}

.generated-recipe ul {
    list-style: none;
    padding: 0;
}

.generated-recipe li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.generated-recipe li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.generator-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generator-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* === Cities Container === */
.cities-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.city-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.city-card.active {
    background: var(--primary-color);
    border-color: var(--accent-color);
}

.city-icon {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.city-card h3 {
    font-size: 0.9em;
}

.city-card p {
    font-size: 0.75em;
}

.city-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    min-height: 60px;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

/* === Tips List === */
.tips-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.tip-item i {
    color: var(--success-color);
    font-size: 1.1em;
}

/* === Summary Grid === */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.summary-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
}

.summary-item i {
    font-size: 1.3em;
    color: var(--accent-color);
}

/* === Conclusion === */
.conclusion-content {
    text-align: center;
}

.conclusion-text {
    font-size: 1em;
    max-width: 550px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.final-emoji {
    font-size: 2.5em;
}

/* === Credits List === */
.credits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 550px;
    margin: 0 auto;
}

.credit-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: left;
}

.credit-item h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.credit-item p {
    font-size: 0.7em;
    margin: 3px 0;
}

.credit-item a {
    word-break: break-all;
}

/* === License === */
.license-container {
    text-align: center;
}

.license-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.license-icons i {
    color: var(--accent-color);
    font-size: 1.5em !important;
}

.license-description {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 10px 0;
}

.license-link {
    display: inline-block;
    background: var(--primary-color);
    padding: 8px 18px;
    border-radius: 20px;
    margin-top: 12px;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.license-link:hover {
    background: var(--secondary-color);
    text-decoration: none;
}

/* === Thank You === */
.thank-you {
    text-align: center;
}

.thank-you h1 {
    font-family: var(--font-arabic);
    font-size: 3em !important;
    margin-bottom: 10px;
}

.thank-you h2 {
    font-size: 2em !important;
    color: var(--text-light);
}

.thank-you p {
    font-size: 1.3em;
    margin-top: 15px;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .credits-list {
        grid-template-columns: 1fr;
    }
    
    .cities-container {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .food-image {
        max-width: 90%;
    }
    
    .nutrition-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* === Fix pour slides avec images === */
.reveal .slides section {
    height: 100%;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
}

.reveal .slides section[data-background-image] {
    padding: 10px;
}

.reveal .slides section[data-background-image] h2 {
    margin-bottom: 10px;
}

.reveal .slides section > * {
    max-width: 100%;
}
