/* OAcom Template - Homepage / Featured Page Styles */

/* ============================================================
   SOURCE: templates/oui_build/html/com_content/featured/default.php
   STYLE BLOCK 1 (lines 35-672) - Main homepage styles
   ============================================================ */

body, html { overflow-x: hidden !important; }
footer { display: none; }
footer.footer--home {
    display: block;
    background-color: transparent !important;
    padding-top: 0 !important;
}
footer.footer--home .footer-mention,
footer.footer--home .footer-mention a { color: #000 !important; }
footer.footer--home .fm-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease, transform .5s ease;
}
footer.footer--home.is-revealed .fm-word { opacity: 1; transform: none; }
/* inline-block words inside the link drop the anchor underline — restore it */
footer.footer--home .footer-mention a .fm-word { text-decoration: underline; }
.contact-letter { font-family: "Meutas Bold"; }
.smallfooter a { color: #FFF; }
.intro_accueil { position: absolute; height: 0; overflow: hidden; }
#enjeux h3 a { color: #FFF; }
#sp-header { background: transparent !important; }
video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1000;
    overflow: hidden;
}
.text { display: inline-block; }
#developpement:hover .text { font-size: 3rem; transform: scale(1.5); transition: all 1s; }
.w33 { width: 25%; margin: 2%; padding: 2%; display: block; float: left; }
#souvenir ul { text-align: left; font-size: 1rem; }
#sp-main-body { padding: 0 !important; }

strong { color: #d4cfc1; }
#sp-footer { display: none; }
#texte_principal { font-size: 1rem; }
#texte_principal strong { color: #FFF; }
#punchline strong { color: #FFF; }
.frame_rounded { background-color: #FFF; border-radius: 2rem; transition: all 1s; height: 60vh; }
.frame_rounded.transparent { background-color: transparent !important; transition: all 1s; }

#premier_element { width: 80%; margin-top: 13rem; }

#premier_element_redac { transform: scale(1); transition: all 1s; }

#premier_element_redac:hover { transition: all 1s; z-index: 999; }
#deuxieme_element_redac:hover { transition: all 1s; }
#troisieme_element_redac:hover { transition: all 1s; }
#quatrieme_element_redac:hover { transition: all 1s; }
#cinquieme_element_redac:hover { transition: all 1s; }
#sixieme_element_redac:hover { transition: all 1s; }

label { overflow: hidden; }

.oa-copyright { text-align: center; margin: 3rem 0; display: block; }
.oa-copyright, .oa-copyright a { color: #000; }
.punchline {
    font-family: PolicePrincipale;
    text-transform: uppercase;
    font-size: 8rem;
    margin: 0 !important;
    line-height: 6rem;
}
.punchline2 {
    font-family: PolicePrincipale;
    text-transform: uppercase;
    font-size: 4rem;
    margin: 0 !important;
    line-height: 3.5rem;
}
#ingredients { bottom: -25vh; left: 0; right: 0; }
.w-60 { width: 65% !important; }

body:not(.effet-oa-off) .expertises a,
body:not(.effet-oa-off) h4,
body:not(.effet-oa-off) p,
body:not(.effet-oa-off) #menu_title { color: var(--oa-color-dark)!important; }
body:not(.effet-oa-off) .line {
    fill: none;
    stroke: #FFF;
}
body:not(.effet-oa-off) #oa-logo svg { fill: #FFF; }

.effet-oa-off .expertises a,
.effet-oa-off h4,
.effet-oa-off p,
.effet-oa-off #menu_title { color:#FFF; }
.effet-oa-off .line {
    fill: none;
    stroke: #FFF;
}
.effet-oa-off #oa-logo svg { fill: #FFF; }

.w-80 { width: 80%; }
#machin {
    background: white;
    min-height: 60vh;
    border-radius: 2rem;
    position: relative;
    margin-top: 22vh;
    background-image: url('');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#truc {
    background: var(--bs-body-bg);
    position: absolute;
    bottom: 0;
    height: 18%;
    left: 0;
    width: 40%;
    border-top-right-radius: 2rem;
}
.truc_inside { position: relative; width: 100%; height: 100%; }
.truc_inside:before {
    content: ' ';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('/images/anti-border-radius.svg');
    background-size: 100% 100%;
    top: -1.5rem;
}
.truc_inside:after {
    content: ' ';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('/images/anti-border-radius.svg');
    background-size: 100% 100%;
    bottom: 0;
    right: -1.5rem;
}
#cta { position: absolute; right: 1.6rem; bottom: 1.6rem; }
#cta .btn { background: var(--bs-body-bg); border-radius: 1.4rem; }
video { width: 100%; height: 100%; position: absolute; z-index: 0; object-fit: cover; }
#scrolly-video { height: 100%; width: 100%; position: absolute !important; z-index: 0; }
#machin { position: relative; }
#grostitre { font-size: clamp(3.5rem, 2.5vw + 1.5rem, 5rem); font-weight: 700; line-height: 1.1; }
.expertises { line-height: 1.8rem; transition: margin 0.5s ease; }
.expertises i { font-size: 0.45rem; line-height: 1.8rem; }

/* Initial hero state: collapse the line (no height, no my-5 margins) so the CTA
   sits directly under the description. At step 2 (body.effet-oa-off) the margins
   ease back and the items fade in — see the reveal rules below. Overflow is only
   clipped while collapsed, so the hover popovers (which sit above the links) are
   never cut off once the line is shown. */
body:not(.effet-oa-off) .expertises {
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

/* Comprendre · Structurer · Concevoir · Faire évoluer is hidden in the initial
   "off" hero state and only revealed once the hero toggles on (first scroll /
   switch click → body.effet-oa-off). Each item then staggers up in turn.
   Reverting to the top removes .effet-oa-off, which hides the line again. */
.expertises > * {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
body.effet-oa-off .expertises > * {
    pointer-events: auto;
    animation: expertisesFadeIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
body.effet-oa-off .expertises > *:nth-child(1) { animation-delay: 0.10s; }
body.effet-oa-off .expertises > *:nth-child(2) { animation-delay: 0.22s; }
body.effet-oa-off .expertises > *:nth-child(3) { animation-delay: 0.34s; }
body.effet-oa-off .expertises > *:nth-child(4) { animation-delay: 0.46s; }
body.effet-oa-off .expertises > *:nth-child(5) { animation-delay: 0.58s; }
body.effet-oa-off .expertises > *:nth-child(6) { animation-delay: 0.70s; }
body.effet-oa-off .expertises > *:nth-child(7) { animation-delay: 0.82s; }
@keyframes expertisesFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .expertises > * {
        transform: none;
        animation: none;
    }
    body.effet-oa-off .expertises > * {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* CSS-only popovers on the four expertise links — short description bubble
   that appears on hover/focus, with a small arrow pointing down at the link. */
.expertise-link {
    position: relative;
    z-index: 1;
}
.expertise-link:hover,
.expertise-link:focus-visible {
    z-index: 1000;
}
.expertise-link::after {
    content: attr(data-popover);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translate(-50%, 6px);
    width: max-content;
    max-width: 18rem;
    padding: 0.7rem 0.95rem 0.7rem 2.6rem;
    background-color: #ffc901;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
    background-repeat: no-repeat;
    background-position: 0.7rem 0.75rem;
    background-size: 1.25rem 1.25rem;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    border-radius: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 9999;
    white-space: normal;
}
.expertise-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 6px) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #ffc901;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 9998;
}
.expertise-link:hover::after,
.expertise-link:focus-visible::after,
.expertise-link:hover::before,
.expertise-link:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) rotate(0);
}
.expertise-link:hover::before,
.expertise-link:focus-visible::before {
    transform: translate(-50%, 0) rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
    .expertise-link::after,
    .expertise-link::before {
        transition: none;
    }
}

#switch {
    width: 20rem;
    height: 8rem;
    border-radius: 4rem;
    background-color: #FFF;
    box-shadow: inset 1em 1em 2em -1em rgba(0, 0, 0, 1);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#switch-button {
    width: 7rem;
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    background-color: #FFC635;
    border-radius: 3.5rem;
}
#switch-button.on {
    right: 0.75rem;
    left: unset;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-color: #FFC635;
}
#switch-button {
    right: 12.25rem;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-color: black;
}
#premier_element_redac,
#deuxieme_element_redac,
#troisieme_element_redac,
#quatrieme_element_redac,
#cinquieme_element_redac {
    border-radius: 2rem;
    overflow: hidden;
}
#premier_element_redac .bg-redac {
    background-image: url('/images/categories/oacom-img-header-page-categorie-1.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    transition: all 1s;
}
#deuxieme_element_redac .bg-redac {
    background-image: url('/images/categories/oacom-img-header-page-categorie-9.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    transition: all 1s;
}
#troisieme_element_redac .bg-redac {
    background-image: url('/images/categories/oacom-img-header-page-categorie-5.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    transition: all 1s;
}
#quatrieme_element_redac .bg-redac {
    background-image: url('/images/categories/oacom-img-header-page-categorie-8.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    transition: all 1s;
}
#cinquieme_element_redac .bg-redac {
    background-image: url('/images/oacom-activite-humain-5.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    transition: all 1s;
}

