/*
Theme Name: L'Illusionniste
Theme URI: https://example.com
Author: Alexandre
Description: A smart, minimalist dark theme for a French Magician.
Version: 2.8 (Social Media)
*/

/* --- Variables & Reset --- */
:root {
    --bg-dark: #0f0f0f;
    --bg-panel: #161616;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #d4af37; /* Muted Gold */
    /* Fonts are set dynamically in header.php */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 1rem;
    color: #fff;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--accent); }

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 100px 0; overflow: hidden; }

/* --- Header (General) --- */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
}

nav a {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    /* Center content for flex children */
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover { color: var(--accent); }

/* --- DESKTOP RULES (Default) --- */
/* Force header to top */
header { top: 0; bottom: auto; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 20px 0; }

/* STRICT: Hide Mobile Icons on Desktop */
.mob-icon { display: none !important; }

/* STRICT: Show Text on Desktop */
.desk-text { display: inline-block !important; }


/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    opacity: 0;
    animation: magicalFadeIn 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: -webkit-linear-gradient(#fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--accent);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 40px;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--accent);
    padding: 12px 35px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* --- About Section --- */
.about-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-portrait:hover { filter: grayscale(0%); }

.about-text-content { text-align: left; }

.about-text h2, .about-text-content h2 { font-size: 2.5rem; color: var(--accent); margin-bottom: 30px; }
.about-text p, .about-text-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

.signature {
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    opacity: 0.6;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px; 
    background: #222;
    border: 1px solid #222;
}

.service-card {
    background: var(--bg-dark);
    padding: 60px 40px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover { 
    background: var(--bg-panel); 
    z-index: 1; /* Brings it above borders */
    transform: scale(1.02);
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.icon-magie { font-size: 2rem; color: var(--accent); margin-bottom: 20px; display: block; }

/* --- Clients / Logos Section --- */
#clients { padding-top: 50px; }

.clients-grid {
    display: grid;
    /* Auto-fit grid that adapts to screen size, logos min 120px, max 1fr */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-item img {
    max-width: 100%;
    max-height: 80px; /* Limit logo height */
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
}

.client-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* --- Gallery --- */
#gallery { background-color: var(--bg-dark); padding-top: 50px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid #333;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.6s ease;
    opacity: 0.8;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
    opacity: 1;
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 40px;
}

.review-item {
    padding: 40px 20px;
    border: 1px solid #333;
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}

.review-item:hover { border-color: var(--accent); transform: translateY(-5px); }

.review-quote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 20px;
}

.review-author {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.reviews-embed {
    text-align: center;
    width: 100%;
    min-height: 200px;
}

/* --- Contact --- */
.contact { background: var(--bg-panel); text-align: center; }
.contact h2 { font-size: 2.5rem; margin-bottom: 10px; }
.contact-sub { color: var(--accent); margin-bottom: 40px; font-family: var(--font-heading); font-style: italic; }

/* Input Styling */
input, textarea, select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px;
    color: #fff;
    font-family: var(--font-body);
    margin-bottom: 20px;
    transition: border 0.3s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="submit"] {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    width: auto;
    transition: 0.3s;
}
input[type="submit"]:hover { background: var(--accent); color: #000; }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 50px 0;
    font-size: 0.8rem;
    color: #444;
    letter-spacing: 1px;
}

/* --- Social Icons (FIXED) --- */
.social-links {
    display: flex;
	height: 40px;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex; /* Use flex to center SVG perfectly */
    align-items: center;
    justify-content: center;
    width: 40px; /* Fixed touch target size */
    height: 40px;
    color: #fff; /* Default white */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* STRICT SVG SIZING */
.social-links svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    display: block;
}

.social-links a:hover {
    color: var(--accent); /* Gold on hover */
    transform: translateY(-3px);
}

/* --- ANIMATION ENGINE --- */
@keyframes magicalFadeIn {
    from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px); 
    filter: blur(5px); 
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); 
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* 1. Move Header to Bottom */
    header {
        top: auto;
        bottom: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: none;
        padding: 10px 0;
    }

    /* 2. Adjust Nav Spacing */
    nav ul {
        gap: 0;
        justify-content: space-around;
        padding: 0 10px;
        width: 100%;
    }

    /* 3. HIDE Text, SHOW Icons */
    .desk-text { display: none !important; }
    .mob-icon { 
        display: block !important; 
        font-size: 1.5rem; 
        line-height: 1;
    }

    nav a { padding: 10px; }

    /* Layout Adjustments */
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-text-content { text-align: center; }
    .about-portrait { margin-bottom: 40px; }
    .hero-content h1 { font-size: 3rem; }
    
    /* Reduce motion slightly on mobile */
    .reveal { transform: translateY(30px); transition-duration: 0.8s; }

    /* Padding for Bottom Bar */
    body { padding-bottom: 60px; }
}