/* 
   Kanz Ennakhil - Style principal
   Couleurs : 
   - Orange clair: #F79E1B
   - Orange foncé: #E44D26
   - Fond blanc: #FFFFFF
*/

/* ===== Reset et styles de base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

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

a:hover {
    color: #F79E1B;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== En-tête ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E44D26;
}

/* ===== Navigation ===== */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    padding: 8px 0;
    color: #333;
    position: relative;
}

.main-nav a:hover {
    color: #F79E1B;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F79E1B;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.active a {
    color: #E44D26;
}

.active a::after {
    width: 100%;
    background-color: #E44D26;
}

/* ===== Sélecteur de langue ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 3px;
}

.lang-btn:hover {
    background-color: rgba(247, 158, 27, 0.1);
}

.lang-btn.active {
    background-color: #F79E1B;
    color: white;
}

/* ===== Section Héro ===== */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-dates.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #F79E1B;
    color: white;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #E44D26;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #F79E1B;
    color: #F79E1B;
}

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

/* ===== Section À propos ===== */
.about-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #F79E1B;
    margin: 0 auto;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Section Produits ===== */
.products-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-weight: 700;
    color: #E44D26;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.add-to-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Section Contact ===== */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: #F79E1B;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #F79E1B;
    box-shadow: 0 0 0 2px rgba(247, 158, 27, 0.2);
}

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

/* ===== Pied de page ===== */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #F79E1B;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #F79E1B;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: #F79E1B;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #F79E1B;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== Adaptation RTL pour l'arabe ===== */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .logo img {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .main-nav li {
    margin-left: 0;
    margin-right: 25px;
}

.rtl .about-text {
    padding-right: 0;
    padding-left: 30px;
}

.rtl .contact-info {
    padding-right: 0;
    padding-left: 30px;
}

.rtl .contact-info i {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .footer-column h3::after {
    left: auto;
    right: 0;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-text,
    .about-image {
        flex: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .contact-info,
    .contact-form {
        flex: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}