/*
Theme Name: Kaddour
Description: Thème minimaliste pour portfolio créatif avec volets multiples et Bootstrap
Version: 3.0.0
Author: Manus
*/

/* Styles de base avec Bootstrap */
body {
    font-family: 'Courier New', monospace;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Logo SVG */
.logo-svg svg {
    width: 100%;
    height: auto;
    max-height: 120px;
}

/* Styles pour les éléments de projet */
.project-item {
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-clickable {
    cursor: pointer;
}

.project-clickable:hover {
    background-color: #f8f9fa !important;
    transform: translateX(8px);
}

/* Positionnement des chiffres aux bordures */
.project-number {
    position: absolute;
    left: 0;
    padding-left: 0.5rem;
}

.project-year {
    position: absolute;
    right: 0;
    padding-right: 0.5rem;
}

/* Indicateur de statut au survol */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-left: 0.5rem;
    display: none;
}

.project-clickable:hover .status-indicator {
    display: inline-block !important;
}

.project-clickable[data-status="finished"]:hover .status-indicator {
    background-color: #495057;
}

.project-clickable[data-status="ongoing"]:hover .status-indicator {
    background-color: #fd7e14;
}

/* Styles pour les volets de projet */
.project-panel {
    background-color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

/* Styles pour le slider */
.slider-container {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    min-height: 300px;
}

.slider > div {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

/* Boutons du slider avec SVG */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.slider-btn.prev {
    left: 0.5rem;
}

.slider-btn.next {
    right: 0.5rem;
}

/* Bouton de fermeture */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-close:hover {
    color: #000000;
}

.btn-close::before {
    content: '×';
}

/* Styles pour les titres de projet */
.project-title {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: normal;
    color: #333333;
}

/* Styles pour les descriptions */
.project-description {
    font-family: 'Courier New', monospace;
    color: #6c757d;
    line-height: 1.6;
}

/* Légende de statut */
.status-legend {
    border-top: 1px solid #e9ecef;
}

.status-square {
    flex-shrink: 0;
}

/* Styles responsive */
@media (max-width: 768px) {
    .logo-svg {
        max-width: 20rem;
    }
    
    .project-item {
        padding: 0.75rem 1rem;
    }
    
    .project-panel {
        padding: 1rem;
    }
    
    .slider {
        min-height: 250px;
    }
    
    .slider-btn {
        padding: 0.375rem;
    }
    
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .logo-svg {
        max-width: 16rem;
    }
    
    .project-item span {
        font-size: 0.75rem;
    }
    
    .slider {
        min-height: 200px;
    }
    
    .project-panel {
        padding: 0.75rem;
    }
    
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Styles pour les médias dans le slider */
.slider img,
.slider video {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* Animation pour les transitions */
.project-item,
.project-panel,
.slider-btn {
    transition: all 0.2s ease;
}

/* Styles pour l'état de focus (accessibilité) */
.project-clickable:focus,
.btn-close:focus,
.slider-btn:focus {
    outline: 2px solid #495057;
    outline-offset: 2px;
}

/* Styles pour les petits écrans */
@media (prefers-reduced-motion: reduce) {
    .slider,
    .project-panel,
    .project-item {
        transition: none;
    }
    
    @keyframes slideDown {
        from, to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Sélecteur de langue */
.language-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.language-dropdown {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.language-dropdown .dropdown-item {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.language-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.language-toggle {
    background: none;
    border: 1px solid #e9ecef;
    color: #333333;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-toggle:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}


/* Support RTL pour l'arabe */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Ajustements RTL pour les éléments de projet */
[dir="rtl"] .project-item {
    padding-left: 1rem;
    padding-right: 1rem;
}

[dir="rtl"] .project-clickable:hover {
    transform: translateX(-8px); /* Inverse pour RTL */
}

/* Positionnement des chiffres en RTL */
[dir="rtl"] .project-number {
    position: absolute;
    right: 0;
    left: auto;
    padding-right: 0.5rem;
    padding-left: 0;
}

[dir="rtl"] .project-year {
    position: absolute;
    left: 0;
    right: auto;
    padding-left: 0.5rem;
    padding-right: 0;
}

/* Indicateur de statut en RTL */
[dir="rtl"] .status-indicator {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Boutons du slider en RTL */
[dir="rtl"] .slider-btn.prev {
    right: 0.5rem;
    left: auto;
}

[dir="rtl"] .slider-btn.next {
    left: 0.5rem;
    right: auto;
}

/* Sélecteur de langue en RTL */
[dir="rtl"] .language-selector {
    left: 1rem;
    right: auto;
}


/* Position des puces selon la langue */
.project-bullet {
    position: absolute;
    /*width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333333;*/
    top: 50%;
    transform: translateY(-50%);
    left: 0.25rem; /* Position par défaut à gauche pour les langues non-arabes */
    
    width: 12px; height: 12px; background-color: #333333; border-radius: 2px;
}

/* Position des puces en RTL (arabe) */
[dir="rtl"] .project-bullet {
    left: auto;
    right: 0.25rem; /* Position à droite pour l'arabe */
}

/* Ajustement du padding pour faire de la place aux puces */
.project-item {
    position: relative;
    padding-left: 1.5rem; /* Espace pour la puce à gauche */
}

[dir="rtl"] .project-item {
    padding-left: 1rem;
    padding-right: 1.5rem; /* Espace pour la puce à droite en RTL */
}

/* Styles pour les listes à puces dans le contenu */
ul {
    list-style: none;
    padding-left: 0;
}

[dir="rtl"] ul {
    padding-right: 0;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

[dir="rtl"] li {
    padding-left: 0;
    padding-right: 1.5rem;
}

li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #333333;
    font-weight: bold;
}

[dir="rtl"] li::before {
    left: auto;
    right: 0;
}


/* Effet de zoom sur les titres */
.project-title {
    transition: all 0.3s ease;
    transform-origin: left center;
    position: relative;
    z-index: 2;
}

[dir="rtl"] .project-title {
    transform-origin: right center;
}

/* Zoom au survol */
.project-clickable:hover .project-title {
    transform: scale(2);
    font-weight: bold;
    z-index: 10;
    background-color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Titre agrandi quand le volet est ouvert */
.project-item.panel-open .project-title {
    transform: scale(2);
    font-weight: bold;
    z-index: 10;
    background-color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Masquer le titre dans le volet quand le projet est ouvert */
.project-item.panel-open .project-panel .project-title {
    display: none;
}

/* Ajustements pour éviter les chevauchements */
.project-item {
    margin-bottom: 0.5rem;
    overflow: visible;
}

.project-item.panel-open {
    margin-bottom: 2rem; /* Plus d'espace quand le titre est agrandi */
}

/* Styles pour le conteneur du titre agrandi */
.project-title-container {
    position: relative;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
}

.project-item.panel-open .project-title-container {
    min-height: 3rem; /* Double hauteur pour le titre agrandi */
}

/* Animation fluide pour l'ouverture/fermeture */
.project-panel {
    transition: all 0.3s ease;
}

/* Ajustement de la position des éléments lors du zoom */
.project-clickable:hover .project-number,
.project-clickable:hover .project-year {
    z-index: 1;
}

.project-item.panel-open .project-number,
.project-item.panel-open .project-year {
    z-index: 1;
}

.btn-close{
	display:none;
}

/* Adnane *//* Effet au survol (desktop) */
@media (min-width: 768px) {
    .survol-agrandir:hover .titre-projet-wrapper,
    .survol-agrandir.actif .titre-projet-wrapper {
        transform: scale(1.5);
        transition: transform 1.5s ease;
        transform-origin: center;
    }

    .survol-agrandir:hover .titre-projet,
    .survol-agrandir.actif .titre-projet {
        font-weight: normal;
    }

    .survol-agrandir:hover .status-indicator,
    .survol-agrandir.actif .status-indicator {
        display: inline-block !important;
        transform: scale(0.7);
        transition: transform 1.5s ease;
    }
    .survol-agrandir.actif .btn-close{
    	display: inline-block !important;
    }
    
    .project-item[data-status="finished"]:hover .status-indicator {
    background-color: #495057;
}
    .project-item[data-status="ongoing"]:hover .status-indicator {
    background-color: #fd7e14;
}
}



/* ===== Mobile ===== */
@media (max-width: 767.98px) {
    .survol-agrandir:hover .titre-projet-wrapper,
    .survol-agrandir.actif .titre-projet-wrapper {
        transform: scale(1.3);
        transition: transform 1.5s ease;
        transform-origin: center;
    }
    	
    .survol-agrandir:hover .titre-projet,
    .survol-agrandir.actif .titre-projet {
        font-weight: bold;
    }
	
    .survol-agrandir:hover .status-indicator,
    .survol-agrandir.actif .status-indicator {
        display: inline-block !important;
        transform: scale(1);
        transition: transform 1.5s ease;
    }
    
    .survol-agrandir.actif .btn-close{
    	display: inline-block !important;
    }
    .project-item[data-status="finished"]:hover .status-indicator {
    background-color: #495057;
	}
	.project-item[data-status="ongoing"]:hover .status-indicator {
	    background-color: #fd7e14;
}
}

.slider-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}