.bg-redac { position: absolute; left: 0; right: 0; top: 0; bottom: 0; opacity: 0.8; }

/* element_redac: dark overlay + title on hover */
#premier_element_redac,
#deuxieme_element_redac,
#troisieme_element_redac,
#quatrieme_element_redac,
#cinquieme_element_redac {
    position: relative;
}
#premier_element_redac::after,
#deuxieme_element_redac::after,
#troisieme_element_redac::after,
#quatrieme_element_redac::after,
#cinquieme_element_redac::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #4A5458;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
}
#premier_element_redac:hover::after,
#deuxieme_element_redac:hover::after,
#troisieme_element_redac:hover::after,
#quatrieme_element_redac:hover::after,
#cinquieme_element_redac:hover::after {
    opacity: 1;
}
#premier_element_redac .btn-oaplay,
#deuxieme_element_redac .btn-oaplay,
#troisieme_element_redac .btn-oaplay,
#quatrieme_element_redac .btn-oaplay,
#cinquieme_element_redac .btn-oaplay {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
}
#premier_element_redac:hover .btn-oaplay,
#deuxieme_element_redac:hover .btn-oaplay,
#troisieme_element_redac:hover .btn-oaplay,
#quatrieme_element_redac:hover .btn-oaplay,
#cinquieme_element_redac:hover .btn-oaplay {
    opacity: 1;
}

