/* ============================================================
   FOCAL Pro — Style global
   Minimaliste, mobile-first, palette Loi 25 (vert/bleu Québec)
   ============================================================ */

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

:root {
    --color-primary: #0a4d3c;
    --color-primary-light: #1a8b6e;
    --color-accent: #2563eb;
    --color-text: #1a1a2e;
    --color-text-muted: #5a6a7a;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fb;
    --color-border: #e1e5e9;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --radius: 6px;
    --shadow: 0 2px 6px rgba(0,0,0,0.06);
    --max-width: 1100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ----- Topbar ----- */
.topbar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky; top: 0; z-index: 100;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 22px; font-weight: 700; color: var(--color-primary); }
.brand span { color: var(--color-accent); }
nav a { margin-left: 24px; color: var(--color-text); font-weight: 500; }
.btn-outline {
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: var(--radius);
}

/* ----- Hero ----- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 38px; margin-bottom: 16px; line-height: 1.2; }
.hero .lead { font-size: 18px; opacity: 0.95; max-width: 700px; margin: 0 auto 32px; }
.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
    display: inline-block; padding: 14px 28px;
    border-radius: var(--radius); font-weight: 600;
    transition: transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-primary { background: #fff; color: var(--color-primary); }
.btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-decoration: none; }

/* ----- Sections ----- */
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-alt); }
.section h2 { font-size: 28px; margin-bottom: 32px; text-align: center; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-3 > div, .card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.card h3 { margin-bottom: 12px; color: var(--color-primary); }
.tag { display: inline-block; padding: 4px 12px; background: var(--color-success); color: #fff; border-radius: 999px; font-size: 12px; margin-top: 12px; }
.tag-soon { background: var(--color-text-muted); }

/* ----- Footer ----- */
.footer { background: var(--color-text); color: #fff; padding: 32px 0; text-align: center; }
.footer p { margin: 4px 0; }
.footer .small { font-size: 12px; opacity: 0.7; }
.footer a { color: #fff; text-decoration: underline; }

/* ----- Forms ----- */
.form-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 40px auto;
}
.form-card h1 { margin-bottom: 24px; color: var(--color-primary); text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
}
.form-control:focus { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}
.btn-submit:hover { background: var(--color-primary-light); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ----- Galerie ----- */
.gallery-header { background: var(--color-primary); color: #fff; padding: 32px 0; text-align: center; }
.gallery-header h1 { margin: 0 0 8px 0; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 20px 0;
}
.photo-tile {
    aspect-ratio: 3/2;
    background: #f0f0f0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    nav a { margin-left: 12px; font-size: 14px; }
    .topbar .container { flex-wrap: wrap; }
}

/* ============================================================
   Phase 1.5 — Galerie d'événement : flou et badges
   ============================================================ */

.photo-tile.photo-blurred {
    cursor: not-allowed;
    position: relative;
}
.photo-tile.photo-blurred img {
    filter: blur(2px);   /* flou supplémentaire CSS sur image déjà floutée serveur */
}
.photo-tile.photo-blurred::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.10);
    pointer-events: none;
}
.blur-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 18px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    z-index: 2;
}
