/* =========================================================
   OC STUDIO — MAINTENANCE PAGE
   ========================================================= */


/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {
    --color-black: #050505;
    --color-text: #5f6470;
    --color-grey: #8c9098;
    --color-line: #aeb1b6;

    --color-blue: #405A9E;
    --color-beige: #eeebda;

    --color-background: #ffffff;

    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;

    --page-padding: clamp(48px, 7vw, 110px);
}


/* =========================================================
   02. RESET
   ========================================================= */

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

html {
    margin: 0;
    padding: 0;

    background: var(--color-background);
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    overflow-x: hidden;

    background: var(--color-background);

    color: var(--color-black);

    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   03. HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 10;

    width: 100%;

    display: flex;
    align-items: center;

    padding:
        38px
        var(--page-padding)
        0;
}


/* ---------- BRAND ---------- */

.brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo {
    display: block;

    width: 165px;
    height: auto;
}


/* ---------- DIVIDER ---------- */

.header-divider {
    width: 1px;
    height: 44px;

    margin: 0 26px;

    flex-shrink: 0;

    background: #b9b9b9;
}


/* ---------- SERVICES ---------- */

.studio-services {
    margin: 0;

    color: #565b65;

    font-size: 9px;
    font-weight: 500;

    line-height: 1.45;
    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* ---------- LOCATION ---------- */

.studio-location {
    position: relative;

    margin: 0 0 0 auto;

    padding-left: 58px;

    color: #565b65;

    font-size: 8px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    white-space: nowrap;
}

.studio-location::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 40px;
    height: 1px;

    background: #b9b9b9;

    transform: translateY(-50%);
}


/* =========================================================
   04. MAIN
   ========================================================= */

main {
    position: relative;

    width: 100%;
}


/* =========================================================
   05. HERO
   ========================================================= */

.maintenance-hero {
    position: relative;

    width: 100%;

    min-height: calc(100vh - 82px);

    padding:
        clamp(72px, 10vh, 110px)
        var(--page-padding)
        60px;

    overflow: hidden;
}


/* =========================================================
   06. CONTENT
   ========================================================= */

.maintenance-content {
    position: relative;

    z-index: 5;

    width: min(560px, 42vw);
}


/* =========================================================
   07. LABEL
   ========================================================= */

.maintenance-label {
    display: flex;
    align-items: center;

    gap: 16px;

    margin: 0 0 42px;

    color: #555b66;

    font-size: 9px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.label-line {
    display: block;

    width: 42px;
    height: 1px;

    background: var(--color-line);
}


/* =========================================================
   08. TITLE
   ========================================================= */

.maintenance-title {
    margin: 0;

    color: var(--color-black);

    font-family: var(--font-heading);

    font-size: clamp(64px, 5.4vw, 88px);
    font-weight: 700;

    line-height: 0.91;
    letter-spacing: -0.06em;

    text-transform: uppercase;
}

.maintenance-title span {
    color: var(--color-blue);
}


/* =========================================================
   09. DESCRIPTION
   ========================================================= */

.maintenance-description {
    max-width: 470px;

    margin: 34px 0 0;

    color: var(--color-text);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.55;
}


/* =========================================================
   10. CONTENT DIVIDER
   ========================================================= */

.content-divider {
    width: 48px;
    height: 1px;

    margin-top: 40px;

    background: #92969c;
}


/* =========================================================
   11. CONTACT
   ========================================================= */

.maintenance-contact {
    display: flex;
    align-items: center;

    gap: 34px;

    margin-top: 32px;
}

.contact-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 59px;

    flex-shrink: 0;

    border: 1px solid #b7bac0;
    border-radius: 50%;
}

.contact-icon-image {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;
}

.contact-copy {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.contact-label {
    margin-bottom: 5px;

    color: #656a73;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.3;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-value {
    position: relative;

    display: inline-block;

    padding-bottom: 9px;

    color: var(--color-black);

    font-size: 16px;
    font-weight: 500;

    line-height: 1.35;

    white-space: nowrap;
}

.contact-value::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 42px;
    height: 2px;

    background: var(--color-blue);
}


