/* ============================================
   YABAli Constructing - GRANITS & MATÉRIAUX - STYLES COMPLETS
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fb;
    color: #1e2a3e;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #0a2b3e 0%, #1a4a6f 100%);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   LOGO - TAILLE CORRECTE
   ============================================ */
.logo {
    display: flex;
    align-items: center;
}

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

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: transparent;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-fallback-icon {
    font-size: 2.2rem;
    color: #ffb347;
}

.logo-fallback-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-fallback-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.logo-fallback-name span {
    color: #ffb347;
}

.logo-fallback-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #ffb347;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ffb347;
    color: #1e2a3e;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* ============================================
   SOCIAL MEDIA FLOAT BUTTONS
   ============================================ */
.social-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-btn:hover {
    transform: scale(1.1);
    width: 55px;
    border-radius: 30px;
    justify-content: flex-start;
    padding-left: 15px;
    gap: 10px;
}

.social-btn:hover .social-tooltip {
    display: inline;
}

.social-tooltip {
    display: none;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Couleurs des réseaux sociaux */
.social-btn.facebook {
    background: #1877f2;
}
.social-btn.linkedin {
    background: #0077b5;
}
.social-btn.tiktok {
    background: #000000;
}
.social-btn.whatsapp {
    background: #25d366;
}

/* Responsive social buttons */
@media (max-width: 768px) {
    .social-float {
        right: 10px;
        gap: 8px;
    }
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .social-btn:hover {
        width: 45px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero .company-badge {
    display: inline-block;
    background: rgba(255,180,71,0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ffb347;
    color: #1e2a3e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #ff9f1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffb347;
    color: #ffb347;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: #ffb347;
    color: #1e2a3e;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e2a3e;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffb347;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================
   MESSAGE DU DIRECTEUR
   ============================================ */
.directeur-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.directeur-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.directeur-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ffb347;
}

.directeur-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directeur-message {
    flex: 1;
    min-width: 280px;
}

.directeur-message h3 {
    font-size: 1.8rem;
    color: #1e2a3e;
    margin-bottom: 0.3rem;
}

.directeur-title {
    color: #ffb347;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.directeur-quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.directeur-quote i:first-child {
    color: #ffb347;
    font-size: 1.5rem;
    opacity: 0.5;
    margin-right: 0.5rem;
}

.directeur-quote i:last-child {
    color: #ffb347;
    font-size: 1.5rem;
    opacity: 0.5;
    margin-left: 0.5rem;
}

.directeur-signature {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e2a3e;
    border-top: 2px solid #ffb347;
    padding-top: 1rem;
    display: inline-block;
}

.directeur-signature i {
    color: #ffb347;
    margin-right: 0.5rem;
}

/* ============================================
   GALERIE
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e2a3e;
    border-left: 4px solid #ffb347;
    padding-left: 1rem;
}

.category-title i {
    color: #ffb347;
    margin-right: 0.5rem;
}

/* ============================================
   PRODUITS
   ============================================ */
.produits-section {
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffb347;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: #ffb347;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-quantity input {
    width: 60px;
    padding: 0.3rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-add {
    width: 100%;
    padding: 0.8rem;
    background: #ffb347;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #ff9f1a;
}

/* ============================================
   GRANITS
   ============================================ */
.granits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.granit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.granit-card:hover {
    transform: translateY(-10px);
}

.granit-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.granit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.granit-info {
    padding: 1.5rem;
    text-align: center;
}

.granit-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.granit-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
}

.granit-price {
    font-weight: 700;
    color: #ffb347;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* ============================================
   DECORATIONS
   ============================================ */
.decorations-section {
    background: #f8f9fa;
}

.decoration-category {
    margin-bottom: 3rem;
}

/* ============================================
   APPLICATIONS
   ============================================ */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.app-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.app-card-content {
    padding: 1.5rem;
    text-align: center;
}

.app-card-content h3 {
    margin-bottom: 0.5rem;
    color: #ffb347;
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffb347, #ff9f1a);
    color: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffb347;
}

.service-card:hover .service-icon {
    color: white;
}

/* ============================================
   ÉQUIPE
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.team-role {
    color: #ffb347;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: linear-gradient(135deg, #0a2b3e 0%, #1a4a6f 100%);
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    color: #ffb347;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background: rgba(255,180,71,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffb347;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   PANIER MODAL
   ============================================ */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    z-index: 2000;
    flex-direction: column;
}

.cart-modal.active {
    display: flex;
}

.cart-header {
    background: linear-gradient(135deg, #0a2b3e, #1a4a6f);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-price {
    color: #ffb347;
    font-weight: bold;
}

.cart-item-remove {
    color: #dc3545;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ============================================
   PAIEMENTS
   ============================================ */
.payment-methods {
    margin: 1rem 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #ffb347;
    background: #fff8f0;
}

.payment-option.selected {
    border-color: #ffb347;
    background: #fff8f0;
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-icon.orange {
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
}

.payment-icon.mtn {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
}

.payment-icon.livraison {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.payment-icon.virement {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.payment-info {
    flex: 1;
}

.payment-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.payment-info span {
    font-size: 0.8rem;
    color: #6c757d;
}

.payment-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #ffb347;
}

.payment-details .detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.payment-details .detail-label {
    width: 100px;
    font-weight: 600;
    color: #6c757d;
}

.payment-details .detail-value {
    flex: 1;
    font-weight: 500;
}

.payment-details .warning {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #856404;
}

/* ============================================
   MODAL GALERIE
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0a1a24;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #0a2b3e 0%, #1a4a6f 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cart-modal {
        max-width: 100%;
    }

    .logo-img {
        height: 45px;
        max-width: 150px;
    }

    .directeur-card {
        padding: 2rem;
        text-align: center;
    }

    .directeur-image {
        width: 180px;
        height: 180px;
    }

    .payment-option {
        padding: 0.75rem;
    }

    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .payment-details .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-details .detail-label {
        width: auto;
    }
}