.card { border-radius: 1.66rem; }
.card.carte { overflow: hidden; position: relative; }
.container-inside { position: absolute; bottom: 2rem; left: 2rem; right: 2rem; }
.container-inside svg.left-long-arrow {
    height: 6rem;
    position: absolute;
    left: unset !important;
    right: 10%;
    top: unset !important;
    bottom: -2rem;
}
.card img.img-decentree { position: absolute; height: 120%; left: -16%; top: -10%; }
.left-long-arrow { height: 2rem; fill: #FFF; display: inline-block; }
.carte h2 { font-weight: 700; color: #FFF; font-size: 2.6rem; }
.card.card-img-circle { overflow: hidden; }
.card-img-circle img {
    position: absolute;
    height: 100%;
    left: 0;
    width: 43%;
    top: 0;
    bottom: 0;
    border-radius: 10% / 50%;
    object-fit: cover;
    transform: translateX(-80px);
    transition: all 1s;
}
.card-img-circle:hover img { transform: translateX(-55px); transition: all 1s; }

.card .btn-primary { position: absolute; right: 1.6rem; bottom: 1.6rem; border-radius: 1.6rem; }
.mobile { width: 100%; height: 100%; position: relative; }
.label-blog {
    background-color: var(--bs-body-bg);
    right: 2rem;
    top: 0rem;
    padding: 0.5rem 1rem;
    color: #FFF;
    font-size: 1rem;
    font-family: PolicePrincipale !important;
}

#blog { background: #948B85; }
#blog .col { overflow: hidden; transition: all 2s; }

.col.active { width: 70% !important; flex: 0 0 auto !important; transition: all 1s; }
#frames .col { position: relative; }
#blog .col img { width: auto !important; max-width: unset !important; height: 100%; filter: saturate(0); margin: auto; }

.col.active div { filter: saturate(1) !important; margin: auto; }
#blog { position: relative; overflow: hidden; }
#blog .bg-image {
    z-index: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.2;
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: saturate(0);
}
#frames { height: 32rem; overflow: hidden; }
#frames .col { transition: all 1s; overflow: hidden; width: 10%; text-align: center; height: 100%; }
#frames .col.active { transition: all 1s; }
.bg-images { position: absolute; width: 100%; height: 100%; }
.bg-images img:nth-child(1) {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    transform: translateX(-100%);
    opacity: 1;
    transition: all 2s;
}
.bg-images img:nth-child(2) {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    transform: translateX(0px);
    opacity: 1;
    transition: all 2s;
}
.bg-images img:nth-child(3) {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    transform: translateX(100%);
    opacity: 1;
    transition: all 2s;
}
.bg-images img { position: absolute; z-index: -1; transform: translateX(100%); }
.articles-text { overflow: hidden; height: 45vh; position: relative; }
.articles-text li:first-child { position: absolute; transform: translateX(1000px); transition: all 1s; }
.articles-text li:nth-child(2) { position: absolute; transform: translateX(0); transition: all 1s; }

.articles-text li { position: absolute; transform: translateX(-1000px); transition: all 1s; padding-top: 2vh; }

svg.Pictos { width: 10rem; z-index: 1; position: relative; }
.picto { position: relative; display: inline-block; transition: all 1s; }
.picto svg .cls-1 { stroke: #FFC635; stroke-width: 2px; transition: all 2s; fill: #3d4447; }
.picto:hover svg .cls-1 { fill: #FFC635; stroke: #FFF; }

.picto:hover svg .cls-1 { fill: #FFC635; transition: all 1s; stroke: #FFF; stroke-width: 6px; }
#appel { height: 45vh; position: relative; }
#appel #votreprojet { opacity: 0; position: absolute; left: 0; right: 0; top: -8vh; transition: all 1s; }

.wrapper-oa-decompose:hover #appel #votreprojet { opacity: 1; top: 5vh; transition: all 1s; }

#appel svg { height: 12rem; z-index: 10; position: relative; }
#appel #forme3 { transform: rotate(35deg) translateX(0px); transition: all 1s; z-index: 10; }
#appel #forme4 { transform: translateX(0px); transition: all 1s; z-index: 10; }
#appel:hover #forme4 { transform: translateX(-280px); transition: all 1s; }
#appel #forme1 { transform: translateX(0px); transition: all 1s; z-index: 11; transition: all 1s; z-index: 10; }

#appel:hover #forme1 { transform: translateX(200px); transition: all 1s; z-index: 11; transition: all 1s; }
#appel:hover #forme1 .cls-1 { fill: #FFF; }
#appel:hover #forme3 { transform: rotate(0deg) translateX(-80px); transition: all 1s; z-index: 11; }
#appel:hover #forme3 .cls-1 { fill: #FFF; stroke: #FFF; transition: all 1s; }

.cls-2, .cls-3 { fill: #000; }
.wrapper-oa-decompose { position: relative; height: 85vh; overflow: hidden; padding-top: 10vh; }
.oa-decompose { display: block; width: 10rem; height: 10rem; display: block; position: relative; margin: 5rem auto; z-index: 11; }
.wrapper-oa-decompose .oa-decompose svg#forme2 { width: 100%; height: 100%; display: block; position: relative; }
.wrapper-oa-decompose .oa-decompose svg#forme4 { position: absolute; width: 100%; height: 100%; top: 0; left: 100%; }
.wrapper-oa-decompose .oa-decompose svg#forme3 { position: absolute; width: 100%; height: 100%; top: 0; left: 50%; }

.wrapper-oa-decompose .oa-decompose svg#forme1 { position: absolute; width: 100%; height: 100%; top: 0; left: -80%; }

.wrapper-oa-decompose .oa-decompose svg { transition: all 1s; }
.wrapper-oa-decompose:hover .oa-decompose svg#forme4 { position: absolute; width: 100%; height: 100%; top: 0; left: 0; transition: all 1s; }
.wrapper-oa-decompose:hover .oa-decompose svg#forme3 { position: absolute; width: 100%; height: 100%; top: 0; left: 0; transition: all 1s; fill: #FFF; z-index: 11; }
.wrapper-oa-decompose .oa-decompose svg#forme1 .cls-1 { fill: #000; }
.wrapper-oa-decompose:hover .oa-decompose svg#forme1 { z-index: 11; position: absolute; width: 100%; height: 100%; top: 0; left: 0; transition: all 1s; fill: #FFF; }
.wrapper-oa-decompose:hover .oa-decompose svg#forme1 .cls-1 { fill: #FFF; }
.wrapper-oa-decompose:hover .oa-decompose svg#forme3 .cls-1 { fill: #FFF; }

.wrapper-oa-decompose #circle {
    transition: all 1s;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    background-color: #FFF;
    position: absolute;
    top: 10%;
    z-index: -1;
    transform: scale(1);
}
.wrapper-oa-decompose:hover #circle { transform: scale(3.4); top: 70%; margin-top: 0rem; transition: all 1s; }
#votreprojet { position: absolute; }
.oa-copyright { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 1rem; background-color: #111; color: #FFF; }
.oa-copyright a { color: #FFF; }

span { color: var(--color-text-primary); }
.is-dark-background { background: var(--color-bg-primary); }
.is-green { color: var(--color-green); }
.is-purple { color: var(--color-purple); }
.is-black { color: var(--color-text-primary); }
.left { text-align: left; }
.center { text-align: center; }
h3 { margin-block-end: 0px; }

.menu.settings { width: 300px !important; }
.menu-list {
    margin: 0;
    display: block;
    width: 100%;
    padding: 8px;
}
.menu-list, ul { list-style-type: none; }
.menu-list + .menu-list { border-top: 1px solid #ddd; }
.menu-sub-list {
    display: none;
    padding: 8px;
    background-color: var(--color-bg-secondary);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(64, 64, 64, 0.15);
    position: absolute;
    left: 100%;
    right: 0;
    z-index: 100;
    width: 100%;
    top: 0;
    flex-direction: column;
}
.menu-sub-list:hover { display: flex; }
.menu-item { position: relative; }
.menu-button {
    font: inherit;
    color: inherit;
    outline: none;
    border: 0;
    padding: 8px 8px;
    width: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-bg-secondary);
}
.menu-button:hover { background-color: var(--color-bg-primary-offset); }
.menu-button:hover + .menu-sub-list { display: flex; }
.menu-button:hover svg { stroke: var(--color-text-primary); }
.menu-button:hover svg.fa { color: var(--color-text-primary); }
.context-button:hover svg.fa { color: var(--color-text-primary); }

.menu-button svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    stroke: var(--color-text-primary-offset);
}
.menu-button svg.fa {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: var(--color-text-primary-offset);
}
.context-button svg.fa {
    height: 30px;
    margin-right: 10px;
    color: var(--color-text-primary-offset);
}
.menu-button svg:nth-of-type(2) {
    margin-right: 0;
    position: absolute;
    right: 8px;
}
.menu-button span:nth-of-type(2) {
    margin-right: 0;
    position: absolute;
    right: 8px;
    font-size: x-small;
}
.menu-button span.second {
    color: var(--color-text-primary-offset);
    font-size: small;
    margin-left: 5px;
}

.menu-button.tor span:nth-of-type(1) {
    color: var(--color-text-primary-offset);
    font-size: small;
    margin-left: 5px;
}
.menu-button--delete:hover { color: var(--color-red); }
.menu-button--delete:hover svg:first-of-type { stroke: var(--color-red); }
.menu-button--orange svg:first-of-type { stroke: var(--color-orange); color: var(--color-orange); }
.menu-button--green svg:first-of-type { stroke: var(--color-green); }
.menu-button--purple svg:first-of-type { stroke: var(--color-purple); }
.menu-button--black svg:first-of-type { stroke: var(--color-black); }
.menu-button--checked svg:nth-of-type(2) { stroke: var(--color-purple); }

.context-buttons {
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: space-between;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
}
.context-buttons span {
    padding-left: 40px;
    margin-right: 10px;
}
.context-button {
    font: inherit;
    outline: none;
    border: 0;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--color-bg-secondary);
}
.context-button:hover { background-color: var(--color-bg-primary-offset); }
.context-button:hover + .menu-sub-list { display: flex; }
.context-button:hover svg { fill: var(--color-text-primary); }
.context-button svg {
    width: 100%;
    margin-right: 10px;
    fill: var(--color-text-primary-offset);
}
.menu-button svg:nth-of-type(2) {
    margin-right: 0;
    position: absolute;
    right: 8px;
}

.settings-button {
    font: inherit;
    outline: none;
    color: inherit;
    border: 0;
    height: 20px;
    border-radius: 8px;
    background-color: var(--color-bg-secondary);
}
.settings-button:hover { background-color: var(--color-bg-primary-offset); }

.settings-button svg {
    width: 100%;
    height: 100%;
    margin-right: 10px;
}

.break { border-top: 1px solid #ddd; }
.menu-button span.disabled, .context-button:hover:disabled { color: var(--color-text-primary-offset); }
.menu-button:hover:disabled, .context-button:hover:disabled { background-color: var(--color-bg-secondary); }
.tor { padding: 0px 8px !important; font-size: small; }
.tor:hover { background-color: var(--color-bg-secondary); }
.context-button p { height: 10px; }

.modal-window {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.5);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}
.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.modal-window > div {
    width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg-secondary);
}
.modal-close {
    color: var(--color-text-primary);
    line-height: 50px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}
.modal-close:hover { color: var(--color-text-primary); }

.modal-window div:not(:last-of-type) { margin-bottom: 15px; }

.no-link { color: inherit; text-decoration: none; }
#context-menu { left: -500px; width: 0; height: 0; }

.menu.settings { background: #FFF; display: none; }

#votreprojet h4 {
    font-family: "gothiks", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 60px;
    line-height: 60px;
}

#votreprojet .btn-primary {
    background-color: transparent !important;
    border: 2px solid #000;
    border-radius: 2rem;
    color: #000 !important;
}

.bg {
    background-image: url('/images/background-2-2.webp');
    background-size: cover;
    background-position: center center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

#dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    pointer-events: none;
    display: block;
}

#oa_play {
    position: relative;
    z-index: 200;
}

.w-66 { width: 66%; }

/* Contact Section */
.contact-section { overflow: hidden; }

.contact-title-container {
    position: absolute;
    left: 256px;
    top: 188px;
    width: 771px;
    height: 589.008px;
}

.contact-letter {
    position: absolute;
    font-size: 179.3px;
    font-weight: 900;
    color: var(--color-gris-bleu);
    line-height: 1.09;
    text-align: center;
    cursor: pointer;
    transform-origin: center center;
    will-change: transform;
}

.contact-title-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact-form-container {
    position: absolute;
    left: 1080px;
    top: 223px;
    width: 496px;
    height: 809px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 45px;
    width: 496px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-input {
    height: 52px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--color-white);
    padding: 14px 17px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3.6px;
    color: var(--color-gris-bleu);
    line-height: 1.2;
    width: 100%;
}

.form-input-half {
    width: 242px;
    height: 55px;
}

.form-textarea {
    height: 246px;
    resize: none;
}

.form-input::placeholder { color: var(--color-gris-bleu); }

.top-redac { filter: unset !important; }

.btn-oaplay-yellow { position: relative; }
.btn-oaplay-yellow:before {
    position: absolute;
    content: ' ';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25%;
    background-color: #ffc901;
    z-index: -1;
    border-radius: 999px;
    transition: all 1s;
}
.btn-oaplay-yellow:hover:before {
    position: absolute;
    content: ' ';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffc901;
    z-index: -1;
    border-radius: 8px;
    transition: all 1s;
}

.titre-off, .titre-on { font-family: 'PolicePrincipale', sans-serif !important; font-weight: 700; }
.titre-on { color: #000; }
.titre-on__word {
    display: inline-block;
    font-family: 'PolicePrincipale', sans-serif !important;
    font-weight: 700;
    will-change: transform, opacity, color;
}
.titre-on__nowrap { white-space: nowrap; }

/* Post hero-toggle: once the last word of "Structurer aujourd'hui…" has
   landed, the body gets `.hero-titre-on-done` so the expertise links and
   the hero CTA shift to a black/outline treatment in sync with the title. */
body.hero-titre-on-done #oa_play .expertise-link {
    color: #000;
    transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
body.hero-titre-on-done #oa_play .expertises i {
    color: #000 !important;
    transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
body.hero-titre-on-done #oa_play .btn-oaplay-yellow.apropos-cta-btn--light {
    color: #000;
    border: 2px solid #000;
    background-color: transparent;
    transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
body.hero-titre-on-done #oa_play .btn-oaplay-yellow.apropos-cta-btn--light::before {
    display: none;
}
.social_platform_icons { overflow: visible; }
.social_platform_icons a {
    display: block !important;
    float: none !important;
    margin-bottom: 1.5rem !important;
    margin-right: 0 !important;
    clear: none !important;
}


/* ============================================================
   SOURCE: templates/oui_build/html/com_content/featured/default.php
   STYLE BLOCK 2 (lines 924-1094) - Reassurance section styles
   ============================================================ */

.reassurance-wrapper {
    width: 100%;
    padding: 6rem 0;
    background: #4a5458;
    position: relative;
    mix-blend-mode: multiply;
}

.reassurance-container {
    max-width: 1149px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.reassurance-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    gap: 2rem;
    padding: 0 1rem;
}

/* Radial gradient background for hover */
.radial-bg {
    position: absolute;
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    border-radius: 50%;
    transition:all 0.5s;
    background: radial-gradient(circle, rgba(245, 193, 73, 0.136) 0%, rgba(74, 84, 88, 0) 100%);
}

.reassurance-item .radial-bg {
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    transition:all 0.5s;
}

/* Icon containers */
.icon-container {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
    width: 100%;
    max-width: 228px;
    aspect-ratio: 228 / 260;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.icon-container.item-1 .icon-inner,
.icon-container.item-2 .icon-inner {
    transform: rotate(270deg);
    width: 100%;
    height: 100%;
    overflow: visible;
}

.icon-container.item-3 {
    max-width: 230px;
}

.icon-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.icon-inner {
    overflow: visible;
    padding-bottom: 20px;
}

/* Content sections */
.reassurance-item .content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.reassurance-item .title {
    width: 100%;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.2em;
    color: #FFF;
    font-weight: 400;
    position: relative;
    height: auto;
}

.reassurance-item .title p { margin: 0; }

.reassurance-item .description {
    width: 100%;
    font-size: clamp(0.9rem, 1.2vw, 1.125rem);
    line-height: 1.5;
    text-align: center;
    color: black;
    font-weight: 400;
    height: auto;
}

.reassurance-item .divider-container {
    width: 20%;
    height: 1px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}

.reassurance-item .divider-line {
    width: 100%;
    height: 1px;
    background: black;
}

/* ============================================================
   APROPOS SECTIONS — repeated content rows on homepage
   ============================================================ */

.apropos-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.apropos-section {
    position: relative;
    z-index: 200;
    width: 100%;
    overflow-x: clip;
}

/* Decorative white-glow floater that slides in from the left at apropos-1
   and travels down with the scroll, parking under each successive row's
   title. Sits behind the row content via z-index. */
.apropos-floater {
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(28rem, 38vw, 44rem);
    height: clamp(28rem, 38vw, 44rem);
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.85) 22%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 75%);
    border-radius: 50%;
    filter: blur(28px);
    z-index: -1;
    opacity: 0;
    will-change: top, transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
    .apropos-floater { display: none; }
}

