/* =========================
   WRAPPER GLOBAL
========================= */

.services-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;

    display: flex;
    align-items: flex-start;
    gap: 80px;
}

/* =========================
   TITRE + BOUTON (GAUCHE)
========================= */

.titre-bouton {
    width: 400px;
    min-width: 400px;
    flex-shrink: 0;

    position: sticky;
    top: 120px;

    padding: 0;
    color: white;
}

.titre-bouton-container {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    margin-left: 60px;
}

/* TITRE */

.titre-bouton-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: 64px;
    line-height: 1;
    margin: 0;
}

.titre-main {
    font-family: 'Coolvetica', sans-serif;
}

.titre-alt {
    font-family: 'Braven', sans-serif;
}

/* =========================
   BOUTON
========================= */

.titre-bouton-button {
    font-family: 'Coolvetica', sans-serif;
    font-size: 14px;
    letter-spacing: 1.1px;

    display: inline-flex;
    align-items: center;

    padding: 10px 20px 10px 35px;

    border-radius: 999px;

    text-decoration: none;
    color: white;

    background: linear-gradient(
        90deg,
        #FA6D6D,
        #FF0202
    );

    position: relative;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

/* point blanc */

.titre-bouton-button::before {
    content: "";
    position: absolute;

    left: 18px;
    top: 50%;

    width: 6px;
    height: 6px;

    background: white;
    border-radius: 50%;

    outline: 1.5px solid rgba(255,255,255);
    outline-offset: 3px;

    transform: translateY(-50%) scale(1);
}

/* animation */

.titre-bouton-button:hover::before {
    animation: buttonPulse 0.9s ease-out infinite;
}

@keyframes buttonPulse {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.titre-bouton-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 2, 2, 0.2);
    filter: brightness(1.05);
}

.titre-bouton-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* =========================
   BLOC COMPÉTENCES (DROITE)
========================= */

.competence-block {
    width: calc(100% - 480px);
    margin-left: auto;

    padding: 0;
    color: white;

    margin-top: -55px;

    /* espace entre chaque bloc */
    margin-bottom: 40px;
        padding-right:60px;
        margin-bottom:100px;

}

/* rectangle glass */

.competence-container {
    width: 100%;

    display: flex;
    gap: 40px;
    align-items: center;

    padding: 35px;

    border-radius: 25px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

}

/* =========================
   COLONNES
========================= */

.competence-left {
    width: 60%;
}

.competence-right {
    margin-left: 40px;
}


/* =========================
   TITRE
========================= */

.competence-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 20px;
}

/* =========================
   TEXTE
========================= */

.competence-text {
    font-family: 'Archivo-Thin', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* =========================
   SERVICES
========================= */

.competence-services {
    display: flex;
    flex-wrap: wrap; /* en ligne avec retour */
    gap: 5px 10px;
}

/* service */

.competence-item {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: 'Coolvetica', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
}

/* point rouge */

.competence-item::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #FF0202;

    flex-shrink: 0;
}

/* =========================
   IMAGE
========================= */

.competence-right img {
    width: 100%;
    max-width:300px;
    height: 280px;

    object-fit: cover;
    border-radius: 14px;

    display: block;
    margin-left: auto;
}

.competence-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.competence-number {
    font-family: 'Braven', sans-serif;
    font-size: 16px;
    line-height: 1;
    color: white;
}

.competence-title {
    margin: 0;
}



/* bloc entier */
.js-reveal-competence {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.js-reveal-competence.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* numéro */
.competence-number {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.js-reveal-competence.is-visible .competence-number {
    opacity: 1;
    transform: translateY(0);
}

/* titre */
.competence-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    transition-delay: 0.15s;
}

.js-reveal-competence.is-visible .competence-title {
    opacity: 1;
    transform: translateY(0);
}

/* texte */
.competence-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    transition-delay: 0.25s;
}

.js-reveal-competence.is-visible .competence-text {
    opacity: 1;
    transform: translateY(0);
}

/* services */
.competence-item {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.js-reveal-competence.is-visible .competence-item {
    opacity: 1;
    transform: translateY(0);
}

/* décalage automatique */
.js-reveal-competence.is-visible .competence-item:nth-child(1) {
    transition-delay: 0.35s;
}

.js-reveal-competence.is-visible .competence-item:nth-child(2) {
    transition-delay: 0.45s;
}

.js-reveal-competence.is-visible .competence-item:nth-child(3) {
    transition-delay: 0.55s;
}

.js-reveal-competence.is-visible .competence-item:nth-child(4) {
    transition-delay: 0.65s;
}

.js-reveal-competence.is-visible .competence-item:nth-child(5) {
    transition-delay: 0.75s;
}

/* image */
.competence-right img {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
    transition-delay: 0.35s;
}

.js-reveal-competence.is-visible .competence-right img {
    opacity: 1;
    transform: translateX(0);
}


/* =========================================
   ULTRA WIDE (1600px+)
========================================= */

@media (min-width: 1600px) {

    .titre-bouton {
        width: 460px;
        min-width: 460px;
    }

    .titre-bouton-container {
        margin-left: 80px;
        gap: 24px;
    }

    .titre-bouton-title {
        font-size: 74px;
    }
}


/* =========================================
   GRAND DESKTOP (1400 - 1600)
========================================= */

@media (max-width: 1600px) {

    .titre-bouton {
        width: 420px;
        min-width: 420px;
    }

    .titre-bouton-title {
        font-size: 64px;
    }
}


/* =========================================
   DESKTOP (standard)
========================================= */

@media (max-width: 1280px) {

    .titre-bouton {
        width: 380px;
        min-width: 380px;
    }

    .titre-bouton-title {
        font-size: 56px;
    }

    .titre-bouton-container {
        margin-left: 60px;
        gap: 20px;
    }
}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 1024px) {

    .titre-bouton {
        width: 320px;
        min-width: unset;
    }

    .titre-bouton-title {
        font-size: 48px;
    }

    .titre-bouton-container {
        margin-left: 30px;
        gap: 16px;
    }
}


