/* ========================================
   Cabinet ANL - Styles des composants
   ======================================== */

/* Ruban de contact */
.contact-ribbon {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a365d;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.contact-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.contact-icon {
    font-size: 16px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    animation: pulse-icon 2s ease-in-out infinite;
}

.whatsapp-icon {
    animation: whatsapp-bounce 1.5s ease-in-out infinite;
    color: #25D366;
}

.email-icon {
    animation: email-float 2.5s ease-in-out infinite;
    color: #d4af37;
}

.contact-text {
    color: #1a365d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.contact-item:hover .contact-text {
    color: #d4af37;
    transform: scale(1.05);
}

.contact-item:hover .whatsapp-icon {
    color: #128C7E;
    transform: scale(1.2) rotate(10deg);
}

.contact-item:hover .email-icon {
    color: #f4d03f;
    transform: scale(1.2);
}

/* Animations */
@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes whatsapp-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    75% {
        transform: translateY(-1px);
    }
}

@keyframes email-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-2px) rotate(5deg);
    }
    66% {
        transform: translateY(-1px) rotate(-3deg);
    }
}

.contact-message {
    text-align: center;
    flex: 1;
}

.message-text {
    color: #1a365d;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    animation: message-glow 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.message-text::before {
    content: '⚡';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    animation: lightning-flash 2s ease-in-out infinite;
    font-size: 16px;
}

.message-text::after {
    content: '⚡';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    animation: lightning-flash 2s ease-in-out infinite 1s;
    font-size: 16px;
}

@keyframes message-glow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

@keyframes lightning-flash {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    5%, 85% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Responsive pour le ruban de contact */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .message-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-ribbon {
        padding: 6px 0;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    .message-text {
        font-size: 11px;
    }
}

/* Header */
.main-header {
    background-color: #1a365d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ruban doré de séparation */
.golden-ribbon {
    background: linear-gradient(90deg, 
        #d4af37 0%, 
        #f4d03f 25%, 
        #d4af37 50%, 
        #f4d03f 75%, 
        #d4af37 100%);
    height: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.ribbon-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.ribbon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: ribbon-shine 3s ease-in-out infinite;
}

@keyframes ribbon-shine {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0.3;
    }
    50% {
        transform: translateX(100%);
        opacity: 0.8;
    }
}

/* Ruban de construction */
.construction-ribbon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    height: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    border-top: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
}

.construction-marquee {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: marquee-scroll 15s linear infinite;
}

.construction-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    display: inline-block;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive pour le ruban de construction */
@media (max-width: 768px) {
    .construction-ribbon {
        height: 35px;
    }
    
    .construction-text {
        font-size: 12px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .construction-ribbon {
        height: 30px;
    }
    
    .construction-text {
        font-size: 11px;
        padding: 0 10px;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-banner {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-banner:hover {
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #d4af37;
}

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

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-outline {
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #d4af37;
    color: #1a365d;
    transform: translateY(-2px);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ecf0f1;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3498db;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.contact-info i {
    margin-right: 10px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3498db;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white, #ffffff);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    padding: 0.5rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark, #2d3748);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold, #d4af37);
    padding-left: 2rem;
}

.dropdown-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        display: none;
    }

    .logo-banner {
        height: 50px;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        border-bottom: none;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(212, 175, 55, 0.2);
        color: var(--gold);
        padding-left: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* WhatsApp Contact dans le footer */
.whatsapp-contact {
    margin-bottom: 2rem;
}

.whatsapp-chat-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-chat-btn:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon svg {
    width: 28px;
    height: 28px;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.whatsapp-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-number {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

.whatsapp-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

.social-title {
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .logo-banner {
        height: 45px;
    }

    .whatsapp-chat-btn {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .whatsapp-icon {
        width: 40px;
        height: 40px;
    }

    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-title {
        font-size: 0.9rem;
    }

    .whatsapp-number {
        font-size: 0.8rem;
    }

    .whatsapp-desc {
        font-size: 0.7rem;
    }
}
