
:root {
    /* ZIRA3AGRI palette : vert agricole + jaune solaire */
    --color-dark: #14361A;
    --color-medium: #2E7D32;
    --color-light: #FBC02D;

    --bg-primary: #0E1C11;
    --bg-secondary: #142A18;
    --bg-card: #1A331F;
    --bg-accent: #23422A;

    --text-primary: #F3F9F3;
    --text-secondary: #CDE8CE;
    --text-muted: #93B49A;

    --accent: #FBC02D;
    --accent-dark: #D4A017;
    --accent-light: #FFD75E;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(251, 192, 45, 0.35);

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
    --shadow-medium: 0 10px 20px -5px rgba(0, 0, 0, 0.45);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.65);

    --card-radius: 24px;
    --section-radius: 16px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --instagram-gradient: linear-gradient(45deg, #2E7D32, #FBC02D);
    --youtube-red: #FF3B3B;
    --success-green: #4CAF50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 0;
}

html[dir="rtl"] body { font-family: 'Alexandria', 'Outfit', -apple-system, sans-serif; }
html[dir="rtl"] .contact-item:hover { transform: translateX(-4px); }
html[dir="rtl"] .contact-item .arrow { transform: rotate(180deg); }
html[dir="rtl"] .contact-item:hover .arrow { transform: rotate(180deg) translateX(4px); }
html[dir="rtl"] .youtube-link .fa-chevron-right { transform: rotate(180deg); }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(71, 93, 79, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(26, 49, 50, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;
}

/* ========================================
   TOP BAR / LANGUAGE SELECTOR
======================================== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

html[dir="rtl"] .top-bar { justify-content: flex-start; }

.lang-dropdown { position: relative; }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.lang-toggle:hover { border-color: var(--accent); background: var(--accent-light); }
.lang-toggle .globe-icon { color: var(--accent); font-size: 0.9rem; }
.lang-toggle .arrow-icon { color: var(--text-muted); font-size: 0.7rem; transition: transform 0.3s var(--transition-smooth); }
.lang-dropdown.open .lang-toggle .arrow-icon { transform: rotate(180deg); }
.lang-dropdown.open .lang-toggle { border-color: var(--accent); background: var(--accent-light); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    z-index: 50;
}

html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; cursor: pointer; transition: all 0.2s var(--transition-smooth);
    font-size: 0.85rem; color: var(--text-secondary); border: none; background: none;
    width: 100%; text-align: left; font-family: 'Outfit', sans-serif;
}
html[dir="rtl"] .lang-option { text-align: right; }
.lang-option:hover { background: var(--accent-light); color: var(--accent-dark); }
.lang-option.active { background: var(--accent); color: white; }
.lang-option .check-icon { opacity: 0; font-size: 0.75rem; }
.lang-option.active .check-icon { opacity: 1; }

.share-quick-btn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s var(--transition-smooth);
    flex-shrink: 0;
}
.share-quick-btn:hover { border-color: var(--accent); background: var(--accent-light); }

/* ========================================
   LAYOUT WRAPPER (mobile = stacked / desktop = grid)
======================================== */
.layout { display: flex; flex-direction: column; gap: 16px; }
.sidebar, .main-content { display: contents; }

/* ========================================
   CARD
======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: clamp(24px, 6vw, 40px) clamp(18px, 5vw, 32px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-medium);
    animation: cardEntrance 0.6s var(--transition-smooth) forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

@keyframes cardEntrance { to { opacity: 1; transform: translateY(0); } }
.card:hover { box-shadow: var(--shadow-large); }
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.24s; }
.card:nth-child(5) { animation-delay: 0.32s; }
.card:nth-child(6) { animation-delay: 0.4s; }

/* ========================================
   PROFILE SECTION
======================================== */
.profile-section { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.profile-image-container { position: relative; margin-bottom: 18px; }

.profile-image {
    width: clamp(90px, 25vw, 120px);
    height: clamp(90px, 25vw, 120px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-medium), 0 0 0 1px var(--border-subtle);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}
.profile-image:hover { transform: scale(1.05); box-shadow: var(--shadow-large), 0 0 0 2px var(--accent); }

.profile-image-container::after {
    content: ''; position: absolute; bottom: 6px; right: 6px;
    width: 18px; height: 18px; background: var(--success-green);
    border-radius: 50%; border: 3px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    animation: pulse 2s ease-in-out infinite;
}
html[dir="rtl"] .profile-image-container::after { right: auto; left: 6px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); opacity: 0.8; } }

