/* styles01-ar.css - Version arabe pour Huilerie Bio */
/* Avec adaptation RTL et polices arabes */

/* Variables et styles globaux */
:root {
    --primary-color: #2c5530; /* Vert forêt élégant */
    --secondary-color: #4a7c59; /* Vert olive */
    --accent-color: #d4a55a; /* Or/ambre pour accents */
    --light-color: #f8f5f0; /* Beige clair */
    --dark-color: #1e2f23; /* Vert foncé */
    --text-color: #333;
    --text-light: #666;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Police adaptée pour l'arabe */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8; /* Augmenté pour meilleure lisibilité arabe */
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.4; /* Ajusté pour arabe */
    margin-bottom: 20px;
    font-family: 'Noto Sans Arabic', sans-serif;
}

h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 60px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%; /* Changé de left à right */
    transform: translateX(50%); /* Inversé */
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
    font-family: 'Noto Sans Arabic', sans-serif;
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
}

/* ----- HEADER / NAV MODERNE ----- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse; /* Inversé pour RTL */
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(5deg); /* Inversé la rotation */
}

.logo-text {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
    color: var(--primary-color);
    text-align: right;
}

.logo-text .subtitle {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

/* NAVIGATION */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    font-size: 1.05rem;
    font-family: 'Noto Sans Arabic', sans-serif;
}

/* effet soulignement élégant - adapté RTL */
.nav-menu a::after {
    content: '';
    position: absolute;
    right: 0; /* Changé de left à right */
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* lien actif */
.nav-menu .active {
    color: var(--primary-color);
}

.nav-menu .active::after {
    width: 100%;
}

/* Toggle menu (mobile) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent-color);
}

/* ----- HERO SECTION ----- */
.hero {
    background: 
        linear-gradient(135deg, rgba(44, 85, 48, 0.85) 0%, rgba(30, 47, 35, 0.9) 100%),
        url('../img/fond.png') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 200px 0 120px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.hero img {
    margin-bottom: 30px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.9;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- QUI SOMMES-NOUS ----- */
#about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row-reverse; /* Inversé pour RTL */
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    text-align: right;
}

.about-text strong {
    color: var(--primary-color);
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* ----- ALBUM PREMIUM ----- */
.album {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5f0 100%);
    position: relative;
    overflow: hidden;
}

.album::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.album-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    color: var(--primary-color);
    position: relative;
    font-weight: 800;
    letter-spacing: 0; /* Retiré pour arabe */
}

/* Grille améliorée */
.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

/* Carte premium */
.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.05),
        0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid rgba(212, 165, 90, 0.1);
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Changé de left à right */
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: right; /* Changé pour RTL */
    transition: transform 0.6s ease;
}

.gallery-card:hover::before {
    transform: scaleX(1);
}

/* Zone média avec overlay */
.media-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.media-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* Changé pour RTL */
    left: 0;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.3) 0%, 
        transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .media-wrapper::after {
    opacity: 1;
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9) contrast(1.1);
}

.gallery-card:hover .media-wrapper img,
.gallery-card:hover .media-wrapper video {
    transform: scale(1.1) rotate(-1deg); /* Inversé la rotation */
    filter: brightness(1) contrast(1);
}

/* Infos de la carte */
.card-info {
    padding: 30px;
    background: white;
    position: relative;
    text-align: right;
}

.card-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.gallery-card:hover .card-info h3 {
    color: var(--secondary-color);
}

.card-info p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Effet de brillance */
.gallery-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%; /* Inversé pour RTL */
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: right 0.8s ease; /* Changé de left à right */
}

.gallery-card:hover::after {
    right: 100%; /* Inversé pour RTL */
}

/* ----- SECTION CONTACT ----- */
#contact {
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    gap: 60px;
    flex-direction: row-reverse; /* Inversé pour RTL */
}

.contact-info {
    flex: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-direction: row-reverse; /* Inversé pour RTL */
}

.contact-info-item:hover {
    transform: translateX(-10px); /* Inversé pour RTL */
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px; /* Changé de right à left */
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Icône Facebook spécifique */
.contact-info-item .facebook-icon {
    background: linear-gradient(135deg, #1877F2, #0d5fba) !important;
}

.contact-info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* Boutons d'action contact */
.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-end; /* Alignés à droite */
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-direction: row-reverse; /* Pour icône à droite */
}

.contact-action-btn i {
    font-size: 0.9rem;
}

.contact-action-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-action-btn.secondary {
    background: var(--secondary-color);
}

.contact-action-btn.whatsapp-btn {
    background: #25D366;
}

.contact-action-btn.facebook-action {
    background: #1877F2;
}

.contact-action-btn.whatsapp-btn:hover {
    background: #128C7E;
}

.contact-action-btn.facebook-action:hover {
    background: #0d5fba;
}

/* Formulaire de contact */
.contact-form {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: right;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
    text-align: right;
    direction: rtl;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* ----- FOOTER CORRIGÉ ----- */
footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 70px 0 30px;
    direction: rtl;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

/* Colonne Logo et description */
.footer-logo {
    display: flex;
    flex-direction: column;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: row-reverse; /* Inversé pour RTL */
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-align: right;
}

/* Colonne Contact */
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    text-align: right;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    flex-direction: row-reverse; /* Inversé pour RTL */
}

.footer-contact-item i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item strong {
    color: white;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2px;
}

.footer-contact-item span {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Section Social dans la colonne contact */
.footer-social {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 600;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* Alignés à droite */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1rem;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Icônes spécifiques */
.social-icons .facebook-icon:hover {
    background-color: #1877F2 !important;
}

.social-icons .whatsapp-icon:hover {
    background-color: #25D366 !important;
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ----- LIGHTBOX ----- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    left: 0; /* Changé de right à left pour RTL */
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    /* Footer responsive tablette */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-logo {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        right: -100%; /* Changé de left à right */
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        padding: 30px 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0; /* Changé de left à right */
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero {
        padding: 180px 0 100px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    .modern-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .media-wrapper {
        height: 220px;
    }
    
    .album-title {
        font-size: 2.2rem;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .map-address .exact-address {
        font-size: 1rem;
        padding: 12px;
    }
    
    .btn-map {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer responsive mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo {
        grid-column: 1;
    }
    
    .footer-contact-info {
        gap: 15px;
    }
    
    .footer-contact-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-info-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .album-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .footer-description {
        font-size: 0.9rem !important;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Styles spécifiques pour numéros de téléphone */
.rtl-text {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

/* Ajustement pour les icônes FontAwesome en RTL */
.fa-bars, .fa-times {
    direction: ltr;
    unicode-bidi: isolate;
}


.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.lang-link {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-link:hover, .lang-link.active {
    background-color: var(--primary-color);
    color: white;
}