/* ======== PRODUCTIONS (components/productions.php + productions-more.php) ======== */

#page-service {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

#page-service h3 {
    text-align: left;
    padding: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

#page-service .items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#page-service .item {
    display: flex;
    flex-direction: column;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 1rem;
    border-bottom: solid 1px rgba(151, 151, 151, 0.442);
}

#page-service .item .thumbail {
    order: -1;
    margin-bottom: 1rem;
}

#page-service .item .text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#page-service .head {
    border-bottom: solid 1px rgba(151, 151, 151, 0.442);
    text-align: center;
}

#page-service .head,
#page-service .cta {
    flex: 0 0 100%;
}

#page-service h4 {
    display: inline-block;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #fff;
    padding: 1.1rem 1.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(var(--h4-angle), #778EFE, #5b6ee8, #d653aa, #5e5cf0, #8195f6);
    background-size: 300% 300%;
    animation: h4-gradient 8s ease infinite, h4-rotate 12s linear infinite;
    text-shadow: 0 1px 6px rgba(22, 22, 43, 0.35);
    box-shadow: 0 6px 20px rgba(119, 142, 254, 0.887);
}

@property --h4-angle {
    syntax: "<angle>";
    initial-value: 120deg;
    inherits: false;
}

@keyframes h4-rotate {
    from { --h4-angle: 120deg; }
    to   { --h4-angle: 480deg; }
}

@keyframes h4-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#page-service p {
    color: #516A94;
    font-size: 1rem;
    line-height: 1.4rem;
}

#page-service h5 {
    font-weight: bold;
    color: var(--blue-dark);
    font-size: 1.6rem;
    padding: 1.2rem 0;
    line-height: 1.8rem;
}

#page-service .item p {
    color: var(--gris-dark);
}

#page-service .item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
    transition: 0.2s ease;
    box-shadow: 0px 0px 15px rgba(110, 132, 220, 0.124);
}

#page-service .item img:hover {
    transform: scale(1.01);
    filter: saturate(1.5);
    cursor: pointer;
}

#page-service .support p {
    text-align: center;
    width: 60%;
    font-size: 0.8rem;
    color: var(--gris-dark);
    background: radial-gradient(#a6a0ff57, #ffffff83);
    box-shadow: 0px 0px 12px rgba(178, 177, 177, 0.368);
    border: 1px solid white;
    border-radius: 20rem;
    padding: 0.5rem 0;
    margin: 2rem auto;
}

#page-service .cta {
    text-align: center;
    margin-top: 2rem;
}

#page-service .cta .italic {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#page-service .cta .link-button a {
    display: inline-block;
    padding: 1rem 1.8rem;
    background: radial-gradient(#18a089da, #4ce2c4da);
    box-shadow: 0px 0px 12px rgba(178, 177, 177, 0.368);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(34, 239, 205);
    color: var(--beige-light);
    cursor: pointer;
    border-radius: 10rem;
    transition: 0.3s ease;
    line-height: 1.5rem;
    margin: auto;
    margin-top: 1rem;
}

#page-service .link-button a {
    background: radial-gradient(rgba(79, 167, 218, 0.793), rgb(103, 186, 255));
    display: inline-block;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
}

#page-service .link-button.link-button-demo a {
    background: radial-gradient(rgba(139, 92, 246, 0.85), rgb(167, 122, 255));
}

#page-service .cta .link-button a:hover,
#page-service .link-button.link-button-demo a:hover {
    filter: brightness(1.15);
}

#page-service .item .item-buttons {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    align-items: flex-start;
    align-content: center;
}

#page-service .item .item-buttons .link-button a {
    width: auto;
    white-space: nowrap;
}

.display-btn {
    margin: 1rem 0;
    text-align: center;
}

.toggle-content p {
    padding: 0;
}

.toggle-button {
    display: inline-block;
    padding: 1rem 1.3rem;
    background: radial-gradient(#a6a0ff57, #ffffff83);
    box-shadow: 0px 0px 12px rgba(178, 177, 177, 0.368);
    backdrop-filter: blur(12px);
    border: 1px solid var(--beige-light);
    color: var(--gris-dark);
    cursor: pointer;
    border-radius: 10rem;
    transition: 0.3s ease;
}

.toggle-button:hover {
    filter: brightness(1.05);
}

#toggle {
    display: none;
}

.toggle-content {
    margin-top: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.3s ease-in-out;
    background: linear-gradient(67deg, #ffffff87, #ffffff78);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid white;
}

#toggle:checked+.toggle-content {
    max-height: 800px;
    padding: 1.3rem;
    opacity: 1;
}

/* ======== MEDIA QUERIES ======== */

/* Petite tablette */

@media (min-width: 768px) {
    #page-service .items {
        grid-template-columns: repeat(2, 1fr);
    }

    #page-service .item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: left;
        width: calc(50% - 0.75rem);
    }

    #page-service .item {
        border-bottom: none;
    }
}

/* Grande tablette */

@media (min-width: 1025px) {
    #page-service .item .link-button {
        margin: 0;
    }

    #page-service .item .item-buttons {
        gap: 0 0.7rem;
    }

    #page-service .item .item-buttons .link-button a {
        padding: 1rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-service h4 {
        animation: none;
    }
}
