/*
Theme Name: Ma solution formation thème
Author: MSF team
Description: This theme is use to create template for different taxonomy, as training, skills, projects
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    --text: #333;
    --muted: #666;
    --dark: #242424;
    --light: #C5C5C5;
    --primary: #F28A20;
    --divider-ratio: 15%;
    --secondary: #3f66af;
    --deep-dark: #171612;
    --transition: 0.3s ease;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


html {
    font-size: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0px;
    font-size: 1rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-weight: 700;
    font-size: 1.75rem;
}

h3 {
    font-weight: 600;
    font-size: 1.5rem;
}

h4 {
    font-weight: 600;
    font-size: 1.25rem;
}

h5 {
    font-weight: 600;
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
}

small {
    font-size: 0.875rem;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

a {
    font-weight: 500;
    font-size: inherit;
    text-decoration: underline;
}

ul,
ol {
    font-size: 1rem;
}

li {
    font-size: 0.95rem;
}

dt {
    font-weight: 600;
}

dd {
    margin-left: 1rem;
}

blockquote {
    margin: 1rem 0;
    font-size: 1.1rem;
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid #ddd;
}

code,
pre {
    font-size: 0.9rem;
    font-family: "Courier New", monospace;
}

sub,
sup {
    font-size: 0.75rem;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

address {
    font-style: normal;
}

time {
    font-weight: 500;
}

cite {
    font-style: italic;
}

figcaption {
    font-size: 0.9rem;
}

.container {
    display: grid;
    gap: 20vh;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.m-auto {
    margin: auto;
}

.my-7 {
    margin: 7vh 0;
}

.w-100 {
    width: 100%;
}

.hero {
    padding: 2rem 1rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(/wp-content/themes/msf/assets/hero.webp);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1,
.hero h2,
.hero h3 {
    margin-bottom: 1.5rem;
    color: white;
}


.hero-text {
    color: white;
    max-width: 35em;
    line-height: 1.6;
    margin-left: auto;
    font-size: 1.1rem;
    margin-right: auto;
    margin-bottom: 2rem;
}

.hero-cta {
    margin: 2vh 0;
    display: flex;
    justify-content: center;
    gap: 2vw;
}

.cta-button {
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 2rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: #0984e3;
    transition: transform 0.2s, background-color 0.2s;
}

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

.cta-button:hover,
.cta-button:focus {
    background-color: #0873c4;
    transform: translateY(-2px);
}

.cta-secondary:hover,
.cta-secondary:focus {
    background-color: #da7b1d;
    transform: translateY(-2px);
}

.company-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.company-contacts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--secondary, #3F66AF);
    transition: color 0.3s ease;
}

.company-contacts svg {
    width: 1.8em;
    height: 1.8em;
    flex-shrink: 0;
    fill: currentColor;
}

.company-contacts span {
    line-height: 1.4;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.company-contacts a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.heading {
    text-align: start;
    overflow: hidden;
    border-radius: 2px;
    text-align: center;
    white-space: nowrap;
    background-color: var(--primary);
}

.heading::after {
    content: " :";
}

.show-span span {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--primary);
}

.container {
    margin: 0 10vw;
}

.g-10 {
    gap: 10vh;
}

.grid-2col,
.grid-4col {
    gap: 1vh;
    display: grid;
    grid-template-columns: 1fr;
}

.col-left,
.col-right {
    grid-column: 1;
}

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

.site-footer {
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    gap: 2rem;
}

.footer-section {
    padding: 1rem 0;
}

.footer-heading {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: var(--text);
    text-decoration: none;
    line-height: 2;
    transition: color var(--transition);
}

.footer-link:hover,
.footer-link:focus {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--secondary);
    transition: fill var(--transition);
}

.social-link:hover .social-icon {
    fill: var(--primary);
}

.footer-address {
    font-style: normal;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--light-grey);
    padding: 1.5rem 1rem;
    text-align: center;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.title {
    text-align: center;
    position: relative;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    padding-bottom: 0.5rem;
}

.title::after {
    bottom: 0;
    left: 50%;
    content: '';
    height: 3px;
    width: 60px;
    position: absolute;
    background: var(--primary);
    transform: translateX(-50%);
}

.error-404 {
    background: #fff;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.error-content {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.error-image svg {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

h1 {
    color: #F28A20;
    font-size: 4rem;
    margin: 0.5rem 0;
    line-height: 1;
}

.subtitle {
    color: #3F66AF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.home-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #F28A20;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.home-button:hover {
    background-color: #3F66AF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 102, 175, 0.2);
}


.seo-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.home-button[href*="contact"] {
    background-color: #3F66AF;
}

.home-button[href*="contact"]:hover {
    background-color: #2F4A7F;
}

.error-image svg[role="img"] {
    focusable: false;
}

[itemprop] {
    font-style: normal;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
}

.publish-date {
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.publish-date::before {
    content: "📅";
    font-size: 0.9em;
    opacity: 0.8;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background-color: rgba(242, 138, 32, 0.1);
    border-radius: 6px;
    color: var(--primary);
    line-height: 1.4;
    transition: all 0.2s ease;
}

.update-icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    flex-shrink: 0;
}

.publish-date:hover {
    color: var(--secondary);
    opacity: 0.9;
}

.update-badge:hover {
    background-color: rgba(242, 138, 32, 0.15);
    transform: translateY(-1px);
}

[itemprop="dateModified"]:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.btn:hover {
    background: #e07c1d;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: #36599f;
}

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

.mb-4 {
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.highlight {
    color: var(--primary);
    position: relative;
}

.formation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.formation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.formation-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pedagogie-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    counter-reset: step-counter;
}

.step-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    counter-increment: step-counter;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-card::before {
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(242, 138, 32, 0.1);
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 1;
}

.step-card h3 {
    position: relative;
    z-index: 2;
}

.step-card p {
    position: relative;
    z-index: 2;
}

.avantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.avantage-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.avantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.avantage-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.vision-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.vision-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.divider {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: var(--divider-ratio);
    overflow: visible;
    z-index: 10;
}

.divider__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .article-meta {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        font-size: 1rem;
    }

    .publish-date::before {
        font-size: 1em;
    }

    .update-badge {
        padding: 0.5rem 1.2rem;
        gap: 0.8rem;
    }

    .update-icon {
        width: 1.3em;
        height: 1.3em;
    }
}

@media (min-width: 48em) {
    :root {
        --divider-ratio: 5%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    blockquote {
        font-size: 1.25rem;
    }

    li {
        font-size: 1rem;
    }

    .g-10 {
        gap: 8vh;
    }

    .grid-2col {
        gap: 2vw;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4col {
        gap: 2vw;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .company-contacts {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.5rem;
        padding: 1.5rem 0;
    }

    .company-contacts a {
        gap: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .company-contacts a:hover {
        color: var(--primary, #F28A20);
        background-color: rgba(242, 138, 32, 0.05);
    }

    .company-contacts svg {
        width: 2em;
        height: 2em;
    }

    .heading {
        padding: 1vh 4vw 1vh 1vh;
        width: fit-content;
    }

    .align-justify-center {
        align-self: center;
        justify-self: center;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 2rem;
    }

    .error-404 {
        min-height: 50vh;
    }

    .error-content {
        padding: 3rem;
    }

    h1 {
        font-size: 6rem;
    }

    .subtitle {
        font-size: 2rem;
    }

    .error-image svg {
        width: 200px;
    }

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

    .hero-content {
        padding: 0 4vw;
    }


    .formation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pedagogie-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 64em) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 2rem;
    }

    body {
        font-size: 1.05rem;
    }

    p {
        font-size: 1.05rem;
    }

    blockquote {
        font-size: 1.35rem;
    }

    .container {
        gap: 2vh;
    }

    .g-10 {
        gap: 8vh;
    }

    .hero {
        padding: 200px 0;
    }

    .hero-text {
        margin-left: 0;
        text-align: start;
    }

    .hero-content {
        text-align: start;
    }

    .hero-cta {
        justify-content: unset;
    }

    .company-contacts {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        padding: 4rem 2rem;
    }

    .footer-section {
        padding: 0;
    }

    .error-container {
        padding: 4rem 2rem;
    }

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

    .pedagogie-steps {
        grid-template-columns: repeat(3, 1fr);
    }

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

    :root {
        --divider-ratio: 4.5%;
    }
}

@media (min-width: 80em) {
    h1 {
        font-size: 3.5rem;
    }

    body {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .update-badge {
        transition: none;
    }

    .divider__image {
        transition: transform 1.2s ease-out;
        transform: translateY(0);
    }

    .divider--animated .divider__image {
        transform: translateY(-15%);
    }
}