.apropos-row {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 4rem;
    align-items: center;
    width: 65%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 7rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.apropos-row:first-of-type {
    border-top: none;
    padding-top: 4rem;
}

.apropos-svg {
    position: absolute;
    left: -32vw;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    max-height: 460px;
    width: auto;
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.apropos-svg--right {
    left: auto;
    right: -32vw;
    transform: translateY(-50%) scaleX(-1);
}

/* Make sure the row text always paints above the white floater behind it. */
.apropos-num,
.apropos-title-col,
.apropos-content-col,
.apropos-cta-inner,
.apropos-title {
    position: relative;
    z-index: 1;
}

.apropos-num {
    position: absolute;
    top: 4rem;
    left: 0;
    display: inline-flex;
    align-items: center;
    font-family: 'PolicePrincipale', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #ffc901;
}

.apropos-num::after {
    content: '';
    display: inline-block;
    width: 3rem;
    height: 1px;
    background: #ffc901;
    margin-left: 0.75rem;
}

.apropos-title-col {
    display: flex;
    align-items: center;
}

.apropos-title {
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 1.05;
    color: #000;
    margin: 0;
    will-change: transform, opacity;
}

.apropos-content-col {
    color: #000;
}

.apropos-text {
    font-size: 1.6rem;
    line-height: 1.55;
    color: #000;
}

.apropos-text p {
    color: #000;
    margin: 0 0 1.25rem;
}

.apropos-text p:last-child {
    margin-bottom: 0;
}

.apropos-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.apropos-text ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.apropos-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.85rem;
    height: 2px;
    background: #ffc901;
}

.apropos-text a {
    color: #000;
    text-decoration: none;
    background-image: linear-gradient(#ffc901, #ffc901);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.apropos-text a:hover {
    color: #000;
    background-size: 100% 100%;
    background-image: linear-gradient(rgba(255, 201, 1, 0.25), rgba(255, 201, 1, 0.25));
}

/* Mirror layout: title on right, content on left */
.apropos-row--right .apropos-title-col {
    order: 2;
    justify-content: flex-end;
    text-align: right;
}

.apropos-row--right .apropos-content-col {
    order: 1;
}

.apropos-row--right .apropos-num {
    left: auto;
    right: 0;
    flex-direction: row-reverse;
}

.apropos-row--right .apropos-num::after {
    margin-left: 0;
    margin-right: 0.75rem;
}

/* Variant: methodology steps (Section 2) */
.apropos-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: apropos-step;
}

.apropos-steps-list li {
    counter-increment: apropos-step;
    position: relative;
    padding: 1.4rem 0 1.4rem 4.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1.6rem;
    transition: padding-left 0.3s ease;
}

.apropos-steps-list li:last-child {
    border-bottom: none;
}

.apropos-steps-list li::before {
    content: counter(apropos-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'PolicePrincipale', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffc901;
    letter-spacing: 0.05em;
}

.apropos-steps-list li:hover {
    padding-left: 5rem;
}

.apropos-steps-list li a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    background: none;
    padding: 0;
    transition: color 0.25s ease;
}

.apropos-steps-list li:hover a {
    color: #ffc901;
}

/* Variant: project pills (Section 3) */
.apropos-projects {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.apropos-projects li {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.apropos-projects li::before {
    display: none !important;
}

.apropos-projects a {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border: 1px solid #000;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.apropos-projects a:hover {
    background: #000;
    color: #ffc901;
    transform: translateY(-2px);
    background-image: none;
}

/* Variant: CTA section (Section 5) */
.apropos-row--cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 9rem 0 11rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.apropos-row--cta .apropos-num {
    position: static;
    margin: 0 auto 1.5rem;
    justify-content: center;
}

.apropos-row--cta .apropos-num::after {
    display: none;
}

/* Variant: global approach cards (Section 3) — hover to expand detail */
.apropos-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.apropos-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    padding: 1.9rem 2.1rem;
    cursor: default;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.apropos-card:hover,
.apropos-card:focus-within {
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.apropos-card:focus-within {
    outline: none;
}

.apropos-card-label {
    display: inline-block;
    font-family: 'PolicePrincipale', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffc901;
    margin-bottom: 0.6rem;
}

.apropos-card-gain {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    line-height: 1.1;
    font-weight: 800;
    color: #000;
    margin: 0;
}

.apropos-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}

.apropos-card:hover .apropos-card-list,
.apropos-card:focus-within .apropos-card-list {
    max-height: 22rem;
    margin-top: 1.4rem;
    opacity: 1;
}

.apropos-card-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.6rem;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #000;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.apropos-card-list li:first-child {
    border-top: none;
}

.apropos-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.2em;
    width: 0.85rem;
    height: 2px;
    background: #ffc901;
}

.apropos-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apropos-title--cta {
    font-size: clamp(3rem, 5vw, 5rem);
    margin: 0 0 1.5rem;
}

.apropos-text--cta {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
}

.apropos-cta-btn.btn-oaplay-yellow {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 999px;
    background: transparent;
    transition: transform 0.3s ease, color 0.3s ease;
}

.apropos-cta-btn.btn-oaplay-yellow:hover {
    color: #000;
    transform: translateY(-2px);
}

/* Light variant for the hero CTA on the dark background */
.apropos-cta-btn.btn-oaplay-yellow.apropos-cta-btn--light {
    color: #fff;
    border-color: #fff;
}

.apropos-cta-btn.btn-oaplay-yellow.apropos-cta-btn--light:hover {
    color: #fff;
}

/* Suppress the yellow ::before sweep — it doesn't fit the outlined pill */
.apropos-cta-btn.btn-oaplay-yellow.apropos-cta-btn--light:before,
.apropos-cta-btn.btn-oaplay-yellow.apropos-cta-btn--light:hover:before {
    display: none;
}

/* Tablet */
@media (max-width: 992px) {
    .reassurance-wrapper {
        padding: 4rem 0;
    }

    .reassurance-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .reassurance-item {
        max-width: 400px;
        width: 100%;
    }

    .icon-container {
        max-width: 160px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .reassurance-wrapper {
        padding: 3rem 0;
    }

    .reassurance-container {
        gap: 2.5rem;
    }

    .icon-container {
        max-width: 120px;
    }
}


/* ============================================================
   SOURCE: templates/oui_build/html/com_content/featured/default.php
   STYLE BLOCK 3 (lines 1525-1626) - Footer animation / votreprojet section
   ============================================================ */

.wrapper {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

#footer-anim-container {
    position: absolute;
    height: 1000px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 3000px;
    cursor: pointer;
}

.svg-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
}

#text-overlay {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 1000000;
    width: 600px;
}

