:root {
    --apple-white: #ffffff;
    --apple-grey-bg: #f5f5f7;
    --apple-text: #1d1d1f;
    --apple-text-secondary: #86868b;
    --accent-color: #7c9a92;
    --radius: 18px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--apple-white);
    color: var(--apple-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 175px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--apple-text);
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Dropdown styling */
.has-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    width: 100%;
}

.dropdown-menu li a:hover {
    background-color: var(--apple-grey-bg);
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.btn-nav {
    background: var(--apple-text);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Blog Header & Article Content */
.blog-header {
    margin-bottom: 60px;
    text-align: center;
    padding-top: 40px;
    background: var(--apple-white);
}

/* Page header used on Charte and other pages */
.page-header {
    margin-bottom: 60px;
    text-align: center;
    padding-top: 40px;
    background: var(--apple-white);
}

.page-header h1 {
    font-size: 3rem;
    margin-top: 20px;
}

.article-content {
    max-width: 900px;
    margin: 60px auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--apple-text);
}

/* Hero */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--apple-text-secondary);
    margin-bottom: 40px;
}

.hero-image-wrapper {
    margin-top: 50px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    display: block;
}

.btn-main {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
}

/* Sections */
.section {
    padding: 50px 0;
}

.bg-light {
    background-color: var(--apple-grey-bg);
}

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

/* Certification FFJR */
.certification-section {
    padding: 60px 0;
    text-align: center;
}

.certification-content {
    background: var(--apple-grey-bg);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.ffjr-logo {
    width: 140px;
    height: auto;
    flex-shrink: 0;
}

.certification-text h3 {
    margin-bottom: 10px;
}

.certification-text p {
    color: var(--apple-text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.certification-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.certification-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .certification-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

.accompagnement-text {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.accompagnement-text p {
    margin-bottom: 20px;
}

.tag {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Cartes de Stages */
.grid-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stage-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-divider {
    margin: 20px 0;
    margin-top: auto;
    border: 0;
    border-top: 1px solid #eee;
}

.stage-card:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Cartes de Stages */
.stage-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.date-tag {
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 10px;
    margin-bottom: 0;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--apple-grey-bg);
    color: var(--apple-text-secondary);
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h4 {
    color: var(--apple-text);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--apple-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.description-col {
    max-width: 300px;
}

.description-col p {
    line-height: 1.6;
    margin-top: 10px;
}

.description-col strong {
    color: var(--apple-text);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #d2d2d7;
}

/* Badge Complet */
.badge-complet {
    background-color: #e57373;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

.price-unavailable {
    font-style: italic;
    color: var(--apple-text-secondary);
    font-weight: 400;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .section {
        padding: 30px 0;
    }
}