/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #0B2343; /* Dark Blue from logo */
    --secondary-color: #FDBA31; /* Gold from logo */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #fff;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #d89e2a;
}

ul {
    list-style: none;
}

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

section {
    padding: 60px 0;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo img {
    height: 50px;
}

.main-nav-list {
    display: flex;
    gap: 25px;
}

.main-nav-list a {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav-list a:hover,
.main-nav-list a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- HERO SECTION --- */
.hero {
    background: var(--light-gray);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- SERVICES SECTION --- */
.services {
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.service-card a {
    font-weight: 600;
}

/* --- FAQ SECTION --- */
.faq {
    background: var(--light-gray);
}
.faq .container {
    max-width: 800px;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 0 20px 0;
}

.faq-answer ul {
    list-style: disc;
    list-style-position: inside;
    padding: 0 0 20px 20px;
}

.faq-answer ul li {
    margin-bottom: 10px;
}

.faq-answer ul li:last-child {
    margin-bottom: 0;
}

/* --- EXPERTISE SECTION --- */
.expertises {
    text-align: center;
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.expertise-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}
.expertise-card h3 {
    margin-bottom: 0.5rem;
}

/* --- CONTACT SECTION --- */
.contact {
    text-align: center;
}
.contact .container {
    max-width: 700px;
}
.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}
.contact-form button {
    align-self: center;
    cursor: pointer;
}

/* --- FOOTER --- */
.main-footer-bottom {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 15px;
}
.footer-col a {
    color: var(--light-gray);
}
.footer-col a:hover {
    color: var(--secondary-color);
}
.qualiopi-logo {
    max-width: 150px;
    background: var(--white);
    padding: 10px;
    border-radius: 5px;
}
.footer-legal {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3a506b;
}
.footer-legal a {
    color: var(--light-gray);
    margin: 0 10px;
    font-size: 0.9rem;
}
.footer-credits {
    text-align: center;
    margin-top: 10px;
    padding-top: 0;
    font-size: 0.9rem;
    border-top: none;
}

/* --- SUB-PAGE SPECIFIC STYLES --- */
.page-header {
    background: var(--light-gray);
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 2.5rem;
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.training-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.training-card h3 {
    margin-bottom: 0.5rem;
}

.training-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.training-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.cta-button-outline {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 40px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    border: 3px solid var(--primary-color);
}

.benefits-list {
    list-style: none;
    text-align: left;
    max-width: 700px;
    margin: 20px auto 40px auto;
    font-size: 1.1rem;
}

.benefits-list li {
    margin-bottom: 15px;
}

.checkmark {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* --- RESPONSIVE & MOBILE MENU --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 80px; /* Header height */
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav-list {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    
    .main-nav-list li {
        width: 100%;
    }

    .main-nav-list a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
    }
    .main-nav-list a:hover,
    .main-nav-list a.active {
        background: var(--light-gray);
        border-bottom-color: var(--light-gray);
    }

    .main-header .cta-button {
        display: none;
    }

    .burger-menu {
        display: block;
    }
    .burger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .services-grid, .trainings-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    color: #555;
}

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

.mission {
    padding: 60px 0;
}

.offer .training-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offer .training-card {
    display: flex;
    flex-direction: column;
}

.offer .training-card ul {
    list-style: disc;
    list-style-position: inside;
    padding-left: 10px;
    flex-grow: 1;
}

.offer .training-card li {
    margin-bottom: 10px;
}

.why-ikonia {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.audit-callout {
    padding: 60px 0;
}

.training-paths {
    padding: 60px 0;
}

.path-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.path-item:last-child {
    margin-bottom: 0;
}

.path-item h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.path-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.path-item ul {
    list-style: disc;
    list-style-position: inside;
    padding-left: 20px;
}

.pedagogy {
    padding: 60px 0;
}

.why-audit {
    padding: 60px 0;
}

.benefits-list-container {
    max-width: 800px;
    margin: 30px auto;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.benefits-list-container ul {
    list-style: disc;
    list-style-position: inside;
    padding-left: 20px;
}

.audit-content .path-item h3 {
    font-size: 1.5rem;
}

.audit-audience .features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .services-grid, .trainings-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.legal-content {
    padding: 60px 0;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-position: inside;
    margin: 10px 0 20px 20px;
}

/* --- FORM STATUS --- */
#form-status {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}
#form-status.success {
    color: #28a745; /* Green */
}
#form-status.error {
    color: #dc3545; /* Red */
} 