.name { font-size: clamp(1.35rem, 5vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--text-primary); word-break: break-word; }
.title { font-size: clamp(0.85rem, 3vw, 1rem); color: var(--accent); font-weight: 500; letter-spacing: 0.01em; padding: 0 10px; }
.divider { width: 50px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); margin: 22px auto; border-radius: 3px; }
.bio { font-size: clamp(0.85rem, 3vw, 0.95rem); line-height: 1.7; color: var(--text-secondary); text-align: center; margin-bottom: 26px; padding: 0 5px; }

/* ========================================
   CONTACT INFO
======================================== */
.contact-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }

.contact-item {
    display: flex; align-items: center; gap: clamp(10px, 3vw, 14px);
    padding: clamp(12px, 3vw, 14px) clamp(12px, 3vw, 16px);
    background: var(--bg-secondary); border-radius: 14px; border: 1px solid transparent;
    text-decoration: none; color: var(--text-primary); transition: all 0.3s var(--transition-smooth);
}
.contact-item:hover { background: var(--accent-light); border-color: var(--accent); transform: translateX(4px); }
.contact-item .icon {
    width: clamp(38px, 10vw, 42px); height: clamp(38px, 10vw, 42px);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border-radius: 12px; color: var(--accent);
    font-size: 1rem; flex-shrink: 0; box-shadow: var(--shadow-soft);
}
.contact-item:hover .icon { background: var(--accent); color: white; }
.contact-item .details { flex: 1; min-width: 0; overflow: hidden; }
.contact-item .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 2px; }
.contact-item .value { font-size: clamp(0.8rem, 3vw, 0.9rem); font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-item .arrow { color: var(--text-muted); font-size: 0.8rem; transition: all 0.3s var(--transition-smooth); flex-shrink: 0; }
.contact-item:hover .arrow { transform: translateX(4px); color: var(--text-primary); }

/* ========================================
   SOCIAL LINKS
======================================== */
.social-links { display: flex; justify-content: center; gap: clamp(8px, 3vw, 12px); margin-bottom: 26px; flex-wrap: wrap; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: clamp(44px, 12vw, 50px); height: clamp(44px, 12vw, 50px);
    border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    color: var(--text-secondary); text-decoration: none; font-size: clamp(1rem, 4vw, 1.15rem);
    transition: all 0.3s var(--transition-smooth); position: relative; overflow: hidden;
}
.social-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); opacity: 0; transition: opacity 0.3s var(--transition-smooth); }
.social-link.instagram::before { background: var(--instagram-gradient); }
.social-link.youtube::before { background: var(--youtube-red); }
.social-link.whatsapp::before { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.social-link i { position: relative; z-index: 1; transition: transform 0.3s var(--transition-smooth); }
.social-link:hover { border-color: transparent; color: white; transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.social-link:hover::before { opacity: 1; }
.social-link:hover i { transform: scale(1.15); }

/* ========================================
   CTA BUTTON
======================================== */
.cta-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: clamp(14px, 4vw, 16px) 24px;
    font-family: inherit; font-size: clamp(0.9rem, 3.5vw, 0.95rem); font-weight: 600;
    color: white; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none; border-radius: 14px; cursor: pointer; transition: all 0.3s var(--transition-smooth);
    position: relative; overflow: hidden; box-shadow: 0 4px 14px rgba(26, 49, 50, 0.25);
}
.cta-button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); opacity: 0; transition: opacity 0.3s var(--transition-smooth); }
.cta-button span, .cta-button i { position: relative; z-index: 1; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 49, 50, 0.3); }
.cta-button:hover::before { opacity: 1; }
.cta-button.success { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35); }
.cta-button.secondary { background: var(--bg-secondary); box-shadow: none; border: 1px solid var(--border-subtle); }
.cta-button.secondary::before { background: var(--accent-light); }
.cta-button.secondary:hover { color: var(--accent-dark); }

/* ========================================
   SECTION HEADERS
======================================== */
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-header .icon {
    width: clamp(34px, 9vw, 38px); height: clamp(34px, 9vw, 38px);
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light); border-radius: 10px; color: var(--accent);
    font-size: 0.9rem; flex-shrink: 0;
}
.section-header h2 { font-size: clamp(1rem, 4vw, 1.1rem); font-weight: 600; color: var(--text-primary); }

