/* ========================================
   TOURNOI CENTRE OUEST 2019
   Volleyball Sapeurs-Pompiers
   ======================================== */

:root {
    --fire-orange: #E8621A;
    --fire-dark: #C44D0F;
    --fire-light: #F4943E;
    --ember: #FFB347;
    --charcoal: #1A1A1A;
    --smoke: #2D2D2D;
    --ash: #3A3A3A;
    --silver: #B0B0B0;
    --pearl: #F5F2ED;
    --white: #FFFFFF;
    --danger-red: #D32F2F;

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --nav-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--pearl);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--fire-orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fire-dark); }

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAV ---- */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--charcoal);
    height: var(--nav-height);
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-logo span {
    color: var(--fire-orange);
}
.nav-logo:hover { color: var(--white); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 6px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--silver);
    padding: 8px 14px;
    border-radius: 4px;
    transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,.08);
}

.nav-cta {
    background: var(--fire-orange) !important;
    color: var(--white) !important;
}
.nav-cta:hover {
    background: var(--fire-dark) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: .3s;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, var(--charcoal) 0%, var(--smoke) 50%, var(--ash) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(232,98,26,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(244,148,62,.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--pearl), transparent);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    animation: fadeUp .8s ease-out;
}

.hero-tag {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fire-orange);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title em {
    font-style: normal;
    color: var(--fire-orange);
    display: block;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--fire-orange);
    margin: 24px auto;
    border-radius: 2px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--silver);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--silver);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .6;
    animation: bounce 2s infinite;
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    background: var(--fire-orange);
    padding: 16px 40px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 15px rgba(232,98,26,.3);
}

.btn-primary:hover {
    background: var(--fire-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232,98,26,.4);
}

.btn-primary--dark {
    background: var(--charcoal);
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.btn-primary--dark:hover {
    background: var(--smoke);
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--charcoal);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--fire-orange);
    margin-top: 12px;
    border-radius: 2px;
}

.section-title--light {
    color: var(--white);
}

.section-title--center,
.section-title--center::after {
    text-align: center;
}
.section-title--center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ---- INTRO ---- */
.section-intro {
    background: var(--pearl);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

.intro-text p {
    margin-bottom: 16px;
    color: #444;
}

.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-left: 4px solid var(--fire-orange);
    padding: 24px 28px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--fire-orange);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--silver);
    margin-top: 4px;
    display: block;
}

/* ---- HIGHLIGHTS ---- */
.section-highlights {
    background: var(--charcoal);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.highlight-card {
    background: var(--smoke);
    padding: 32px 28px;
    border-radius: 8px;
    border-top: 3px solid var(--fire-orange);
    transition: transform .25s, box-shadow .25s;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.highlight-icon {
    color: var(--fire-orange);
    margin-bottom: 16px;
}

.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 10px;
}

.highlight-card p {
    color: var(--silver);
    font-size: .95rem;
    line-height: 1.55;
}

/* ---- CTA ---- */
.section-cta {
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-dark));
    text-align: center;
    padding: 60px 0;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cta-inner p {
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
    margin-top: var(--nav-height);
    padding: 60px 0 50px;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(232,98,26,.12), transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    position: relative;
}

.page-header h1 span {
    color: var(--fire-orange);
}

.page-header p {
    color: var(--silver);
    margin-top: 10px;
    font-size: 1.05rem;
    position: relative;
}

/* ---- CONTENT BLOCKS ---- */
.content-section {
    padding: 60px 0;
}

.content-section + .content-section {
    border-top: 1px solid rgba(0,0,0,.06);
}

.content-block {
    max-width: 820px;
}

.content-block p {
    margin-bottom: 16px;
    color: #444;
}

.content-block h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--charcoal);
    margin: 32px 0 14px;
}

/* ---- PROGRAMME / TIMELINE ---- */
.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--fire-orange), var(--ember));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 20px 28px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .2s;
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 26px;
    width: 14px;
    height: 14px;
    background: var(--fire-orange);
    border-radius: 50%;
    border: 3px solid var(--pearl);
    box-shadow: 0 0 0 3px var(--fire-orange);
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fire-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-desc {
    color: #444;
    margin-top: 4px;
}

.timeline-item--highlight {
    background: var(--charcoal);
    border-left: 4px solid var(--fire-orange);
}

.timeline-item--highlight .timeline-time {
    color: var(--ember);
}

.timeline-item--highlight .timeline-desc {
    color: var(--silver);
}

/* ---- RULES ---- */
.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rules-list li {
    padding: 18px 24px 18px 60px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
    position: relative;
    color: #444;
    line-height: 1.55;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 22px;
    width: 20px;
    height: 20px;
    background: var(--fire-orange);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---- ADDRESSES ---- */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.address-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}

.address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
}

.address-card-header {
    background: var(--charcoal);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-card-num {
    width: 32px;
    height: 32px;
    background: var(--fire-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    color: var(--white);
    flex-shrink: 0;
}

.address-card-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.address-card-body {
    padding: 20px 24px;
    color: #555;
    font-size: .95rem;
    line-height: 1.6;
}

.address-card-body .price {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--fire-orange);
}

/* ---- FORM ---- */
.form-section {
    padding: 60px 0;
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

.form-header {
    background: var(--charcoal);
    padding: 32px 40px;
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
}

.form-header p {
    color: var(--silver);
    margin-top: 6px;
    font-size: .95rem;
}

.form-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--pearl);
    border: 2px solid transparent;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s, background .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--fire-orange);
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .95rem;
}

.form-table th {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--charcoal);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
}

.form-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.form-table input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    text-align: center;
}

.form-table .price-cell {
    font-weight: 600;
    color: var(--fire-orange);
}

.form-total {
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    padding: 16px 0;
    border-top: 3px solid var(--fire-orange);
}

.form-total span {
    color: var(--fire-orange);
    margin-left: 12px;
}

.form-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: .9rem;
    color: #555;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: var(--fire-orange);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.05rem;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: .85rem;
    color: var(--silver);
}

.form-message {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 600;
}

.form-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message--error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---- QUOTE BLOCKS ---- */
.quote-block {
    background: var(--white);
    border-left: 4px solid var(--fire-orange);
    padding: 28px 32px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.quote-block p {
    font-style: italic;
    color: #555;
}

.quote-block .quote-author {
    font-style: normal;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 12px;
    display: block;
}

/* ---- FOOTER ---- */
.main-footer {
    background: var(--charcoal);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--silver);
    font-size: .85rem;
    margin-top: 4px;
}

.footer-sponsors {
    color: var(--silver);
    font-size: .85rem;
    text-align: center;
}

.footer-sponsors span {
    display: block;
    font-weight: 600;
    color: var(--fire-orange);
    margin-bottom: 4px;
}

.footer-copy {
    color: #555;
    font-size: .8rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--charcoal);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,.3);
    }

    .nav-links.open { display: flex; }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card { flex: 1; min-width: 140px; }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline { padding-left: 44px; }
    .timeline::before { left: 14px; }
    .timeline-item::before { left: -40px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .form-body { padding: 24px; }
    .form-header { padding: 24px; }
}
