
:root {
    --accent: #FF0022;
    --accent-hover: #cc001b;
    --dark: #2a2e40;
    --dark-secondary: #333744;
    --darkest: #1e2130;
    --light: #f3f3f3;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--dark);
    margin: 1.5em 0 0.5em;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    margin: 2em 0;
}

.image-grid figure {
    margin: 0;
}

.image-grid img {
    margin: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

hr {
    border: none;
    border-top: 2px solid var(--accent);
    margin: 2.5em 0;
    opacity: 0.3;
}

ul {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

nav a {
    display: block;
    padding: 0.5em 1em;
    color: var(--dark);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.2s;
}

nav a:hover, nav a.active {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(42,46,64,0.85) 0%, rgba(30,33,48,0.95) 100%),
                url('images/en-tete-page-accueil-krav-maga-urbain.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6em 2em;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 0.3em;
}

.hero p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em;
}

.content {
    background: var(--white);
}

.content h2:first-child {
    margin-top: 0;
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 3em 2em;
    margin-top: 4em;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

footer h3 {
    color: var(--white);
    font-size: 1.1em;
    margin-bottom: 1em;
}

footer a {
    color: rgba(255,255,255,0.8);
}

footer a:hover {
    color: var(--accent);
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.5em;
}

.footer-phone {
    text-align: center;
}

.footer-phone .phone-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    color: var(--accent);
    margin: 0.5em 0;
}

.footer-phone .phone-number:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-phone .phone-hours {
    list-style: none;
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 1em;
    line-height: 1.8;
}

.footer-phone .phone-hours li {
    margin-bottom: 0.3em;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2em auto 0;
    padding-top: 2em;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        order: 3;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1em 0;
    }

    nav li {
        margin: 0;
    }

    nav a {
        display: block;
        padding: 0.8em 1em;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid var(--light);
    }

    nav a:hover, nav a.active {
        border-radius: 0;
    }

    .hero {
        padding: 2em 1em;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
}