/* ========================================
   ADDRESS & MAP
======================================== */
.address-text { font-size: clamp(0.85rem, 3vw, 0.9rem); color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.address-text strong { color: var(--text-primary); }
.map-container { position: relative; width: 100%; padding-bottom: 62.5%; border-radius: var(--section-radius); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft); }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.directions-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 13px; margin-top: 14px; background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 12px; color: var(--text-primary); text-decoration: none;
    font-size: clamp(0.85rem, 3vw, 0.9rem); font-weight: 500; transition: all 0.3s var(--transition-smooth);
}
.directions-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.directions-btn i { color: var(--accent); }

/* ========================================
   VIDEO CONTAINER
======================================== */
.video-container { position: relative; width: 100%; padding-bottom: 177.77%; border-radius: var(--section-radius); overflow: hidden; border: 1px solid var(--border-subtle); margin-bottom: 14px; box-shadow: var(--shadow-soft); max-height: 80vh; }
.video-container.horizontal { padding-bottom: 56.25%; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.youtube-link {
    display: flex; align-items: center; gap: clamp(10px, 3vw, 14px);
    padding: clamp(12px, 3vw, 14px) clamp(12px, 3vw, 16px); background: var(--bg-secondary);
    border-radius: 14px; border: 1px solid var(--border-subtle); text-decoration: none;
    color: var(--text-primary); transition: all 0.3s var(--transition-smooth);
}
.youtube-link:hover { background: #fef2f2; border-color: var(--youtube-red); }
.youtube-link .yt-icon {
    width: clamp(40px, 12vw, 46px); height: clamp(40px, 12vw, 46px);
    display: flex; align-items: center; justify-content: center;
    background: var(--youtube-red); border-radius: 12px; color: white;
    font-size: 1.2rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}
.youtube-link .yt-details { flex: 1; min-width: 0; }
.youtube-link .yt-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.youtube-link .yt-name { font-size: clamp(0.85rem, 3vw, 0.95rem); font-weight: 600; color: var(--text-primary); }

/* ========================================
   INSTAGRAM
======================================== */
.instagram-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.instagram-header .left { display: flex; align-items: center; gap: 12px; }
.instagram-header .icon {
    width: clamp(34px, 9vw, 38px); height: clamp(34px, 9vw, 38px);
    display: flex; align-items: center; justify-content: center;
    background: var(--instagram-gradient); border-radius: 10px; color: white; font-size: 1rem;
}
.instagram-header h2 { font-size: clamp(1rem, 4vw, 1.1rem); font-weight: 600; }
.instagram-follow-btn {
    padding: 9px 18px; background: var(--instagram-gradient); border: none; border-radius: 10px;
    color: white; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(19, 120, 97, 0.3); white-space: nowrap;
}
.instagram-follow-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(19, 120, 97, 0.4); }
.instagram-profile { display: flex; align-items: center; gap: clamp(10px, 3vw, 14px); padding: clamp(12px, 3vw, 16px); background: var(--bg-secondary); border-radius: 14px; border: 1px solid var(--border-subtle); margin-bottom: 16px; }
.instagram-profile img { width: clamp(48px, 15vw, 58px); height: clamp(48px, 15vw, 58px); border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: var(--shadow-soft); flex-shrink: 0; }
.instagram-profile .info { flex: 1; min-width: 0; }
.instagram-profile .username { font-weight: 600; font-size: clamp(0.9rem, 3.5vw, 1rem); margin-bottom: 4px; color: var(--text-primary); word-break: break-word; }
.instagram-embed-wrapper { width: 100%; overflow: hidden; border-radius: var(--section-radius); }
.instagram-embed-wrapper blockquote.instagram-media { margin: 0 auto !important; max-width: 100% !important; min-width: 0 !important; width: 100% !important; }

/* ========================================
   GALLERY
======================================== */
.company-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2px, 1vw, 4px); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-item { aspect-ratio: 1 / 1; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--transition-smooth); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(26, 49, 50, 0.55); display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 14px); opacity: 0; transition: opacity 0.3s var(--transition-smooth); }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { display: flex; align-items: center; gap: 5px; font-size: clamp(0.7rem, 2.5vw, 0.82rem); font-weight: 600; color: white; }