/* Enable clicks on buttons inside text-overlay */
#text-overlay .btn,
#text-overlay a,
#text-overlay button {
    pointer-events: auto !important;
    cursor: pointer !important;
}

#text-overlay h2 {
    font-size: 48px;
    font-weight: 600;
    color: rgb(74, 84, 88);
    line-height: 1.2;
    margin-bottom: 12px;
}

#text-overlay p {
    font-size: 18px;
    color: #6b7280;
}

#button-underline {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #111827;
    opacity: 0;
}

#bottom-text {
    margin-top: 20px;
    font-size: 14px;
    color: #111827 !important;
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #text-overlay {
        width: 90%;
    }

    #text-overlay h2 {
        font-size: 32px;
    }

    #text-overlay p {
        font-size: 16px;
    }
}

#votreprojet:after {
    content: ' ';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #FFF;
}


/* ============================================================
   SOURCE: modules/mod_oablog/tmpl/default.php
   Blog carousel section styles
   ============================================================ */

.effet-oa-off p.text-black { color: black !important; }
#frames { padding-left: 2rem; gap: 1rem !important; }

/* Blog carousel - image frames styling */
#frames .col {
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    margin: 0 0.5rem;
}
#frames .col.active {
    opacity: 1;
    transform: scale(1.02);
}
#frames .col:hover {
    opacity: 0.8;
}
#frames .col.active:hover {
    opacity: 1;
}

