/* ========== Variables & Reset ========== */
:root{
    --emerald: hsl(160, 65%, 35%);
    --emerald-light: hsl(160, 45%, 55%);
    --emerald-dark: hsl(160, 75%, 25%);
    --gold: hsl(45, 85%, 55%);
    --gold-light: hsl(45, 75%, 65%);
    --cream: hsl(42, 15%, 97%);
    --warm-gray: hsl(42, 10%, 93%);
    --foreground: hsl(160, 25%, 15%);
    --muted-foreground: hsl(160, 15%, 45%);
    --white:#fff;
}

*{margin:0;padding:0;box-sizing:border-box}
body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
    line-height:1.6;
    color:var(--foreground);
    background:var(--cream);
}

/* ========== TOPBAR (adresse / téléphone / horaires) ========== */
.topbar{
    background:var(--emerald);
    color:#fff;
    font-size:.95rem;
}
.topbar .container{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap:1rem;
    padding:.60rem;
}
.topbar .item{
    display:flex;
    align-items:center;
    gap:.5rem;
    opacity:.95;
    white-space:nowrap;
}
.topbar .item i{ color:#fff; opacity:.9 }
.topbar .item a{ color:#fff; text-decoration:none }
.topbar .item a:hover{ text-decoration:underline }

/* ========== NAVBAR (Lovable-like) ========== */
.navbar{
    position:sticky; top:0; z-index:1030;
    background:#f7f8f7;               /* fond clair */
    border-bottom:1px solid rgba(0,0,0,.06);
    padding:.7rem 0;
}
.navbar .container{
    display:flex; align-items:center; gap:1rem;
}
.navbar-brand{
    display:flex; align-items:center; gap:.75rem; text-decoration:none;
}
.brand-mark{
    display:flex; align-items:center; gap:.75rem;
}
.arabic-brand{
    font-size:1.6rem; font-weight:800; color:var(--emerald);
}
.brand-text{ line-height:1.1 }
.brand-title{ font-weight:700; color:#111827; font-size:1.25rem; display:block }
.brand-subtitle{ color:#6b7280; font-size:.9rem; display:block }

.navbar-nav{ gap:.5rem }
.navbar-nav .nav-link{
    color:#111827 !important;
    padding:.5rem .9rem !important;
    border-radius:.6rem;
    font-weight:600;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
    background:#eef3f1;
    color:var(--emerald) !important;
}

.header-cta{
    margin-left:auto;
}
.btn-visit{
    background:var(--emerald);
    color:#fff;
    border:0;
    padding:.6rem 1rem;
    border-radius:.7rem;
    font-weight:700;
    text-decoration:none;
    display:inline-block;
}
.btn-visit:hover{ filter:brightness(.95); color:#fff }

/* Toggler */
.navbar-toggler{ border:none; padding:.25rem .5rem; background:#e9ecef }
.navbar-toggler:focus{ box-shadow:none }
.navbar-toggler-icon{
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(17,24,39,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== HERO ========== */
.hero-section{
    position: relative;
    min-height: 88vh;
    display: flex; align-items: center;
    color: #fff; overflow: hidden;
    background:
        url('/images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
    padding-top: 30px;
}
.hero-section::before{
    content:""; position:absolute; inset:0;
    background: linear-gradient(135deg,
    rgba(22,127,96,.88) 0%,
    rgba(28,151,115,.88) 100%);
    mix-blend-mode: multiply;
}
.hero-section::after{
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 90%, #fff 100%);
}
.hero-content{
    position: relative; z-index: 2;
    max-width: 640px;
    padding: 32px 16px;
    animation: fadeInUp .8s ease-out;
}
.hero-arabic{ font-size: 2.6rem; font-weight: 800; color: #ffe08a; margin-bottom: .5rem; }
.hero-title{  font-size: 2.1rem; font-weight: 800; margin-bottom: .6rem; }
.hero-subtitle{ font-size: 1.05rem; margin-bottom: .3rem; opacity: .95; }
.hero-description{ font-size: .98rem; opacity: .9; margin-bottom: 1.2rem; }

/* CTA du hero */
.btn-primary-custom{
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: 0; padding: 12px 22px; font-size: .98rem; font-weight: 700;
    border-radius: 12px; color: #1f2937; text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.btn-primary-custom:hover{ transform: translateY(-2px); filter: brightness(.98); }
.btn-outline-custom{
    background: rgba(255,255,255,.95);
    color: var(--emerald);
    border: 0;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.btn-outline-custom:hover{ filter: brightness(.98); transform: translateY(-1px); }

/* ========== Sections ========== */
.section-padding{ padding:80px 0 }
.section-title{
    font-size:2.4rem; font-weight:800; color:var(--emerald); margin:0 0 .6rem; text-align:center; position:relative;
}
.section-subtitle{
    font-size:1.05rem; color:var(--muted-foreground); margin:0 auto 2.2rem; text-align:center; max-width:720px;
}
.section-title::after{
    content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-12px;
    width:80px; height:4px; border-radius:2px; background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

/* ========== Product Cards (look Lovable) ========== */
.product-card{
    background:#fff; border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
    border:1px solid rgba(0,0,0,.06);
    overflow:hidden;
    transition:transform .15s ease, box-shadow .15s ease;
    height:100%;
}
.product-card:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(0,0,0,.08) }

.product-header{ position:relative; background:#e9f2ee; overflow:hidden; padding:0 }
.product-header img{ display:block; width:100%; height:240px; object-fit:cover }
@media (min-width:992px){ .product-header img{ height:260px } }

.product-body{ padding:18px 20px 20px }
.product-title{ margin:0 0 6px; font-weight:800; color:#1f2937; font-size:1.15rem }
.product-description{ color:#6b7280; margin:0 0 10px; font-size:1rem }

/* ligne verte (features en inline, séparées par virgules) */
.product-features{ list-style:none; padding:0; margin:0 0 14px }
.product-features li{ display:inline; padding:0; color:#1f7a58; font-weight:400 }
.product-features li i{ display:none }
.product-features li::after{ content:", " }
.product-features li:last-child::after{ content:"" }

/* bouton pill gris */
.btn-product{
    display:inline-block; background:#f3f4f6; color:#1f2937; border:1px solid #e5e7eb;
    padding:10px 18px; border-radius:999px; font-weight:700; text-decoration:none;
    transition:background .2s ease, transform .15s ease;
}
.btn-product:hover{ background:#e9ecef; transform:translateY(-1px) }

/* ========== About ========== */
.about-section{ background: linear-gradient(180deg, var(--cream) 0%, var(--warm-gray) 100%) }
.value-card{
    background:#fff; padding:2rem 1.4rem; border-radius:16px; text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.06);
    transition:transform .15s ease, box-shadow .15s ease; height:100%;
}
.value-card:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(0,0,0,.08) }
.value-icon{ font-size:2.8rem; color:var(--gold); margin-bottom:1rem; display:block }
.value-title{ font-size:1.15rem; font-weight:800; color:var(--emerald); margin-bottom:.5rem }
.value-description{ color:var(--muted-foreground) }

/* ====== Section Contact ====== */
.contact-section {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

/* Cartes de contact */
.contact-card {
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}
.contact-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2.6rem;
    color: var(--gold);
    margin-bottom: .75rem;
}

/* Map centrée */
.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-width: 900px;
    margin: 0 auto;
}

/* === Map Section (embed + overlay clickable) === */
.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.map-frame {
    width: 100%;
    height: 360px;
    display: block;
    border: 0;
}

.map-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.map-overlay:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--emerald-dark);
    text-decoration: none;
}
.map-link i {
    color: var(--emerald);
}

/* ===== Bouton de titre Réseaux Sociaux ===== */
.btn-social-call {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    padding: 18px 36px;
    font-size: 1.05rem;
    line-height: 1.4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-social-call:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
    color: #1f2937;
}

/* ===== Icônes Réseaux Sociaux ===== */
.social-icons.large {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 25px;
}

.social-icons.large .social-link {
    font-size: 2.6rem; /* légèrement agrandi */
    color: var(--gold);
    transition: transform 0.25s ease, color 0.25s ease;
}

.social-icons.large .social-link:hover {
    color: #fff;
    transform: scale(1.2);
}


/* ===== FOOTER FINAL ===== */
.footer {
    background: #f9f9f8; /* fond clair élégant */
    color: #4b5563; /* texte gris foncé */
    padding: 80px 0 40px; /* ↑ espace en haut ajouté */
    text-align: center;
    border-top: 3px solid var(--emerald-light);
}

.footer .container {
    max-width: 1100px;
}

/* Titres de colonnes */
.footer-title {
    font-weight: 800;
    color: #111827; /* noir doux */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Bloc 1 : marque */
.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827; /* noir */
}
.footer-arabic {
    color: var(--gold);
    font-size: 2rem;
}
.footer-description {
    color: #4b5563;
    margin-bottom: 0.8rem;
}

/* Liens */
.footer-links a {
    color: #4b5563;
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem 0;
    transition: color 0.2s ease;
    font-weight: 500;
}
.footer-links a:hover {
    color: var(--emerald-dark);
}

/* Informations */
.footer-info li {
    margin-bottom: 0.6rem;
    color: #4b5563;
    font-weight: 500;
}
.footer-info i {
    color: var(--gold);
}

.footer-social a {
    color: var(--gold);
    font-size: 2rem;
}

/* Ligne & bas de page */
.footer-line {
    border-color: rgba(0, 0, 0, 0.08);
    margin: 1.5rem auto;
    width: 80%;
}
.footer-bottom {
    color: #9ca3af;
    font-size: 0.9rem;
}


/* Responsive */
@media (max-width: 768px) {
    .footer .row {
        text-align: center;
    }
    .footer .col-md-4, .footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* ========== Animations & Responsive ========== */
@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
.fade-in-up{ animation: fadeInUp .8s ease-out forwards }

@media (max-width:992px){
    .navbar .container{ flex-wrap:wrap }
    .header-cta{ margin-left:0; margin-top:.5rem }
}
@media (max-width:768px){
    .hero-subtitle{ font-size:1.1rem }
    .section-title{ font-size:2rem }
    .section-padding{ padding:60px 0 }
    .arabic-brand{ font-size:1.3rem }
    .brand-title{ font-size:1.05rem }
}
@media (max-width: 768px){
    .hero-section{ min-height: 72vh; background-position: center 30%; }
    .hero-arabic{ font-size: 2rem; }
    .hero-title{ font-size: 1.7rem; }
    .hero-description{ font-size: .95rem; }
}
@media (max-width:576px){
    .hero-title{ font-size:2rem }
    .btn-primary-custom,.btn-outline-custom{ padding:12px 22px; font-size:.95rem }
    .value-icon{ font-size:2.4rem }
    .contact-icon{ font-size:1.8rem }
}






/* ===== Global Section Styles ===== */
body {
    background: #f1f0ee; /* Fond plus doux que le blanc pur */
    color: #111827;
}

/* Titres de section */
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 0.8rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* ===== Product Cards (alignement des boutons) ===== */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f9f8;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
    min-height: 450px; /* garantit la même hauteur entre les cartes */
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.product-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    flex-grow: 1;
}

.product-content {
    flex-grow: 1; /* pousse le bouton vers le bas */
}

.product-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111827;
    margin-bottom: 8px;
}

.product-description {
    color: #4b5563;
    margin-bottom: 10px;
}

/* Bouton “En savoir plus” */
.btn-product {
    align-self: flex-start;
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: auto; /* force le bouton à se placer tout en bas */
}

.btn-product:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* ====== SECTION À PROPOS ====== */
.about-section {
    background: linear-gradient(180deg, #f9faf9 0%, #f6f7f6 100%);
    padding: 100px 0;
}

.about-image-wrapper img {
    border-radius: 16px;
    width: 100%;
    object-fit: cover;
}

.about-description {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.05);
    transition: all 0.2s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.value-icon {
    font-size: 1.6rem;
    color: var(--emerald);
    margin-bottom: 0.75rem;
}

.value-title {
    font-weight: 700;
    color: var(--emerald-dark);
    margin-bottom: 0.25rem;
}

.value-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Alignement spécifique pour desktop */
@media (min-width: 992px) {
    .about-section .section-title,
    .about-section .section-subtitle {
        text-align: left;
    }
}



/* ======= FIX AFFICHAGE MOBILE ======= */

/* Forcer les sections à occuper toute la largeur */
body, html {
    width: 100%;
    overflow-x: hidden; /* empêche le scroll horizontal */
}

/* S’assurer que les containers s’étendent correctement */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Corriger les paddings excessifs sur les sections */
section {
    width: 100%;
    overflow-x: hidden;
}

/* Fix du hero sur petits écrans */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* empêche un bug de zoom */
        background-position: center center;
        min-height: 80vh;
        padding: 60px 0;
        text-align: center;
    }

    .hero-content {
        max-width: 95%;
        margin: 0 auto;
        padding: 20px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}


/* ======= FIX TOPBAR & NAVBAR SUR MOBILE ======= */

/* TOPBAR : forcer le retour à la ligne et le centrage */
@media (max-width: 768px) {
    .topbar .container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        gap: 0.2rem;
        padding: 0.4rem 1rem;
    }

    .topbar .item {
        font-size: 0.85rem;
        white-space: normal;
        flex-wrap: wrap;
        line-height: 1.4;
    }

    .topbar a {
        word-break: break-word;
    }
}

/* NAVBAR : réaligner le bouton hamburger avec le logo */
@media (max-width: 992px) {
    .navbar {
        padding: 0.4rem 0.8rem;
    }

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

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .arabic-brand {
        font-size: 1.3rem;
    }

    .brand-title {
        font-size: 1rem;
        line-height: 1.1;
    }

    .navbar-toggler {
        margin-left: auto;
        border: none;
        background: #f1f3f2;
        border-radius: 6px;
        padding: 6px 10px;
    }

    .navbar-toggler-icon {
        width: 22px;
        height: 22px;
    }
}

/* Optionnel : limiter la largeur du logo + texte sur petits écrans */
@media (max-width: 400px) {
    .brand-text {
        display: none; /* garde seulement la version arabe */
    }
}


/* ===== CENTRER LA TOPBAR SUR MOBILE ===== */
@media (max-width: 768px) {
    .topbar {
        text-align: center;
    }

    .topbar .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        padding: 0.6rem 0;
    }

    .topbar .item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .topbar .item i {
        color: #fff;
        opacity: 0.9;
    }

    .topbar .item a {
        color: #fff;
        text-decoration: none;
        word-break: break-word;
    }

    .topbar .item a:hover {
        text-decoration: underline;
    }
}
