/* =========================================================
   NOS VALEURS
   ========================================================= */

.values-section {
    --values-green: #147a43;
    --values-green-dark: #0c6235;
    --values-green-light: #1d8750;
    --values-gold: #f4c982;
    --values-gold-light: #ffdda0;
    --values-white: #ffffff;
    --values-muted: rgba(255, 255, 255, 0.78);

    position: relative;
    overflow: hidden;

    padding: 95px 30px 105px;

    color: var(--values-white);

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255, 255, 255, 0.08),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            var(--values-green-dark) 0%,
            var(--values-green) 50%,
            var(--values-green-dark) 100%
        );
}


/* Décoration en arrière-plan */

.values-section::before {
    content: "";

    position: absolute;
    width: 480px;
    height: 480px;

    top: -300px;
    left: -220px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;

    pointer-events: none;
}

.values-section::after {
    content: "";

    position: absolute;
    width: 600px;
    height: 600px;

    right: -350px;
    bottom: -420px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;

    pointer-events: none;
}


/* Container */

.values-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.values-header {
    max-width: 720px;

    margin: 0 auto 65px;

    text-align: center;
}


/* Petit label */

.values-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    color: var(--values-gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* Titre */

.values-title {
    margin: 0;

    color: var(--values-white);

    font-family: inherit;

    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -1.5px;
}

.values-title span {
    color: var(--values-gold);
}


/* Séparateur */

.values-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 22px auto 20px;
}

.values-divider span {
    width: 55px;
    height: 1px;

    background: rgba(244, 201, 130, 0.5);
}

.values-divider i {
    display: block;

    width: 7px;
    height: 7px;

    transform: rotate(45deg);

    background: var(--values-gold);
}


/* Description */

.values-subtitle {
    max-width: 610px;

    margin: 0 auto;

    color: var(--values-muted);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   GRID
   ========================================================= */

.values-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


/* =========================================================
   CARD
   ========================================================= */

.value-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 390px;

    padding: 42px 30px 35px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.12);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );


    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
}


/* Ligne dorée en haut */

.value-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 0;
    height: 3px;

    transform: translateX(-50%);

    background: var(--values-gold);

    border-radius: 0 0 5px 5px;

    transition: width 0.4s ease;
}


/* Hover */

.value-card:hover {
    transform: translateY(-10px);

    border-color: rgba(244, 201, 130, 0.4);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.045)
        );

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.16);
}

.value-card:hover::before {
    width: 65px;
}


/* =========================================================
   ICONE
   ========================================================= */

.value-icon-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    margin-bottom: 23px;
}


/* Cercle extérieur */

.value-icon-wrapper::before {
    content: "";

    position: absolute;

    inset: 0;

    border: 1px solid rgba(244, 201, 130, 0.3);
    border-radius: 50%;

    transition:
        transform 0.5s ease,
        border-color 0.4s ease;
}


/* Cercle intérieur */

.value-icon-wrapper::after {
    content: "";

    position: absolute;

    inset: 9px;

    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    transition: transform 0.5s ease;
}


.value-card:hover .value-icon-wrapper::before {
    transform: rotate(45deg) scale(1.05);

    border-color: rgba(244, 201, 130, 0.65);
}

.value-card:hover .value-icon-wrapper::after {
    transform: rotate(-45deg);
}


/* SVG */

.value-icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    color: var(--values-gold);
}

.value-icon svg {
    width: 100%;
    height: 100%;

    overflow: visible;

    transition:
        transform 0.4s ease,
        color 0.4s ease;
}

.value-card:hover .value-icon svg {
    transform: scale(1.08);

    color: var(--values-gold-light);
}


/* =========================================================
   NUMERO
   ========================================================= */

.value-number {
    position: absolute;

    top: 20px;
    right: 23px;

    color: rgba(255, 255, 255, 0.18);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   TITRE CARD
   ========================================================= */

.value-card h3 {
    margin: 0 0 15px;

    color: var(--values-gold);

    font-size: 20px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   TEXTE
   ========================================================= */

.value-card p {
    max-width: 245px;

    margin: 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   PETITE LIGNE
   ========================================================= */

.value-line {
    width: 30px;
    height: 2px;

    margin-top: auto;
    padding-top: 0;

    background: rgba(244, 201, 130, 0.5);

    transition:
        width 0.4s ease,
        background 0.4s ease;
}

.value-card:hover .value-line {
    width: 55px;

    background: var(--values-gold);
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 1050px) {

    .values-section {
        padding: 80px 25px 90px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);

        max-width: 800px;

        margin: 0 auto;
    }

    .value-card {
        min-height: 360px;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .values-section {
        padding: 70px 18px 75px;
    }

    .values-header {
        margin-bottom: 45px;
    }

    .values-eyebrow {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .values-title {
        font-size: 36px;
    }

    .values-subtitle {
        font-size: 14px;

        line-height: 1.65;
    }

    .values-divider {
        margin: 18px auto;
    }

    .values-divider span {
        width: 35px;
    }

    .values-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .value-card {
        min-height: auto;

        padding: 35px 25px 30px;
    }

    .value-icon-wrapper {
        width: 90px;
        height: 90px;

        margin-bottom: 20px;
    }

    .value-icon {
        width: 53px;
        height: 53px;
    }

    .value-card h3 {
        font-size: 19px;
    }

    .value-card p {
        max-width: 320px;

        font-size: 14px;
    }

    .value-line {
        margin-top: 25px;
    }
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .value-card,
    .value-card::before,
    .value-icon-wrapper::before,
    .value-icon-wrapper::after,
    .value-icon svg,
    .value-line {
        transition: none;
    }
}