/* Articles text container - overflow hidden for sliding effect */
.articles-text-container {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

/* Articles text list - horizontal flexbox that slides */
.articles-text {
    display: flex !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
    transition: transform 0.5s ease-in-out !important;
    /* Transform will be set by JS */
}

/* Override template CSS - each item takes full width */
.articles-text > li,
.articles-text > li:first-child,
.articles-text > li:nth-child(2),
.articles-text > li:nth-child(3),
.articles-text > li:nth-child(4),
.articles-text > li:nth-child(5),
.articles-text > li:nth-child(n) {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    opacity: 1 !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

/* Active item styling */
.articles-text > li.active {
    opacity: 1 !important;
}


/* ============================================================
   MOBILE LAYOUT - 768px and below
   Matches Figma design node 2409:5837 (Accueil - mobile)
   ============================================================ */

@media (max-width: 768px) {

    /* --- GLOBAL OVERRIDES --- */
    .menu-pseudo {
        display: none !important;
    }

    body, html {
        overflow-x: hidden !important;
    }

    .w-66,
    .w-60,
    .w-80 {
        width: 100% !important;
    }

    #premier_element {
        width: 100% !important;
        margin-top: 2rem !important;
    }

    /* --- HERO SECTION (#oa_play) --- */
    #oa_play {
        position: relative;
        z-index: 200;
    }

    #oa_play .w-66 {
        width: 100% !important;
        padding: 0 30px;
    }

    #oa_play .d-flex.vh-100 {
        min-height: 100vh;
        height: auto;
        align-items: flex-start !important;
        padding-top: 120px;
    }

    #oa_play .row {
        flex-direction: column !important;
    }

    #oa_play .col-7,
    #oa_play .col-5 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Hero title: Figma 45px Meutas Bold */
    #grostitre {
        font-size: 45px !important;
        line-height: 1.27 !important;
        width: 322px;
    }

    /* Expertises: vertical list with dots, Figma 25px */
    .expertises {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        line-height: 1 !important;
    }

    .expertises a {
        font-size: 25px !important;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .expertises i {
        font-size: 9px !important;
        line-height: 1 !important;
    }

    /* Show expertises as vertical list with bullet before each link */
    .expertises > i {
        display: none !important;
    }

    .expertises > a::before {
        content: '';
        width: 9px;
        height: 9px;
        background: currentColor;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* On/Off toggle: scale down, center below content */
    #oa_play .col-5 {
        justify-content: flex-start !important;
        margin-top: 2rem;
    }

    #switch {
        width: 284px !important;
        height: 76px !important;
        border-radius: 56px !important;
        transform: scale(0.85);
        transform-origin: left center;
    }

    #switch-button {
        width: 129px !important;
        height: 64px !important;
        border-radius: 50px !important;
    }

    #switch-button.on {
        right: 6px !important;
    }

    #switch-button:not(.on) {
        right: 149px !important;
    }

    /* CTA button: Figma 251px wide, 50px height, yellow strip */
    #oa_play .btn-oaplay-yellow {
        width: 251px;
        height: 50px;
        display: inline-flex;
        align-items: center;
        padding-left: 25px;
        font-size: 24px;
        border-radius: 50px;
        margin-top: 1.5rem;
    }

    /* --- ACTION BAR --- */
    #action-bar {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        padding: 0 30px !important;
        margin-top: 2rem !important;
    }

    #action-bar .col,
    #action-bar .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #premier_element_redac,
    #deuxieme_element_redac,
    #troisieme_element_redac,
    #quatrieme_element_redac,
    #cinquieme_element_redac {
        height: auto !important;
        min-height: 80px;
    }

    /* --- PORTFOLIO / "Découvrir notre travail" SECTION --- */
    /* Figma: main 350x289 image, 100x83 thumbnails, 48px title */
    #oa_play + div,
    .portfolio-section {
        padding: 0 30px;
    }

    #frames {
        height: auto !important;
        flex-direction: column !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        gap: 0.5rem !important;
        align-items: center;
    }

    #frames .col {
        width: 100% !important;
        max-width: 350px;
        height: 289px !important;
        border-radius: 20px;
        overflow: hidden;
        opacity: 1 !important;
        margin: 0 !important;
    }

    #frames .col:not(.active) {
        width: 100px !important;
        height: 83px !important;
        border-radius: 20px;
    }

    #frames .col.active {
        width: 100% !important;
        max-width: 350px;
        height: 289px !important;
        flex: 0 0 auto !important;
    }

    #frames .col img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* --- APROPOS SECTIONS (mobile) --- */
    .apropos-row {
        width: calc(100% - 60px) !important;
        padding: 4rem 0 !important;
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 1.5rem !important;
    }

    .apropos-row:first-of-type {
        padding-top: 3rem !important;
    }

    .apropos-svg {
        display: none !important;
    }

    .apropos-num {
        position: static;
        margin-bottom: 1rem;
    }

    .apropos-row--right .apropos-title-col {
        order: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .apropos-row--right .apropos-content-col {
        order: 0;
    }

    .apropos-row--right .apropos-num {
        left: 0;
        right: auto;
        flex-direction: row;
    }

    .apropos-row--right .apropos-num::after {
        margin-left: 0.75rem;
        margin-right: 0;
    }

    .apropos-title {
        font-size: 45px !important;
        line-height: 1.15 !important;
    }

    .apropos-text {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
    }

    .apropos-steps-list li {
        font-size: 1.4rem;
        padding: 1.1rem 0 1.1rem 3.5rem;
    }

    /* Approach cards: no hover on touch — reveal detail lists by default */
    .apropos-card {
        padding: 1.5rem 1.6rem;
    }

    .apropos-card-gain {
        font-size: 1.7rem;
    }

    .apropos-card-list {
        max-height: none;
        margin-top: 1rem;
        opacity: 1;
        overflow: visible;
    }

    .apropos-card-list li {
        font-size: 1.25rem;
    }

    .apropos-row--cta {
        padding: 5rem 0 6rem !important;
    }

    .apropos-title--cta {
        font-size: 42px !important;
    }

    .apropos-text--cta {
        font-size: 1.5rem !important;
    }

    .apropos-cta-btn.btn-oaplay-yellow {
        padding: 0.85rem 2rem;
        font-size: 1.05rem;
    }

    /* --- BLOG / ARTICLES SECTION --- */
    /* Figma: bg #948b85, padding 150px top/bottom 30px sides */
    #blog {
        padding: 150px 30px !important;
        flex-direction: column !important;
    }

    #blog .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    #blog .row {
        flex-direction: column !important;
        margin: 0 !important;
        padding: 1rem 0 !important;
    }

    /* Blog columns: stack vertically, full width */
    #blog .col-4,
    #blog .col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Blog title: Figma 45px Meutas Bold white */
    #blog h2,
    #blog .display-1 {
        font-size: 45px !important;
        line-height: 1.27 !important;
        color: #FFF !important;
    }

    /* Blog subtitle with dividers: Figma 22px, tracking 4.4px */
    #blog .subtitle,
    #blog [style*="letter-spacing"] {
        font-size: 22px !important;
        letter-spacing: 4.4px !important;
    }

    /* Blog article text: Figma 20px */
    .articles-text > li p {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    /* Blog image gallery - main image + thin thumbnails */
    #blog .bg-images,
    #blog .bg-images img {
        position: relative !important;
        transform: none !important;
    }

    .articles-text-container {
        width: 100% !important;
    }

    .articles-text {
        width: 100% !important;
    }

    /* --- REASSURANCE SECTION --- */
    /* Figma: 765px height, 140px padding, items 383px wide, stacked vertically */
    .reassurance-wrapper {
        height: auto !important;
        min-height: 765px;
        padding: 140px 0 !important;
    }

    .reassurance-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 140px !important;
        width: 400px !important;
        max-width: 100%;
        padding: 0 30px;
    }

    .reassurance-item {
        max-width: 383px;
        width: 100%;
        padding: 0 20px;
    }

    /* Icon containers on mobile */
    .icon-container {
        max-width: 229px !important;
    }

    /* Reassurance title: Figma 35px New Atten Medium, tracking 7px, #d4cfc1 */
    .reassurance-item .title {
        font-size: 35px !important;
        letter-spacing: 7px !important;
        color: #d4cfc1 !important;
        height: 108px;
    }

    /* Reassurance description: Figma 18px white */
    .reassurance-item .description {
        font-size: 18px !important;
        color: #FFF !important;
        line-height: 1.44 !important;
        height: 96px;
    }

    /* --- CONTACT SECTION ("ON VOUS ÉCOUTE") --- */
    /* Figma: letters at ~78px, container scaled from 771px desktop to fit 340px */
    #contact-section {
        height: auto !important;
        min-height: auto;
        padding: 0 !important;
    }

    .contact-section {
        position: relative !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden !important;
    }

    /* Scale the entire letter container to fit mobile viewport */
    /* Desktop container: 771px wide, 589px tall. Scale: 340/771 ≈ 0.44 */
    .contact-title-container {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 771px !important;
        height: 589px !important;
        transform: scale(0.44) !important;
        transform-origin: top left !important;
        margin: 0 auto 0 30px !important;
        /* Reserve actual visible space: 589 * 0.44 ≈ 259px */
        margin-bottom: -330px !important;
    }

    /* Keep letter font-size unchanged - container scale handles sizing */

    .contact-form-container {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 30px;
    }

    /* Form: Figma full width, 55px height inputs, rgba(255,255,255,0.3) bg */
    .contact-form {
        width: 100% !important;
        gap: 15px !important;
    }

    .form-group {
        gap: 10px !important;
    }

    .form-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .form-input,
    .form-input-half {
        width: 100% !important;
        height: 55px !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border: 1px solid #FFF !important;
        padding: 14px 17px !important;
        font-size: 18px !important;
        letter-spacing: 3.6px !important;
    }

    .form-textarea {
        height: 246px !important;
    }

    /* Contact form submit button: yellow strip style */
    .contact-form .btn-oaplay-yellow {
        width: 251px;
        height: 50px;
        display: inline-flex;
        align-items: center;
        padding-left: 25px;
        font-size: 24px;
        border-radius: 50px;
    }

    /* --- FOOTER ANIMATION (#votreprojet) --- */
    .wrapper {
        height: 629px !important;
    }

    #footer-anim-container {
        width: 1200px !important;
    }

    #text-overlay {
        width: 90% !important;
    }

    #text-overlay h2 {
        font-size: 32px !important;
    }

    #text-overlay p {
        font-size: 16px !important;
    }

    /* Bottom buttons: stack on mobile */
    #bottom-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    #bottom-buttons .btn {
        width: 200px;
        text-align: center;
    }

    /* Copyright footer */
    .oa-copyright {
        font-size: 11px;
    }

    /* --- Dark overlay scaling --- */
    #dark-overlay {
        width: 100vw !important;
    }
}


