/* style-base.css - Styles de base FO */

/* ================================================
   VARIABLES CSS (design tokens)
   ================================================ */
:root {
    /* === Couleurs principales === */
    --logo-image-url: url('/images/logo_photoeventfx.png');
    --primary: #2c3e50;
    --primary-dark: #243644;
    --primary-alt: #34495e;
    --secondary: #e74c3c;
    --secondary-dark: #c0392b;
    --accent: #f39c12;
    --color-info: #3498db;
    --color-info-dark: #2980b9;
    --color-gray: #95a5a6;
    --color-gold: #ffd700;
    --color-gold-hover: #f8c56d;

    /* === Texte === */
    --text: #2d3436;
    --text-light: #636e72;
    --text-dark: #333;
    --text-medium: #555;
    --text-muted: #666;
    --text-subtle: #777;
    --text-placeholder: #999;

    /* === Arriere-plans === */
    --bg: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-admin: #f5f6fa;
    --bg-warning: #fff3cd;
    --bg-success-light: #d4edda;
    --bg-error-light: #f8d7da;
    --bg-filter: #f0f4f8;
    --bg-blue-light: #e3f2fd;

    /* === Bordures === */
    --border: #dfe6e9;
    --border-light: #ddd;
    --border-lighter: #f0f0f0;

    /* === Etats === */
    --success: #27ae60;
    --error: #e74c3c;
    --warning: #ffc107;
    --text-success: #155724;
    --text-error: #721c24;
    --text-warning: #856404;

    /* === Typographie === */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mono: 'Courier New', monospace;

    /* === Ombres === */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-panel: -2px 0 10px rgba(0,0,0,0.1);
    --shadow-modal: 0 20px 60px rgba(0,0,0,0.3);

    /* === Rayons de bordure === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 20px;

    /* === Transition === */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   THEMES
   ================================================ */

/* Thème Orange - couleurs chaudes proches de l'orange */
[data-theme="orange"] {
    /*--logo-image-url: url('/images/logo_orange.png');*/
    --primary: #b87653;
    --primary-dark: #8a7569;
    --primary-alt: #8b4e2a;
    --secondary: #e8720c;
    --secondary-dark: #c45e0a;
    --accent: #f5a623;
    --color-info: #3498db;
    --color-info-dark: #2980b9;
    --color-gold: #ffd700;
    --color-gold-hover: #f8c56d;
    --bg-blue-light: #fff0e0;
    --bg-filter: #fdf3ec;
}

/* Thème Graphite & Or - épuré, sobre, haut de gamme */
[data-theme="graphite"] {
    /*--logo-image-url: url('/images/logo_graphite.png');*/
    --primary: #1e1e1e;
    --primary-dark: #111111;
    --primary-alt: #2e2e2e;
    --secondary: #c9a96e;
    --secondary-dark: #b8934e;
    --accent: #d4b483;
    --color-info: #7a9cb8;
    --color-info-dark: #5e829e;
    --color-gold: #e8c97a;
    --color-gold-hover: #d4b060;
    --bg-filter: #f5f4f2;
    --bg-blue-light: #f0ede8;
}

/* Thème Ivoire - blanc/beige épuré, lisibilité maximale */
[data-theme="ivoire"] {
    /*--logo-image-url: url('/images/logo_ivoire.png');*/
    --primary: #706459;
    --primary-dark: #463c31;
    --primary-alt: #816e5d;
    --secondary: #c4a882;
    --secondary-dark: #b09068;
    --accent: #d4bfa0;
    --color-info: #7aaab0;
    --color-info-dark: #5d8f96;
    --color-gold: #d4b483;
    --color-gold-hover: #c4a470;
    --bg-gray: #faf8f5;
    --bg-admin: #faf8f5;
    --bg-filter: #f5f2ed;
    --bg-blue-light: #fdf9f4;
    --border: #e8e0d5;
    --border-light: #e0d8cc;
    --border-lighter: #f0ebe4;
}

/* Thème Minimal - Blanc & Gris (High Key) */
[data-theme="minimal"] {
    /*--logo-image-url: url('/images/logo_minimal.png');*/
    --primary: #2c2c2c;
    --primary-dark: #1a1a1a;
    --primary-alt: #4a4a4a;
    --secondary: #7f8c8d;
    --secondary-dark: #636e72;
    --accent: #bdc3c7;
    --color-info: #3498db;
    --color-info-dark: #2980b9;
    --color-gold: #95a5a6;
    --color-gold-hover: #7f8c8d;
    --bg-gray: #f8f9fa;
    --bg-admin: #f4f6f7;
    --bg-filter: #ffffff;
    --bg-blue-light: #ecf0f1;
    --border: #dfe6e9;
    --border-light: #ecf0f1;
    --border-lighter: #f5f6fa;
}

/* Thème Rouge - passion, énergie */
[data-theme="rouge"] {
    /*--logo-image-url: url('/images/logo_rouge.png');*/
    --primary: #c0392b;
    --primary-dark: #a93226;
    --primary-alt: #ab4e52;
    --secondary: #d9534f;
    --secondary-dark: #c9302c;
    --accent: #e67e22;
    --color-info: #3498db;
    --color-info-dark: #2980b9;
    --color-gold: #ffd700;
    --color-gold-hover: #f8c56d;
    --bg-blue-light: #fdedec;
    --bg-filter: #fae5e3;
}

/* ================================================
   RESET & BASE
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* ================================================
   TYPOGRAPHIE
   ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* ================================================
   LAYOUT — CONTAINER & SECTIONS
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   LAYOUT — HEADER & NAVIGATION
   ================================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

/* Logo avec image et texte */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-image: var(--logo-image-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-part-primary {
    color: var(--primary);
}

.logo-part-secondary {
    color: var(--color-gray);
}

/* Responsive logo */
@media (max-width: 480px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-menu a.active {
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* ================================================
   LAYOUT — MAIN & PAGE HEADER
   ================================================ */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ================================================
   COMPOSANTS — HERO SECTION
   ================================================ */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 50px;
    background: white;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(15px); }
}

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

/* ================================================
   COMPOSANTS — BOUTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ================================================
   COMPOSANTS — SECTIONS GÉNÉRIQUES
   ================================================ */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    color: var(--primary);
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ================================================
   COMPOSANTS — GALERIE & MASONRY
   ================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

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

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item:hover {
    box-shadow: var(--shadow-lg);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: var(--transition);
    object-fit: cover;
}

/* Tuiles paysage : hauteur fixe */
.masonry-item.landscape {
    height: 250px;
}

/* Tuiles portrait : hauteur = 2 × paysage + 1 marge (column-gap = margin-bottom = 1.5rem) */
.masonry-item.portrait {
    height: calc(2 * 250px + 1.5rem);
}