/* ========================================
   QR / SHARE CARD
======================================== */
.qr-card { text-align: center; }
.qr-image-wrapper {
    display: inline-flex; padding: 12px; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-soft); margin-bottom: 16px;
}
.qr-image-wrapper img { display: block; width: 150px; height: 150px; border-radius: 6px; }
.qr-caption { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }
.share-actions { display: flex; flex-direction: column; gap: 10px; }

/* ========================================
   PDF BUTTON
======================================== */
.pdf-button {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: clamp(12px, 3.5vw, 14px); background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; border-radius: 10px; font-weight: bold; text-decoration: none;
    font-size: clamp(0.9rem, 3.5vw, 1rem); transition: all 0.3s var(--transition-smooth); margin-top: 14px;
}
.pdf-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 49, 50, 0.3); }

/* ========================================
   FOOTER
======================================== */
.card-footer { padding: 20px; text-align: center; }
.card-footer p { font-size: clamp(0.7rem, 2.5vw, 0.75rem); color: var(--text-muted); letter-spacing: 0.03em; }
.card-footer a { color: var(--accent); text-decoration: none; }

/* ========================================
   MOBILE STICKY ACTION BAR
======================================== */
.mobile-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(28, 35, 56, 0.9);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.mobile-actionbar a, .mobile-actionbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); color: var(--text-secondary); text-decoration: none;
    font-family: inherit; font-size: 0.66rem; font-weight: 500; cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
}
.mobile-actionbar a i, .mobile-actionbar button i { font-size: 1.05rem; color: var(--accent); }
.mobile-actionbar .primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-color: transparent; }
.mobile-actionbar .primary i { color: #fff; }
.mobile-actionbar a:active, .mobile-actionbar button:active { transform: scale(0.94); }

/* ========================================
   LIGHTBOX
======================================== */
.lightbox {
    position: fixed; inset: 0; background: var(--bg-primary); z-index: 1000;
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
    transition: all 0.3s var(--transition-smooth); backdrop-filter: blur(10px); padding: 20px;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90vw; max-height: 85vh; transform: scale(0.95); transition: transform 0.3s var(--transition-smooth); display: flex; align-items: center; justify-content: center; }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: 16px; box-shadow: var(--shadow-large); object-fit: contain; }
.lightbox-close {
    position: absolute; top: max(20px, env(safe-area-inset-top, 20px)); right: 20px;
    width: clamp(40px, 12vw, 48px); height: clamp(40px, 12vw, 48px); background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 50%; color: var(--text-primary);
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s var(--transition-smooth); box-shadow: var(--shadow-medium); z-index: 10;
}
html[dir="rtl"] .lightbox-close { right: auto; left: 20px; }
.lightbox-close:hover { background: var(--accent); color: white; border-color: var(--accent); transform: rotate(90deg); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: clamp(40px, 12vw, 50px); height: clamp(40px, 12vw, 50px); background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 50%; color: var(--text-primary);
    font-size: 1rem; cursor: pointer; transition: all 0.3s var(--transition-smooth); box-shadow: var(--shadow-medium); z-index: 10;
}
.lightbox-nav:hover { background: var(--accent); color: white; border-color: var(--accent); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
html[dir="rtl"] .lightbox-nav.prev { left: auto; right: 10px; }
html[dir="rtl"] .lightbox-nav.next { right: auto; left: 10px; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
    background: var(--bg-card); border: 1px solid var(--accent); color: var(--text-primary);
    padding: 10px 18px; border-radius: 12px; font-size: 0.85rem; font-weight: 500;
    box-shadow: var(--shadow-large); opacity: 0; visibility: hidden; z-index: 200;
    transition: all 0.3s var(--transition-smooth); display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--accent); }

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */
@media (max-width: 359px) {
    .container { padding: 10px; }
    .card { border-radius: 18px; padding: 20px 14px; }
    .social-links { gap: 6px; }
    .social-link { width: 40px; height: 40px; border-radius: 10px; }
    .contact-item { padding: 10px; gap: 8px; }
    .contact-item .icon { width: 34px; height: 34px; }
    .company-gallery { grid-template-columns: repeat(2, 1fr); }
    .lightbox-nav { width: 36px; height: 36px; }
}

