/* links.css - Charte graphique et mise en page du portail public Kiki Traiteur */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary-red: #E52424;
    --primary-red-hover: #C81E1E;
    --primary-red-glow: rgba(229, 36, 36, 0.25);
    
    --bg-slate: #0B0F19;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    
    --text-white: #F8FAFC;
    --text-gray: #94A3B8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-slogan: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Social Brand Colors */
    --instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --facebook: #1877F2;
    --tiktok: #000000;
    --linkedin: #0A66C2;
    --website: #E52424;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-slate);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(229, 36, 36, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(108, 92, 231, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Page Container (Limité en largeur pour ressembler à un Linktree premium) */
.portal-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: fadeIn 0.8s ease-out;
}

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

/* ==========================================
   Header Section
   ========================================== */
.brand-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.brand-logo-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #FF3C3C 0%, #BF1515 100%);
    box-shadow: 0 8px 25px rgba(229, 36, 36, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.brand-logo-wrapper:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 30px rgba(229, 36, 36, 0.5);
}

.brand-logo-wrapper svg {
    width: 75%;
    height: 75%;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.brand-text .slogan {
    font-family: var(--font-slogan);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-red);
    letter-spacing: 0.5px;
}

.brand-description {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 420px;
    margin-top: 8px;
    background: rgba(30, 41, 59, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ==========================================
   Sections Layout
   ========================================== */
.section-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

/* ==========================================
   Services Grid
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-color-hover);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(229, 36, 36, 0.1);
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-red);
    color: var(--text-white);
    transform: scale(1.05);
}

.service-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.service-info h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.service-info p {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ==========================================
   Links List (Social & Web)
   ========================================== */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.link-btn {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-white);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: var(--transition);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--text-white);
}

.link-icon-box svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* TikTok needs stroke for some svg paths or uses fill */
.link-icon-box svg.stroke-svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.link-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.link-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.link-subtitle {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.link-arrow {
    color: var(--text-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.link-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* Hover effects custom for each social media */
.link-btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--border-color-hover);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.link-btn:hover .link-arrow {
    transform: translateX(4px);
    color: var(--text-white);
}

/* Specific Social Medias Styling on Hover */

/* 1. Website (Kiki Red) */
.link-website:hover::before {
    background: var(--website);
}
.link-website:hover .link-icon-box {
    background: var(--website);
    box-shadow: 0 0 10px rgba(229, 36, 36, 0.4);
}

/* 2. Instagram (Instagram Gradient) */
.link-instagram:hover::before {
    background: var(--instagram);
}
.link-instagram:hover .link-icon-box {
    background: var(--instagram);
    box-shadow: 0 0 10px rgba(220, 39, 67, 0.4);
}

/* 3. Facebook (Facebook Blue) */
.link-facebook:hover::before {
    background: var(--facebook);
}
.link-facebook:hover .link-icon-box {
    background: var(--facebook);
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.4);
}

/* 4. TikTok (TikTok Cyan/Red blend) */
.link-tiktok:hover::before {
    background: #00f2fe; /* TikTok cyan */
}
.link-tiktok:hover .link-icon-box {
    background: var(--tiktok);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* 5. LinkedIn (LinkedIn Blue) */
.link-linkedin:hover::before {
    background: var(--linkedin);
}
.link-linkedin:hover .link-icon-box {
    background: var(--linkedin);
    box-shadow: 0 0 10px rgba(10, 102, 194, 0.4);
}

/* 6. WhatsApp (WhatsApp Green) */
.link-whatsapp:hover::before {
    background: var(--whatsapp);
}
.link-whatsapp:hover .link-icon-box {
    background: var(--whatsapp);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}

/* ==========================================
   Quick Contact Buttons (Footer Action)
   ========================================== */
.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-contact svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.btn-contact.btn-phone:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-contact.btn-email:hover {
    background: rgba(229, 36, 36, 0.08);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* ==========================================
   Footer Section
   ========================================== */
.brand-footer {
    width: 100%;
    text-align: center;
    padding: 20px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-footer .slogan-mini {
    font-family: var(--font-slogan);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.brand-footer .copyright {
    font-size: 0.72rem;
    color: var(--text-gray);
    opacity: 0.7;
}

.brand-footer .copyright a {
    color: var(--primary-red);
    text-decoration: none;
}

.brand-footer .copyright a:hover {
    text-decoration: underline;
}

/* Back link to Portal */
.back-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    transition: var(--transition);
    align-self: flex-end;
}
.back-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
    color: var(--primary-red);
}
.back-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}
