/* ======================================================================
   FULLCODE — PROJET PADEL BARRIO
   Dépend de :
   - /assets/css/general.css
   - /assets/css/content-pages.css

   Charte Padel Barrio :
   - Crème       #FF EBD1
   - Bleu        #112F7B
   - Terre       #B6471D
   - Rouge       #B81E0C
   - Display     TAN Meringue
   - Texte/UI    Inter
   ====================================================================== */
/* ======================================================================
   PADEL BARRIO — TYPOGRAPHIES
   ====================================================================== */

@font-face {
    font-family: "TAN Meringue";
    src: url("/projets/padel-barrio/TAN-MERINGUE.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/projets/padel-barrio/Inter-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ----------------------------------------------------------------------
   TOKENS
   ---------------------------------------------------------------------- */

.barrio-page {
    --barrio-cream: #ffebd1;
    --barrio-navy: #112f7b;
    --barrio-clay: #b6471d;
    --barrio-red: #b81e0c;
    --barrio-black: #111;
    --barrio-white: #fff;

    --barrio-display:
        "TAN Meringue",
        "Tan Meringue",
        Fraunces,
        Georgia,
        serif;

    --barrio-body:
        Inter,
        var(--font-body);

    overflow: clip;

    background:
        linear-gradient(180deg,
            var(--barrio-cream) 0,
            #fff7eb 32%,
            #fff 67%,
            var(--barrio-cream) 100%);

    color: var(--barrio-black);
}

.barrio-page,
.barrio-page button,
.barrio-page input,
.barrio-page textarea,
.barrio-page select {
    font-family: var(--barrio-body);
}


/* ----------------------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------------------- */

.barrio-breadcrumb {
    position: relative;
    z-index: 4;

    width: min(1180px, calc(100% - 48px));
    margin: 0 auto -42px;
    padding-top: 34px;

    color: rgba(17, 47, 123, 0.65);

    font-size: 0.78rem;
}

.barrio-breadcrumb ol {
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    list-style: none;
}

.barrio-breadcrumb li+li::before {
    content: "›";

    margin-right: 10px;

    color: rgba(182, 71, 29, 0.50);
}

.barrio-breadcrumb a {
    color: var(--barrio-navy);
    font-weight: 700;
}

.barrio-breadcrumb a:hover,
.barrio-breadcrumb a:focus-visible {
    color: var(--barrio-clay);
}


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

.barrio-page .page-hero {
    position: relative;
    isolation: isolate;

    min-height: 76vh;

    overflow: hidden;

}

.barrio-page .page-hero::before,
.barrio-page .page-hero::after {
    content: "";

    position: absolute;
    z-index: -1;

    border-radius: 50%;

    pointer-events: none;
}

.barrio-page .page-hero::before {
    top: 14%;
    right: 8%;

    width: clamp(82px, 9vw, 140px);
    aspect-ratio: 1;

    border: clamp(12px, 1.4vw, 20px) solid var(--barrio-clay);

    box-shadow:
        0 0 0 18px rgba(182, 71, 29, 0.05);

    animation:
        barrio-ball-float 5.5s ease-in-out infinite;
}

.barrio-page .page-hero::after {
    right: 21%;
    bottom: 12%;

    width: clamp(34px, 4vw, 62px);
    aspect-ratio: 1;

    background: var(--barrio-navy);

    animation:
        barrio-ball-float 4.4s 0.8s ease-in-out infinite reverse;
}

@keyframes barrio-ball-float {

    0%,
    100% {
        transform:
            translateY(0) rotate(0);
    }

    50% {
        transform:
            translateY(-16px) rotate(7deg);
    }
}

.barrio-page .page-hero-inner {
    position: relative;
}

.barrio-page .page-hero .page-kicker {
    width: fit-content;

    padding: 8px 13px;

    border-radius: 999px;

    background: var(--barrio-clay);
    color: #fff;

    font-size: 0.74rem;
}

.barrio-page .page-hero h1 {
    max-width: 900px;
    margin-top: 44px;

    color: var(--barrio-clay);

    font-family: var(--barrio-display);
    font-size: clamp(4.5rem, 8vw, 9.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.barrio-page .page-hero h1 span {
    display: block;
    font-weight: 400;
    font-family: var(--barrio-body);
    color: var(--barrio-black);
}

.barrio-page .page-hero .lead {
    max-width: 760px;

    color: rgba(17, 17, 17, 0.72);

    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}


/* ----------------------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------------------- */

.barrio-page .content-section {
    border-color: rgba(17, 47, 123, 0.10);
}

.barrio-page .content-section .page-kicker {
    color: var(--barrio-clay);
}

.barrio-page .content-section h2 {
    color: var(--barrio-black);

    font-family: var(--barrio-display);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.025em;
}

.barrio-page .content-section h3 {
    color: var(--barrio-navy);
}

.barrio-page .content-section p {
    color: rgba(17, 17, 17, 0.70);
}


/* ----------------------------------------------------------------------
   PETIT PÉRIMÈTRE
   ---------------------------------------------------------------------- */

.barrio-scope {
    position: relative;
}

.barrio-scope>div:first-child {
    padding: clamp(30px, 4vw, 52px);

    border-radius: 30px;

    background: var(--barrio-navy);

    box-shadow:
        0 24px 60px rgba(17, 47, 123, 0.16);
}

.barrio-scope>div:first-child .page-kicker {
    color: var(--barrio-cream);
}

.barrio-scope>div:first-child h2 {
    color: #fff;
}


/* ----------------------------------------------------------------------
   LOGO
   ---------------------------------------------------------------------- */

.barrio-logo-section {
    position: relative;
}

.barrio-logo-stage {
    position: relative;
    isolation: isolate;

    min-height: clamp(360px, 46vw, 620px);

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 30px;

    background:
        radial-gradient(circle at 18% 20%,
            rgba(182, 71, 29, 0.08) 0 3px,
            transparent 4px) 0 0 / 42px 42px,
        var(--barrio-cream);

    box-shadow:
        inset 0 0 0 1px rgba(182, 71, 29, 0.10),
        0 26px 65px rgba(98, 49, 30, 0.10);
}

.barrio-logo-stage::before {
    content: "";

    position: absolute;
    z-index: 0;
    top: -18%;
    left: -8%;

    width: 44%;
    aspect-ratio: 1;

    border: 26px solid rgba(182, 71, 29, 0.11);
    border-radius: 43% 57% 52% 48% / 56% 44% 56% 44%;

    transform: rotate(-18deg);
}

.barrio-logo-stage::after {
    content: "";

    position: absolute;
    z-index: 0;
    right: -5%;
    bottom: -22%;

    width: 42%;
    aspect-ratio: 1;

    border-radius: 50%;

    background: rgba(17, 47, 123, 0.09);
}

.barrio-logo-stage .inline-logo {
    position: relative;
    z-index: 2;

    width: min(520px, 70vw);

    padding: clamp(24px, 4vw, 48px);

    border-radius: 26px;

    background: rgba(255, 255, 255, 0.72);

    box-shadow:
        0 20px 50px rgba(71, 37, 24, 0.10);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    transition:
        transform 280ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 280ms ease;
}

.barrio-logo-stage:hover .inline-logo {
    transform:
        translateY(-8px) rotate(-1deg);

    box-shadow:
        0 28px 62px rgba(71, 37, 24, 0.14);
}


/* ----------------------------------------------------------------------
   PALETTE
   ---------------------------------------------------------------------- */

.barrio-palette-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.barrio-color-card {
    position: relative;

    min-height: 190px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    overflow: hidden;

    border-radius: 30px;

    box-shadow:
        inset 0 0 0 1px rgba(17, 17, 17, 0.06),
        0 16px 38px rgba(74, 37, 21, 0.08);

    transition:
        transform 220ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 220ms ease;
}

.barrio-color-card::after {
    content: "";

    position: absolute;
    top: -42%;
    bottom: -42%;
    left: -65%;

    width: 38%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent);

    transform: skewX(-16deg);

    animation:
        barrio-card-shine 7s ease-in-out infinite;
}

.barrio-color-card:nth-child(2)::after {
    animation-delay: 0.6s;
}

.barrio-color-card:nth-child(3)::after {
    animation-delay: 1.2s;
}

.barrio-color-card:nth-child(4)::after {
    animation-delay: 1.8s;
}

.barrio-color-card:hover,
.barrio-color-card:focus-within {
    transform:
        translateY(-7px) rotate(-0.7deg);

    box-shadow:
        inset 0 0 0 1px rgba(17, 17, 17, 0.05),
        0 24px 46px rgba(74, 37, 21, 0.13);
}

@keyframes barrio-card-shine {

    0%,
    75% {
        transform:
            translateX(0) skewX(-16deg);
    }

    100% {
        transform:
            translateX(480%) skewX(-16deg);
    }
}

.barrio-color-card strong {
    font-size: 1rem;
}

.barrio-color-card small {
    margin-top: 5px;

    font-size: 0.76rem;
    opacity: 0.75;
}

.barrio-color-card--cream {
    background: var(--barrio-cream);
    color: var(--barrio-black);
}

.barrio-color-card--navy {
    background: var(--barrio-navy);
    color: #fff;
}

.barrio-color-card--clay {
    background: var(--barrio-clay);
    color: #fff;
}

.barrio-color-card--red {
    background: var(--barrio-red);
    color: #fff;
}

/* ======================================================================
   PADEL BARRIO — TERRAIN / TON DE MARQUE
   ====================================================================== */

.barrio-voice {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: none;

    padding:
        clamp(78px, 9vw, 135px) max(clamp(24px, 7vw, 120px),
            calc((100vw - 1180px) / 2)) clamp(90px, 10vw, 150px);

    overflow: hidden;

    border-top: 0 !important;

    background:
        radial-gradient(circle at 12% 15%,
            rgba(255, 235, 209, 0.08),
            transparent 22%),
        var(--barrio-navy);
}


/* ----------------------------------------------------------------------
   TITRE
   ---------------------------------------------------------------------- */

.barrio-voice-heading {
    position: relative;
    z-index: 2;

    width: min(1180px, 100%);
    margin-inline: auto;
    margin-bottom: clamp(42px, 6vw, 76px);
}

.barrio-page .barrio-voice .page-kicker {
    color: var(--barrio-clay);
}

.barrio-page .barrio-voice h2 {
    max-width: 900px;

    color: var(--barrio-cream);

    font-size: clamp(3rem, 6vw, 6rem);
}

.barrio-page .barrio-voice-heading>p:last-child {
    max-width: 650px;
    margin-top: 24px;

    color: rgba(255, 235, 209, 0.72);
}


/* ----------------------------------------------------------------------
   TERRAIN
   ---------------------------------------------------------------------- */

.barrio-court {
    position: relative;
    isolation: isolate;

    width: min(1180px, 100%);
    min-height: clamp(600px, 68vw, 820px);

    margin-inline: auto;

    overflow: hidden;

    border:
        clamp(4px, 0.5vw, 7px) solid var(--barrio-cream);

    border-radius:
        clamp(28px, 4vw, 54px);

    background:
        linear-gradient(90deg,
            transparent calc(50% - 2px),
            rgba(255, 235, 209, 0.76) calc(50% - 2px),
            rgba(255, 235, 209, 0.76) calc(50% + 2px),
            transparent calc(50% + 2px)),
        linear-gradient(0deg,
            transparent calc(50% - 2px),
            rgba(255, 235, 209, 0.76) calc(50% - 2px),
            rgba(255, 235, 209, 0.76) calc(50% + 2px),
            transparent calc(50% + 2px)),
        var(--barrio-clay);

    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.28);

    transform: rotate(-1deg);
}


/* lignes de service */

.barrio-court::before,
.barrio-court::after {
    content: "";

    position: absolute;
    z-index: 0;

    pointer-events: none;
}

.barrio-court::before {
    top: 22%;
    right: 0;
    left: 0;

    height: 56%;

    border-top: 3px solid rgba(255, 235, 209, 0.72);
    border-bottom: 3px solid rgba(255, 235, 209, 0.72);
}

.barrio-court::after {
    top: 0;
    bottom: 0;
    left: 50%;

    width: 10px;

    background:
        repeating-linear-gradient(0deg,
            rgba(17, 47, 123, 0.82) 0 9px,
            rgba(255, 235, 209, 0.95) 9px 15px);

    box-shadow:
        0 0 0 1px rgba(17, 47, 123, 0.25);

    transform: translateX(-50%);
}


/* ----------------------------------------------------------------------
   EXPRESSIONS
   ---------------------------------------------------------------------- */

.barrio-shout {
    position: absolute;
    z-index: 2;

    width: min(38%, 410px);

    padding:
        clamp(22px, 3vw, 38px);

    display: flex;
    flex-direction: column;
    gap: 15px;

    color: var(--barrio-black);

    background: var(--barrio-cream);

    box-shadow:
        12px 14px 0 rgba(17, 47, 123, 0.20);

    transition:
        transform 260ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 260ms ease;
}

.barrio-shout:hover {
    z-index: 6;

    box-shadow:
        18px 22px 0 rgba(17, 47, 123, 0.28);
}

.barrio-shout>span {
    color: var(--barrio-clay);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.barrio-shout strong {
    font-family: var(--barrio-display);

    font-size:
        clamp(2.1rem, 4.2vw, 4.6rem);

    font-weight: 400;
    line-height: 0.86;
}

.barrio-shout em {
    color: var(--barrio-clay);

    font-style: normal;
}


/* positions volontairement irrégulières */

.barrio-shout--1 {
    top: 9%;
    left: 6%;

    border-radius:
        42px 42px 8px 42px;

    transform: rotate(-4deg);
}

.barrio-shout--1:hover {
    transform:
        translateY(-8px) rotate(-2deg);
}


.barrio-shout--2 {
    top: 12%;
    right: 5%;

    border-radius:
        8px 42px 42px 42px;

    transform: rotate(3deg);
}

.barrio-shout--2:hover {
    transform:
        translateY(-8px) rotate(1deg);
}


.barrio-shout--3 {
    bottom: 8%;
    left: 9%;

    border-radius:
        42px 8px 42px 42px;

    transform: rotate(2deg);
}

.barrio-shout--3:hover {
    transform:
        translateY(-8px) rotate(0deg);
}


.barrio-shout--4 {
    right: 7%;
    bottom: 10%;

    border-radius:
        42px 42px 42px 8px;

    transform: rotate(-3deg);
}

.barrio-shout--4:hover {
    transform:
        translateY(-8px) rotate(-1deg);
}


/* ----------------------------------------------------------------------
   BALLE
   ---------------------------------------------------------------------- */

.barrio-court-ball {
    position: absolute;
    z-index: 5;
    top: 47%;
    left: 47%;

    width: clamp(34px, 4vw, 58px);
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 30%,
            #fff9ad 0 8%,
            #e4dc3c 9% 100%);

    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.24);

    pointer-events: none;

    animation:
        barrio-court-ball-play 7s cubic-bezier(.65, 0, .35, 1) infinite;
}

.barrio-court-ball::before {
    content: "";

    position: absolute;
    inset: 6px;

    border:
        2px solid rgba(255, 255, 255, 0.72);

    border-top-color: transparent;
    border-bottom-color: transparent;

    border-radius: 50%;

    transform: rotate(32deg);
}


@keyframes barrio-court-ball-play {
    0% {
        transform:
            translate(-410%, 240%) rotate(0deg);
    }

    22% {
        transform:
            translate(120%, -270%) rotate(190deg);
    }

    48% {
        transform:
            translate(390%, 160%) rotate(380deg);
    }

    72% {
        transform:
            translate(-120%, -150%) rotate(560deg);
    }

    100% {
        transform:
            translate(-410%, 240%) rotate(720deg);
    }
}


/* ----------------------------------------------------------------------
   PETIT DÉTAIL : MOTIF EN FOND
   ---------------------------------------------------------------------- */

.barrio-voice::after {
    content: "PADEL  BARRIO  PADEL  BARRIO";

    position: absolute;
    z-index: -1;
    right: -2vw;
    bottom: -0.18em;

    color:
        rgba(255, 235, 209, 0.035);

    font-family: var(--barrio-display);
    font-size: clamp(6rem, 14vw, 15rem);
    line-height: 0.8;
    white-space: nowrap;

    pointer-events: none;
}


/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */

@media (max-width: 760px) {

    .barrio-voice {
        padding:
            70px 20px 80px;
    }


    .barrio-court {
        min-height: auto;

        padding:
            32px 20px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 18px;

        background:
            linear-gradient(90deg,
                transparent calc(50% - 1px),
                rgba(255, 235, 209, 0.28) calc(50% - 1px),
                rgba(255, 235, 209, 0.28) calc(50% + 1px),
                transparent calc(50% + 1px)),
            var(--barrio-clay);

        transform: none;
    }


    .barrio-court::before,
    .barrio-court::after {
        opacity: 0.28;
    }


    .barrio-shout {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;

        transform: none;
    }


    .barrio-shout:hover,
    .barrio-shout--1:hover,
    .barrio-shout--2:hover,
    .barrio-shout--3:hover,
    .barrio-shout--4:hover {
        transform:
            translateY(-5px);
    }


    .barrio-shout strong {
        font-size:
            clamp(2.5rem, 13vw, 4.2rem);
    }


    .barrio-court-ball {
        display: none;
    }

}

/* ----------------------------------------------------------------------
   TYPOGRAPHIES
   ---------------------------------------------------------------------- */

.barrio-type-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);

    gap: 16px;
}