/* =========================================================
   12. ABSTRACT VISUAL / HALOS
   ========================================================= */

.maintenance-visual {
    position: absolute;

    z-index: 1;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.halo {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


/* ---------- BLUE HALO ---------- */

.halo-blue {
    z-index: 1;

    width: clamp(500px, 43vw, 700px);
    height: clamp(500px, 43vw, 700px);

    top: 18%;
    left: 18%;

    background:
        radial-gradient(
            circle,
            rgba(23, 107, 255, 0.17) 0%,
            rgba(23, 107, 255, 0.10) 34%,
            rgba(23, 107, 255, 0.04) 56%,
            rgba(23, 107, 255, 0) 75%
        );
}


/* ---------- BEIGE HALO ---------- */

.halo-beige {
    z-index: 1;

    width: clamp(420px, 36vw, 590px);
    height: clamp(420px, 36vw, 590px);

    top: 29%;
    left: 43%;

    background:
        radial-gradient(
            circle,
            rgba(238, 235, 218, 0.72) 0%,
            rgba(238, 235, 218, 0.42) 38%,
            rgba(238, 235, 218, 0.15) 61%,
            rgba(238, 235, 218, 0) 76%
        );
}


/* =========================================================
   13. HERO CURVE
   ========================================================= */

/*
   IMPORTANT:
   .hero-curve doit être un enfant DIRECT de .maintenance-hero.
   Il ne doit PAS être placé dans .maintenance-visual.
*/

/* ========================================
   HERO CURVE
======================================== */

.hero-curve {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 2;

    overflow: visible;
    pointer-events: none;
}


/* TRAIT */

.hero-curve-path {

    fill: none;

    stroke: #176BFF;

    stroke-width: 2.5;

    vector-effect: non-scaling-stroke;

    stroke-linecap: round;

    stroke-linejoin: round;

    stroke-dasharray: 4000;

    stroke-dashoffset: 4000;

    animation: drawCurve 5.5s cubic-bezier(0.45, 0, 0.25, 1) infinite;

}


/* ========================================
   CURVE ANIMATION
======================================== */

@keyframes drawCurve {

 /* Départ */

    0% {

        stroke-dashoffset: 4000;

        opacity: 1;

    }

    /* Dessin lent gauche → droite */

    72% {

        stroke-dashoffset: 0;

        opacity: 1;

    }

    /* Très courte pause */

    82% {

        stroke-dashoffset: 0;

        opacity: 1;

    }

    /* Disparition rapide */

    92% {

        stroke-dashoffset: 0;

        opacity: 0;

    }

    /* Reset */

    100% {

        stroke-dashoffset: 4000;

        opacity: 0;

    }

}


/* =========================================================
   14. TABLET
   768px — 1199px
   ========================================================= */

@media (max-width: 1199px) {

    :root {
        --page-padding: clamp(32px, 5vw, 64px);
    }


    /* ---------- HEADER ---------- */

    .site-header {
        padding-top: 32px;
    }

    .logo {
        width: 140px;
    }

    .header-divider {
        height: 40px;

        margin: 0 18px;
    }

    .studio-services {
        font-size: 9px;
    }

    .studio-location {
        padding-left: 42px;

        font-size: 8px;

        white-space: nowrap;
    }

    .studio-location::before {
        width: 28px;
    }


    /* ---------- HERO ---------- */

    .maintenance-hero {
        min-height: calc(100vh - 90px);

        padding-top: clamp(70px, 9vh, 100px);
        padding-bottom: 50px;
    }

    .maintenance-content {
        width: min(570px, 57vw);
    }


    /* ---------- LABEL ---------- */

    .maintenance-label {
        margin-bottom: 38px;
    }


    /* ---------- TITLE ---------- */

    .maintenance-title {
        font-size: clamp(58px, 7vw, 78px);
    }


    /* ---------- DESCRIPTION ---------- */

    .maintenance-description {
        max-width: 470px;

        margin-top: 28px;

        font-size: 15px;
    }


    /* ---------- DIVIDER ---------- */

    .content-divider {
        margin-top: 38px;
    }


    /* ---------- CONTACT ---------- */

    .maintenance-contact {
        gap: 28px;

        margin-top: 32px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-icon-image {
        width: 19px;
        height: 19px;
    }

    .contact-value {
        font-size: 12px;
    }


    /* ---------- HALOS ---------- */

    .halo-blue {
        width: 580px;
        height: 580px;

        top: 23%;
        left: 18%;
    }

    .halo-beige {
        width: 470px;
        height: 470px;

        top: 35%;
        left: 50%;
    }

}

/* ---------- HALO INTERACTIF ---------- */

.maintenance-visual {

    --halo-x: 0px;

    --halo-y: 0px;

    transform: translate3d(

        var(--halo-x),

        var(--halo-y),

        0

    );

    will-change: transform;

}


/* =========================================================
   15. MOBILE
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --page-padding: 24px;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .site-header {
        padding-top: 24px;

        align-items: flex-start;
    }

    .logo {
        width: 105px;
    }

    .header-divider {
        height: 32px;

        margin: 0 14px;
    }

    .studio-services {
        font-size: 7px;

        line-height: 1.45;
        letter-spacing: 0.08em;
    }

    .studio-location {
        display: none;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .maintenance-hero {
        min-height: auto;

        padding-top: 58px;
        padding-bottom: 64px;

        overflow: hidden;
    }

    .maintenance-content {
        width: 100%;
    }


    /* =====================================================
       LABEL
       ===================================================== */

    .maintenance-label {
        gap: 12px;

        margin-bottom: 32px;

        font-size: 9px;
    }

    .label-line {
        width: 34px;
    }


    /* =====================================================
       TITLE
       ===================================================== */

    .maintenance-title {
        font-size: clamp(44px, 12.5vw, 60px);

        line-height: 0.92;
        letter-spacing: -0.055em;
    }


    /* =====================================================
       DESCRIPTION
       ===================================================== */

    .maintenance-description {
        max-width: 420px;

        margin-top: 28px;

        font-size: 14px;
        line-height: 1.55;
    }

    .maintenance-description br {
        display: none;
    }


    /* =====================================================
       DIVIDER
       ===================================================== */

    .content-divider {
        width: 48px;

        margin-top: 34px;
    }


    /* =====================================================
       CONTACT
       ===================================================== */

    .maintenance-contact {
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        margin-top: 30px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
    }

    .contact-icon-image {
        width: 18px;
        height: 18px;
    }

    .contact-label {
        font-size: 8px;
    }

    .contact-value {
        font-size: 13px;
    }


    /* =====================================================
       VISUAL
       ===================================================== */

    .maintenance-visual {
        inset: 0;

        width: 100%;
        height: 100%;

        opacity: 1;
    }


    /* ---------- BLUE HALO ---------- */

    .halo-blue {
        width: 480px;
        height: 480px;

        top: 330px;
        left: 110px;

        background:
            radial-gradient(
                circle,
                rgba(23, 107, 255, 0.13) 0%,
                rgba(23, 107, 255, 0.075) 35%,
                rgba(23, 107, 255, 0.025) 58%,
                rgba(23, 107, 255, 0) 75%
            );
    }


    /* ---------- BEIGE HALO ---------- */

    .halo-beige {
        width: 380px;
        height: 380px;

        top: 570px;
        left: 180px;

        opacity: 0.65;

        background:
            radial-gradient(
                circle,
                rgba(238, 235, 218, 0.55) 0%,
                rgba(238, 235, 218, 0.30) 42%,
                rgba(238, 235, 218, 0.10) 62%,
                rgba(238, 235, 218, 0) 76%
            );
    }


    /* ---------- CURVE ---------- */

    .hero-curve {
        display: none;
    }

}


/* =========================================================
   16. VERY SMALL MOBILE
   <= 374px
   ========================================================= */

@media (max-width: 374px) {

    :root {
        --page-padding: 20px;
    }

    .logo {
        width: 98px;
    }

    .header-divider {
        margin: 0 11px;
    }

    .studio-services {
        font-size: 6.5px;
    }

    .maintenance-title {
        font-size: clamp(42px, 12.3vw, 54px);
    }

    .contact-value {
        font-size: 12px;
    }

}


/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
/* =========================================================
   CONTACT ICON — FILL FROM RIGHT
   ========================================================= */

.contact-icon {
    position: relative;
    overflow: hidden;

    /* Permet de garder l'icône au-dessus du remplissage */
    isolation: isolate;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}


/* Couche indigo animée */
.contact-icon::before {
    content: "";

    position: absolute;
    inset: 0;

    background-color: #405A9E;

    /* Le remplissage commence complètement à droite */
    transform: translateX(101%);

    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);

    z-index: 0;
}


/* L'icône reste au-dessus du remplissage */
.contact-icon-image {
    position: relative;
    z-index: 1;

    transition: filter 0.3s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .contact-item:hover .contact-icon {
        border-color: #FFFFFF;
        transform: scale(1.05);
    }

    /* Indigo : droite → gauche */
    .contact-item:hover .contact-icon::before {
        transform: translateX(0);
    }

    /* Icône noire → blanche */
    .contact-item:hover .contact-icon-image {
        filter: brightness(0) invert(1);
    }

}

@media (max-width: 768px) {

    body {
        min-height: 100svh;
        min-height: 100dvh;

        display: flex;
        flex-direction: column;
    }

    .site-header {
        flex-shrink: 0;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .maintenance-hero {
        flex: 1;
        min-height: 0;
    }

}

@media (max-width: 768px) {

    body {
        min-height: 100svh;
        min-height: 100dvh;

        display: flex;
        flex-direction: column;
    }

    .site-header {
        flex-shrink: 0;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .maintenance-hero {
        flex: 1;
        min-height: 0;
    }

}

@media (max-width: 768px) {

    .maintenance-contact {
        margin-top: 48px;
    }

}

/* =========================================================
   CONTACT — TRAIT ANIMÉ
   ========================================================= */

/* =========================================================
   CONTACT — TRAIT AU HOVER
   ========================================================= */

.contact-value {
    position: relative;
    display: inline-block;
}


/* Trait caché au repos */
.contact-value::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 2px;

    background-color: #405A9E;

    /* Caché au repos */
    transform: scaleX(0);

    /* Le trait apparaît depuis la droite */
    transform-origin: right center;

    transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .contact-item:hover .contact-value::after {
        transform: scaleX(1);
    }

}

/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .contact-item:hover .contact-value::after {
        /*
         * Petit effet :
         * le trait se contracte puis pourra être redessiné
         */
        animation: contactLine 0.65s cubic-bezier(0.65, 0, 0.35, 1);
    }

}


@keyframes contactLine {

    0% {
        transform: scaleX(1);
        transform-origin: left center;
    }

    45% {
        transform: scaleX(0);
        transform-origin: left center;
    }

    46% {
        transform: scaleX(0);
        transform-origin: right center;
    }

    100% {
        transform: scaleX(1);
        transform-origin: right center;
    }

}

/* =========================================================
   CONTACT — COULEUR TEXTE AU HOVER
   ========================================================= */

.contact-label,
.contact-value {
    transition: color 0.35s ease;
}


@media (hover: hover) and (pointer: fine) {

    .contact-item:hover .contact-label,
    .contact-item:hover .contact-value {
        color: #405A9E;
    }

}