@media (min-width: 360px) and (max-width: 480px) {
    .container { padding: 12px; }
    .card { border-radius: 20px; padding: 24px 18px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container { padding: 24px; max-width: 560px; }
    .card { padding: 32px 28px; }
}

/* Body padding so the mobile action bar never covers content */
@media (max-width: 1023px) {
    body { padding-bottom: 78px; }
}

/* ========================================
   DESKTOP LAYOUT (1024px+)
   Sidebar sticky + grille de contenu à 2 colonnes
======================================== */
@media (min-width: 1024px) {
    .container { padding: 48px 24px; max-width: 1120px; }
    .mobile-actionbar { display: none; }

    .top-bar { margin-bottom: 24px; }

    .layout {
        display: grid;
        grid-template-columns: 340px 1fr;
        align-items: start;
        gap: 24px;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: sticky;
        top: 24px;
    }

    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-content: start;
    }

    .main-content .span-2 { grid-column: 1 / -1; }

    .card { padding: 32px 28px; }
    .video-container { padding-bottom: 100%; max-height: 60vh; }
    .company-gallery { gap: 6px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1200px; }
    .layout { grid-template-columns: 360px 1fr; }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .video-container { padding-bottom: 56.25%; max-height: 60vh; }
    .lightbox-content img { max-height: 75vh; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .contact-item:hover, .social-link:hover, .cta-button:hover, .directions-btn:hover, .pdf-button:hover { transform: none; }
    .contact-item:active, .social-link:active, .cta-button:active { transform: scale(0.98); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print styles */
@media print {
    body::before { display: none; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .lightbox, .mobile-actionbar { display: none; }
    .video-container, .map-container { display: none; }
}
    
/* ZIRA3AGRI custom */
.profile-logo {
    width: clamp(96px, 26vw, 128px);
    height: clamp(96px, 26vw, 128px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 35%, #24422A 0%, #14361A 70%);
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-medium), 0 0 0 1px var(--border-subtle);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    overflow: hidden;
}
.profile-logo:hover { transform: scale(1.05); box-shadow: var(--shadow-large), 0 0 0 2px var(--accent); }
.profile-logo svg { width: 72%; height: 72%; }

.services-list { display: flex; flex-direction: column; gap: 12px; }
.service-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); border-radius: var(--section-radius);
    transition: transform 0.25s var(--transition-smooth), border-color 0.25s;
}
.service-item:hover { transform: translateY(-2px); border-color: var(--border-medium); }
.service-item .icon { flex-shrink: 0; }
.service-item .s-title { font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.service-item .s-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
html[dir="rtl"] .service-item { text-align: right; }

.qr-image-wrapper #qrcode img, .qr-image-wrapper #qrcode canvas {
    border-radius: 10px; display: block;
}

/* ============================================
   MULTI-CARTES : avatars, monogramme, annuaire
============================================ */
.profile-image.profile-photo { padding: 0; }
.profile-image.profile-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.avatar-monogram {
    display: flex; align-items: center; justify-content: center;
    font-family: 'Alexandria', 'Outfit', sans-serif; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #2E7D32, #1B5E20); letter-spacing: 0.02em;
}
.profile-monogram {
    width: clamp(96px, 26vw, 128px); height: clamp(96px, 26vw, 128px);
    border-radius: 50%; font-size: clamp(2rem, 7vw, 2.6rem);
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-large), 0 0 0 1px var(--border-subtle);
}

/* Annuaire */
.directory-wrap { max-width: 1000px; margin: 0 auto; }
.directory-head { text-align: center; margin-bottom: 30px; }
.directory-head .brand-wordmark { color: var(--text-primary); }
.directory-head .brand-wordmark .hl { color: var(--accent); }
.directory-head p { color: var(--text-muted); margin-top: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.dir-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
    padding: 28px 18px; background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius); text-decoration: none;
    transition: transform .25s var(--transition-smooth), border-color .25s, box-shadow .25s;
}
.dir-card:hover { transform: translateY(-4px); border-color: var(--border-medium); box-shadow: var(--shadow-medium); }
.dir-avatar { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.dir-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir-avatar .avatar-monogram { width: 100%; height: 100%; font-size: 1.9rem; }
.dir-avatar svg { width: 100%; height: 100%; }
.dir-name { font-weight: 600; color: var(--text-primary); font-size: 1.05rem; }
.dir-role { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.dir-cta { margin-top: 2px; font-size: 0.8rem; color: var(--accent); font-weight: 600; }
