/* 
 * IRIS.LU - Styles principaux
 * ========================== 
 */

/* Réinitialisation et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8533;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: #ff6600;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Paragraphes et texte */
p {
    margin-bottom: 15px;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff8533;
}

.btn-secondary {
    background-color: #444;
}

.btn-secondary:hover {
    background-color: #666;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff6600;
}

/* Messages d'alerte */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2);
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #111;
    font-weight: 600;
}

tr:hover {
    background-color: #111;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #222;
}

.pagination a.active {
    background-color: #ff6600;
    color: #fff;
}

/* Cartes */
.card {
    background-color: #111;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.card-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
}

/* Grille de base */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    background-color: #111;
    padding: 15px 0;
    margin-bottom: 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6600;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav li a {
    color: #fff;
    font-weight: 600;
}

.navbar-nav li a:hover {
    color: #ff6600;
}

/* Pied de page */
footer {
    background-color: #111;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-info {
    color: #17a2b8;
}

.text-primary {
    color: #ff6600;
}

.text-secondary {
    color: #aaa !important;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

/* Styles spécifiques pour les étapes de création */
.steps-container {
    margin-bottom: 40px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transform: translateY(-50%);
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background-color: #ff6600;
}

.step.completed .step-number {
    background-color: #28a745;
}

.step-label {
    font-size: 0.9rem;
    color: #aaa;
}

.step.active .step-label {
    color: #ff6600;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

/* Grille d'images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-item.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #28a745;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.image-caption {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9rem;
}

/* Styles pour les produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-details {
    padding: 15px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    font-size: 1.3rem;
    color: #ff6600;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Animation Ken Burns */
.ken-burns-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: black; /* Fond noir pour éviter les flashs */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-color: black;
    z-index: 1;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    will-change: transform;
    display: block;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast; /* Pour Chrome */
    image-rendering: crisp-edges; /* Pour Firefox */
}

/* Animations de zoom Ken Burns */
@keyframes kenburns-zoom-in {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.3);
    }
}

@keyframes kenburns-zoom-out {
    0% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.1);
    }
}

.kenburns-in {
    animation: kenburns-zoom-in 20s linear both;
}

.kenburns-out {
    animation: kenburns-zoom-out 20s linear both;
}

/* Attribution pour les images */
.slide-attribution {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none; /* Pour ne pas interférer avec les clics */
}

/* Nom de l'iris en haut à gauche */
.fixed-attribution-topleft {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: normal;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Texte IRIS */
.fixed-iris-title {
    position: absolute;
    top: 90px;
    left: 20px;
    color: white;
    font-size: 48px;
    font-weight: bold;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* URL du site */
.fixed-url {
    position: absolute;
    top: 160px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: normal;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0.8;
}

.slide.active .slide-attribution {
    opacity: 1;
}

/* Media queries */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        margin-bottom: 20px;
    }
    
    .navbar-container {
        flex-direction: column;
    }
    
    .navbar-nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-nav li {
        margin: 5px 10px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 20px;
    }
    
    .step::after {
        display: none;
    }
    
    .image-grid, .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}