/* =========================================
   MOBILE (optimisé propre)
========================================= */

@media (max-width: 768px) {

    /* container global */
    .titre-bouton {
        width: 100%;
        min-width: unset;

        position: relative;
        top: auto;

        margin-top: 100px; /* espace header */
        padding: 0 16px;  /* 🔥 marges plus petites sur les côtés */
    }

    .titre-bouton-container {
        margin-left: 10px;
        gap: 12px;
    }

    /* 🔥 TITRE plus petit et plus clean */
    .titre-bouton-title {
        font-size: 32px;
        line-height: 1.1;
    }

    /* bouton ajusté */
    .titre-bouton-button {
        font-size: 13px;
        padding: 10px 18px 10px 32px;
    }

    .titre-bouton-button::before {
        left: 16px;
    }
}


/* =========================================
   PETIT MOBILE
========================================= */

@media (max-width: 480px) {

    .titre-bouton {
        margin-top: 110px;
        padding: 0 14px; /* encore plus serré proprement */
    }

    .titre-bouton-title {
        font-size: 28px; /* 🔥 plus compact */
    }

    .titre-bouton-container {
        gap: 10px;
    }
}





/* =========================================
   ULTRA WIDE / TRÈS GRANDS ÉCRANS
========================================= */

@media (min-width: 1600px) {

    .services-layout {
        max-width: 1600px;
        padding: 100px 120px;
        gap: 120px;
    }

    .titre-bouton-title {
        font-size: 74px;
    }

    .titre-bouton {
        width: 460px;
        min-width: 460px;
    }

    .competence-block {
        width: calc(100% - 520px);
        padding-right: 80px;
        margin-bottom: 140px;
    }

    .competence-container {
        padding: 50px;
        gap: 60px;
    }

    .competence-title {
        font-size: 42px;
    }

    .competence-text {
        font-size: 18px;
    }

    .competence-right img {
        max-width: 360px;
        height: 340px;
    }
}







/* =========================================
   ULTRA WIDE
========================================= */

@media (min-width: 1600px) {

    .competence-block {
        width: calc(100% - 520px);
        padding-right: 80px;
        margin-bottom: 140px;
    }

    .competence-container {
        padding: 50px;
        gap: 60px;
    }

    .competence-title {
        font-size: 42px;
    }

    .competence-text {
        font-size: 18px;
    }

    .competence-right img {
        max-width: 360px;
        height: 340px;
    }
}

/* =========================================
   DESKTOP / SMALL LAPTOP (transition)
   👉 IMAGE PASSE EN DESSOUS ICI
========================================= */

@media (max-width: 1280px) {

    .competence-block {
        width: 100%;
        margin-left: 20px;;
        margin-bottom: 100px;
        padding-right:40px;
    }

    .competence-container {
        flex-direction: column; /* 🔥 changement ici */
        align-items: flex-start;
        gap: 25px;
        padding: 30px;
    }

    .competence-left {
        width: 100%;
    }

    .competence-right {
        width: 100%;
        margin-left: 0;
    }

    .competence-right img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 14px;
        margin-top: 10px;
    }

    .competence-title {
        font-size: 30px;
    }

    .competence-text {
        font-size: 15px;
    }
}

/* =========================================
   TABLETTE
   👉 JUSTE PLUS PETIT + GROS MARGIN TOP
========================================= */

@media (max-width: 1024px) {

    .services-layout {
        padding: 100px 40px 80px; /* 🔥 gros espace pour header */
    }

    .competence-block {
        margin-bottom: 90px;
    }

    .competence-container {
        padding: 26px;
        gap: 20px;
                        margin-top:220px;

    }

    .competence-title {
        font-size: 26px;
    }

    .competence-text {
        font-size: 14px;
    }

    .competence-item {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .services-layout {
        padding: 260px 24px 80px; /* 🔥 encore plus d’air en haut */
    }


    .competence-container {
        padding: 22px;
        border-radius: 18px;
        margin-top:110px;
    }

    .competence-title {
        font-size: 24px;
    }

    .competence-text {
        font-size: 14px;
    }

    .competence-item {
        font-size: 12px;
    }

    .competence-right img {
        border-radius: 10px;
    }
}

/* =========================================
   PETIT MOBILE
========================================= */

@media (max-width: 480px) {

    .services-layout {
        padding: 300px 20px 80px; /* 🔥 énorme respiration header */
    }


    .competence-title {
        font-size: 20px;
    }

    .competence-text {
        font-size: 13px;
    }

    .competence-item {
        font-size: 11px;
    }
}