/* ============================================================
   MOBILE FINE-TUNING - 480px and below
   ============================================================ */

@media (max-width: 480px) {

    /* Tighter padding on small phones */
    #oa_play .w-66 {
        padding: 0 20px;
    }

    #grostitre {
        font-size: 40px !important;
        width: 100%;
    }

    .expertises a {
        font-size: 22px !important;
    }

    #switch {
        transform: scale(0.75);
    }

    /* Action bars tighter */
    #action-bar {
        padding: 0 20px !important;
    }

    /* Apropos sections tighter */
    .apropos-row {
        padding: 3rem 0 !important;
        width: calc(100% - 40px) !important;
    }

    .apropos-title {
        font-size: 38px !important;
    }

    .apropos-text {
        font-size: 1.3rem !important;
    }

    .apropos-row--cta {
        padding: 4rem 0 5rem !important;
    }

    .apropos-title--cta {
        font-size: 36px !important;
    }

    /* Blog tighter padding */
    #blog {
        padding: 100px 20px !important;
    }

    /* Reassurance tighter */
    .reassurance-container {
        padding: 0 20px;
        gap: 100px !important;
    }

    /* Contact section tighter */
    .contact-form-container {
        padding: 0 20px;
    }

    .contact-title-container {
        transform: scale(0.85);
        transform-origin: center center;
    }

    /* Footer */
    #footer-anim-container {
        width: 900px !important;
    }
}