.barrio-type-card {
    min-height: 300px;

    padding: clamp(30px, 5vw, 56px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-radius: 30px;

    background: #fff;

    box-shadow:
        inset 0 0 0 1px rgba(17, 47, 123, 0.08),
        0 18px 44px rgba(17, 47, 123, 0.06);
}

.barrio-type-card>span {
    color: var(--barrio-clay);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.barrio-type-card strong {
    color: var(--barrio-black);
}

.barrio-type-card--display {
    background: var(--barrio-clay);
}

.barrio-type-card--display>span {
    color: var(--barrio-cream);
}

.barrio-type-card--display strong {
    color: #fff;

    font-family: var(--barrio-display);
    font-size: clamp(3.4rem, 6vw, 7rem);
    font-weight: 400;
    line-height: 0.82;
}

.barrio-type-card--body strong {
    font-size: clamp(1.5rem, 2.8vw, 2.5rem);
    line-height: 1.15;
}


/* ----------------------------------------------------------------------
   PETIT SITE
   ---------------------------------------------------------------------- */

.barrio-site-section {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: none;

    padding-inline:
        max(clamp(24px, 7vw, 120px),
            calc((100vw - 1180px) / 2));

    overflow: hidden;

    background: var(--barrio-navy);
}

.barrio-site-section::before {
    content: "";

    position: absolute;
    z-index: -1;
    top: -140px;
    right: -90px;

    width: 360px;
    aspect-ratio: 1;

    border: 40px solid rgba(255, 235, 209, 0.08);
    border-radius: 50%;
}

.barrio-site-section .page-kicker {
    color: var(--barrio-cream);
}

.barrio-site-section h2,
.barrio-site-section p {
    color: #fff !important;
}

.barrio-site-copy {
    margin-bottom: 36px;
}

/* ----------------------------------------------------------------------
   MOCKUP SITE
   ---------------------------------------------------------------------- */

.barrio-site-mockup {
    position: relative;

    width: min(1100px, 100%);
    margin: clamp(40px, 6vw, 76px) auto 0;

    perspective: 1600px;
}

.barrio-site-mockup img {
    width: 100%;
    height: auto;

    display: block;

    filter:
        drop-shadow(0 34px 44px rgba(0, 0, 0, 0.28));

    transform:
        translateY(0) rotateX(0deg) rotateZ(-0.6deg);

    transition:
        transform 420ms cubic-bezier(.2, .8, .2, 1),
        filter 420ms ease;
}

.barrio-site-mockup:hover img {
    filter:
        drop-shadow(0 44px 58px rgba(0, 0, 0, 0.34));

    transform:
        translateY(-10px) rotateX(1.5deg) rotateZ(0deg) scale(1.012);
}

.barrio-site-action {
    margin-top: 28px;

    display: flex;
    justify-content: center;
}

.barrio-site-action .page-button.secondary {
    border-color: rgba(255, 235, 209, 0.28);

    background: rgba(255, 235, 209, 0.10);

    color: var(--barrio-cream);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.barrio-site-action .page-button.secondary:hover,
.barrio-site-action .page-button.secondary:focus-visible {
    background: var(--barrio-cream);

    color: var(--barrio-navy);
}


/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */

@media (max-width: 900px) {
    .barrio-palette-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .barrio-type-grid {
        grid-template-columns: 1fr;
    }

    .barrio-mini-card {
        min-height: 200px;
    }
}

@media (max-width: 720px) {
    .barrio-breadcrumb {
        width: calc(100% - 40px);
        margin-bottom: -20px;
        padding-top: 22px;
    }

    .barrio-page .page-hero {
        min-height: 66vh;
    }

    .barrio-page .page-hero::before {
        top: 10%;
        right: -28px;
    }

    .barrio-page .page-hero::after {
        right: 18%;
        bottom: 8%;
    }

    .barrio-page .page-hero h1 {
        font-size: clamp(4rem, 22vw, 6.4rem);
    }

    .barrio-logo-stage {
        min-height: 390px;
    }

    .barrio-logo-stage .inline-logo {
        width: min(430px, 84vw);
    }

    .barrio-voice-grid {
        grid-template-columns: 1fr;
    }

    .barrio-phrase {
        min-height: 180px;
    }

    .barrio-site-section {
        padding-inline: 20px;
    }

    .barrio-site-mockup {
        width: 108%;
        margin-left: -4%;
    }

    .barrio-site-mockup:hover img {
        transform: none;
    }

}

@media (max-width: 480px) {
    .barrio-palette-grid {
        grid-template-columns: 1fr;
    }
}