/* ===================================
   ATELIER CODE - Stylesheet
   Couleurs: Bleu Nuit, Ambre, Blanc Cassé
   Design: Moderne, Propre, Aéré
   =================================== */

:root {
    --primary-dark: #001F3F;
    --primary-light: #003A70;
    --accent-amber: #FFB800;
    --accent-amber-hover: #FFC933;
    --bg-light: #F8FAFC;
    --text-dark: #334155;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --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 12px 24px rgba(0, 0, 0, 0.15);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Open Sans', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: 'Inter', 'Segoe UI', 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-amber);
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background-color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 140px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-amber);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 3rem 2rem;
    position: relative;
    overflow: visible;
}

.container-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    flex: 1;
}

.hero h2 {
    color: var(--primary-dark);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 0.95rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-amber);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-amber-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #002A5C;
}

/* ===================================
   ABOUT / SPIRIT SECTION
   =================================== */

.about {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Spirit Cards */
.spirit-section {
    padding: 5rem 2rem;
    background-color: var(--bg-light);
}

.spirit-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.spirit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.spirit-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-amber);
    text-align: center;
}

.spirit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.spirit-card i {
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.spirit-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.spirit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===================================
   CURRICULUM SECTION
   =================================== */

.curriculum {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.curriculum h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.curriculum-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.curriculum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-amber) 0%, var(--primary-dark) 100%);
}

.curriculum-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-amber);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.curriculum-card i {
    font-size: 2.5rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.curriculum-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.curriculum-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   REGISTRATION SECTION
   =================================== */

.registration {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.registration h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.registration-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.registration-content > p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    text-align: center;
}

.form-container .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.form-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-info i {
    color: var(--accent-amber);
    margin-right: 0.5rem;
}

.why-register {
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.why-register h3 {
    color: var(--white);
}



/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-amber);
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info i {
    color: var(--accent-amber);
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--accent-amber);
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--primary-dark);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ===================================
   CODE BLOCK STYLING
   =================================== */

code {
    background-color: #f4f4f4;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    color: var(--primary-dark);
    font-size: 0.9em;
}

pre {
    background-color: var(--primary-dark);
    color: var(--accent-amber);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    line-height: 1.5;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .container-hero {
        padding: 0 1.5rem;
    }

    h1, h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Navigation */
    .navbar .container {
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo-img {
        height: 100px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
        list-style: none;
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:active {
        background-color: var(--bg-light);
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .container-hero {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Sections */
    .about,
    .spirit-section,
    .curriculum,
    .registration,
    .contact {
        padding: 3rem 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .spirit-grid,
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .spirit-card,
    .curriculum-card {
        padding: 1.5rem;
    }

    .spirit-card i {
        font-size: 2.5rem;
    }

    .curriculum-card i {
        font-size: 2rem;
    }

    /* Forms */
    .form-container {
        padding: 1.5rem;
    }

    .form-container .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .contact-content {
        padding: 1.5rem;
    }

    .benefits-list {
        text-align: left;
        padding-left: 0;
    }

    .why-register {
        margin-top: 2rem;
        text-align: center;
    }

    .benefits-list li {
        list-style: none;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    /* Base */
    .container {
        padding: 0 1rem;
    }

    html {
        font-size: 14px;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        padding: 0.5rem;
    }

    .logo-img {
        height: 80px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    /* Hero */
    .hero {
        padding: 1.5rem 0;
    }

    .container-hero {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-img {
        border-radius: 8px;
    }

    /* Sections */
    .about,
    .spirit-section,
    .curriculum,
    .registration,
    .contact {
        padding: 2rem 1rem;
    }

    .about-content {
        gap: 1rem;
    }

    .spirit-grid,
    .curriculum-grid {
        gap: 1rem;
    }

    .spirit-card,
    .curriculum-card {
        padding: 1.25rem;
        border-radius: 8px;
    }

    .spirit-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .curriculum-card i {
        font-size: 1.75rem;
    }

    .curriculum-card h3 {
        font-size: 1rem;
    }

    .curriculum-card p {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
    }

    /* Forms */
    .registration h2,
    .contact h2 {
        margin-bottom: 1.5rem;
    }

    .registration-content > p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .form-container {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .form-container .btn {
        width: 100%;
    }

    .form-info {
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }

    .contact-content {
        padding: 1.25rem;
    }

    .contact-info h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .contact-info i {
        font-size: 1rem;
    }

    /* Benefits List */
    .why-register {
        margin-top: 1.5rem;
    }

    .why-register h3 {
        color: var(--white);
    }

    .benefits-list {
        margin: 1rem 0 0 0;
    }

    .benefits-list li {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .logo-img {
        height: 70px;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .spirit-card,
    .curriculum-card,
    .form-container,
    .contact-content {
        padding: 1rem;
    }

    .spirit-card i {
        font-size: 1.75rem;
    }

    .curriculum-card i {
        font-size: 1.5rem;
    }

    .registration {
        padding: 1.5rem 1rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    text-align: center;
}

.benefits-list li {
    list-style: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--white);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.padding-lg {
    padding: 3rem 2rem;
}
