/* ======== VIDEO PROD / CREATIONS (components/videoProd.php) ======== */

#creations {
    text-align: center;
    background-color: var(--beige-light);
}

#creations h2 {
    padding-bottom: 0.7rem;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 2px solid var(--purple-primary);
}

#creations .big {
    font-size: 2.1rem;
    font-weight: bolder;
}

.prod-filters {
    display: flex;
    justify-content: left;
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 25rem;
    transition: 0.3s ease;
    background: linear-gradient(25deg, #5e99ff, #778EFE, #4a8fff);
    color: var(--beige-light);
    font-size: 0.8rem;
    margin: 0.2rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    cursor: pointer;
    filter: hue-rotate(135deg);
}

.filter-btn.active {
    filter: hue-rotate(135deg);
}

.prod-item {
    position: relative;
    transition: 0.3s ease;
}

.prod-item h3 {
    border-radius: 3rem;
    font-weight: normal;
    color: #ffffff;
    position: absolute;
    bottom: 3.5%;
    right: 1%;
    font-size: 0.8rem;
    background-color: var(--text-default-dark);
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.584);
    box-shadow: 0px 0px 10px rgba(55, 55, 55, 0.505);
    line-height: 0.9rem;
}

.prod-item .description {
    display: none;
    padding: 1rem;
    opacity: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(25deg, #c89e5f90, #315585a2, #773c71b7);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    text-align: center;
    align-content: center;
    z-index: 999;
    transition: 0.3s ease;
}

.prod-item .info-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--purple-primary);
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 15px;
    color: var(--beige-light);
    z-index: 999;
    padding: 0;
}

.info-panel {
    background: radial-gradient(#e7e6f2f5, #ffffffb5);
    text-shadow: 0px 0px 25px rgba(128, 128, 228, 0.468);
    backdrop-filter: blur(16px);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0px 0px 15px rgba(93, 99, 148, 0.6);
    border: 1px solid white;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 9999;
}

.info-panel.open {
    display: block;
}

.info-panel .closeBtn {
    color: var(--beige-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--purple-primary);
    padding: 0;
}

.info-panel .close-element {
    position: absolute;
    top: -7px;
    right: -7px;
    transform: translate(10px, -10px);
}

.prod-item .description .link-button {
    display: none;
}

.prod-item .description:hover {
    opacity: 1;
}

.prod-item .description p {
    color: var(--beige-light);
    line-height: 1.1rem;
    font-size: 0.8rem;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
}

.prod-grid img {
    border-radius: 1rem;
    width: 100%;
    object-fit: cover;
    border: none;
}

.prod-grid a {
    display: block;
}

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

/* Grand téléphone */

@media (min-width: 480px) {
    .prod-filters {
        justify-content: center;
    }
}

/* Petite tablette */

@media (min-width: 768px) {
    .prod-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Grande tablette */

@media (min-width: 1025px) {
    .prod-filters {
        overflow-x: hidden;
        flex-wrap: wrap;
    }

    /* CREATIONS */
    .prod-item:hover {
        transform: scale(1.02);
        filter: brightness(1.05);
    }

    .prod-item .info-btn {
        display: none;
    }

    .prod-item .description {
        display: block;
    }
}

/* Écran très large */

@media (min-width: 1600px) {
    .prod-item .description p {
        line-height: 1.2rem;
        font-size: 0.9rem;
    }

    .prod-item .description .link-button {
        padding: 0.5rem 2rem;
        border: 1px solid rgba(179, 205, 247, 0.568);
        margin-top: 1rem;
        border-radius: 2rem;
        display: inline-block;
        background-color: var(--purple-primary);
    }
}

/* ======== SERVICES (components/services.php) ======== */

#service {
    text-align: center;
    position: relative;
}

.service-cat {
    margin-bottom: 2.3rem;
}

.service-cat:last-child {
    margin-bottom: 0;
}

#service .service-title {
    padding: 1.5rem;
}

#service h2 {
    color: var(--beige-light);
    display: inline-block;
    text-transform: uppercase;
    border-bottom: 2px solid var(--beige-light);
}

#service .service-title p {
    color: var(--purple-primary-light);
    font-size: 1.3rem;
}

#service h3 {
    color: var(--purple-primary);
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0px 0px 12px #05062324;
    display: inline-block;
    font-size: 1.9rem;
    line-height: 2.3rem;
    padding: 0;
    padding-bottom: 1.5rem;
    margin: 0;
    border-radius: 0.5rem;
}

#service .service-item h4 {
    width: 100%;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-default-light);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#service .service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#service .service-item {
    flex: 1;
    position: relative;
    transition: 0.2s ease-in-out;
    text-align: center;
    max-width: 300px;
    margin: 0.3rem auto;
}

#service .service-item a {
    display: block;
    margin: auto;
}

#service .service-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0px 0px 25px rgba(223, 223, 229, 0.25);
    border: 1px solid rgb(246, 245, 250);
}

.service-item:hover {
    filter: brightness(1.1);
    transform: scale(1.01);
}

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

/* Grande tablette */

@media (min-width: 1025px) {
    #service .service-content {
        flex-direction: row;
        gap: 1rem;
    }

    #service .service-item {
        margin: 0.3rem 0;
    }

    #service .service-item a {
        display: block;
        width: 100%;
    }
}

/* ======== ABOUT ME (components/about-me.php) ======== */

#about-me {
    background-color: var(--beige-light);
    width: 100%;
}

#about-me h2 {
    padding-bottom: 0;
}

#about-me .keywords {
    color: var(--text-default-dark1);
    width: 80%;
    margin: auto;
    padding: 1rem 0;
}

#about-me p {
    line-height: 1.4rem;
    font-size: 0.9rem;
}

#about-me .job-profile {
    text-align: center;
    line-height: 1.4rem;
}

#about-me .profile-photo {
    position: relative;
    width: 180px;
    margin: auto;
}

#about-me .profile-photo img {
    display: block;
    width: 180px;
    border-radius: 50%;
    margin: auto;
    border: 1px solid transparent;
}

#about-me .profile-photo::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: 
        conic-gradient(rgb(205, 246, 250) 0deg,
        transparent 90deg,
        rgb(73, 255, 237) 180deg,
        transparent 270deg,
        rgb(205, 246, 250) 360deg);
    animation: spin 7s linear infinite;
    z-index: -1;
}

#about-me a {
    text-decoration: none;
    color: var(--beige-light);
    padding: 0.25rem 0.5rem;
}

#about-me .intervention h3 {
    color: var(--text-default-light);
    padding: 0;
    margin-bottom: 1rem;
}

#about-me .fonctionnement h3 {
    color: var(--purple-primary);
    line-height: 1.5rem;
    font-size: 1rem;
}

#about-me .fonctionnement img {
    display: block;
    width: 64px;
    margin: auto;
}

#about-me .fonctionnement>div {
    background: radial-gradient(#f1eeef9b, #ffffff36);
    text-shadow: 0px 0px 25px rgba(128, 128, 228, 0.468);
    border: 1px solid white;
    box-shadow: 0px 0px 15px rgba(93, 99, 148, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 0.8rem;
    margin: 1rem 0;
}

#about-me .profile-link a {
    background: radial-gradient(#6b8fec, #74bbdcc1);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(12px);
    transition: ease 0.2s;
    font-size: 0.9rem;
}

#about-me .profile-link a:hover {
    filter: hue-rotate(-30deg) brightness(1.1);
}

#about-me .formateur-link {
    margin-top: 2.3rem;
    max-width: 450px;
    margin: auto;
}

#about-me .formateur-link a {
    display: block;
    font-size: 1.1rem;
    background: radial-gradient(#15aaa0, #41c7a3c1);
    border-radius: 100px;
    padding: 0.8rem 1.8rem;
    transition: ease 0.2s;
}

#about-me .formateur-link a:hover {
    filter: brightness(1.2);
}

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

/* Grande tablette */

@media (min-width: 1025px) {
    .fonctionnement {
        display: flex;
        gap: 1rem;
        margin: auto;
    }

    .fonctionnement>div {
        flex: 1;
    }

    /* ABOUT ME */
    #about-me .fonctionnement>div {
        margin: 1rem 0;
    }
}

/* Petit écran */

@media (min-width: 1280px) {
    .job-profile {
        flex: 0.6;
        padding: 0 2rem;
    }
}

/* Grand écran */

@media (min-width: 1440px) {
    .job-profile {
        padding: 0 4rem;
    }
}

/* Écran très large */

@media (min-width: 1600px) {
    .fonctionnement {
        width: 80%;
        gap: 3rem;
        margin: auto;
    }
}

/* ======== CONTACT FORM (components/contact-form.php) ======== */

/*contact-infos*/
#contact-infos a {
    display: block;
    text-decoration: none;
    color: var(--purple-primary);
}

#contact-form h2 {
    text-transform: uppercase;
    padding-top: 2rem;
}

.contact-phone,
.contact-mail {
    color: var(--text-default-dark);
    font-weight: bold;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.contact-mail img,
.contact-phone img {
    width: 1.7rem;
    border-radius: 100px;
    margin-right: 1rem;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 0 5px #6f87ff6f;
}

.contact-mail img:hover,
.contact-phone img:hover {
    transform: scale(1.02);
}

/*form-body*/
#form-body {
    background: radial-gradient(#ffffff11, #ffffff68);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin: auto;
    text-align: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.303);
    border-radius: 1.5rem;
}

.form-header {
    margin-bottom: 1rem;
}

form input {
    border: none;
    border-bottom: var(--purple-primary-light) 1px solid;
    background-color: transparent;
    padding: 1rem;
    width: 100%;
}

form textarea {
    font-family: "Poppins";
    border: none;
    border-bottom: var(--purple-primary-light) 1px solid;
    background-color: transparent;
    padding: 10px;
    width: 100%;
}

.form-group {
    padding: 1rem 0;
}

input::placeholder,
textarea::placeholder {
    text-align: left;
    font-size: 1rem;
    color: var(--purple-primary-light);
}

input:focus,
textarea:focus {
    outline: none;
}

.text-input {
    font-size: 1rem;
    color: var(--text-default-dark1);
    resize: vertical;
}

.send-btn {
    font-weight: 600;
    font-size: 1rem;
    background: radial-gradient(#a6a0ff57, #ffffff83);
    color: rgb(99, 114, 255);
    text-shadow: 0px 0px 8px rgba(249, 250, 255, 0.734);
    border-radius: 100px;
    padding: 1.2rem 2.8rem;
    margin: 0.5rem auto;
    cursor: pointer;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(162, 173, 255, 0.459);
    border: 1px solid white;
    transition: 0.3s;
}

.send-btn:hover {
    color: rgb(168, 177, 255);
    background-color: rgba(255, 255, 255, 0.472);
}

/*socials*/
.socials {
    color: var(--text-default-dark);
    font-size: 1rem;
    text-align: center;
}

.socials-icons {
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}

.socials-icons a,
.socials-icons a img {
    display: block;
}

.socials-icons img {
    width: 2.5rem;
    height: auto;
    opacity: 0.8;
    border-radius: 100px;
    transition: 0.2s;
    box-shadow: 0 0 15px #6f87ff6f;
}

.socials-icons img:hover {
    opacity: 1;
}

.success p,
.error p {
    color: rgb(245, 242, 242);
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

.success {
    text-align: center;
    position: absolute;
    width: 100%;
    background-color: rgb(86, 209, 168);
    padding: 1.2rem 0;
    opacity: 0.95;
    z-index: 999;
}

.error {
    position: absolute;
    text-align: center;
    width: 100%;
    background-color: rgb(237, 134, 134);
    padding: 1.2rem 0;
    opacity: 0.95;
    z-index: 999;
}

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

/* Petite tablette */

@media (min-width: 768px) {
    #form-body {
        padding: 1rem 5rem;
        width: 50dvw;
    }
}

/* Grande tablette */

@media (min-width: 1025px) {
    .socials-icons img,
    .contact-mail img,
    .contact-phone img {
        width: 3rem;
    }
}

/* Écran très large */

@media (min-width: 1600px) {
    #form-body {
        width: 40dvw;
    }
}

/* Écran 2K et + */

@media (min-width: 2160px) {
    #form-body {
        width: 30dvw;
    }
}

/* ======== THEY TRUST ME (components/they-trust-me.php) ======== */

#they-trust-me {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(150deg, #060c32, #05303b);
}

#they-trust-me h2 {
    text-transform: uppercase;
    font-size: 1.5rem;
    padding: 0;
    margin-bottom: 1rem;
    color: var(--beige-light);
}

#banner {
    width: 100%;
    overflow: hidden;
    padding: 0;
    padding-top: 1rem;
}

.ib-track {
    display: flex;
    will-change: transform;
}

.ib-item {
    flex-shrink: 0;
    /* width et gap injectés dynamiquement via JS — voir InfiniteBanner.buildCSS() */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ib-item img {
    max-width: 100%;
    object-fit: contain;
    display: block;
    /* height injectée dynamiquement via JS */
}

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

/* Grande tablette */

@media (min-width: 1025px) {
    /* THEY TRUST ME */
    #they-trust-me {
        padding-left: 0;
        padding-right: 0;
    }

    #they-trust-me h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* ======== RATES / AVIS (components/rates.php) ======== */

#rates {
    padding-left: 0;
    padding-right: 0;
    position: relative;
    background: linear-gradient(150deg, #0e185a, #074f61);
}

.rates-arrow {
    color: var(--gris-dark);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: radial-gradient(circle at center, #bec8f862, #ffffff77);
    box-shadow: 0px 0px 15px rgba(105, 114, 162, 0.213);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid white;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
    display: none;
    padding: 0;
}

.rates-arrow--left {
    left: 1rem;
}

.rates-arrow--right {
    right: 1rem;
}

.rates {
    scrollbar-width: none;
    /* Firefox */
}

.rates::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.rates {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
}

#rates p {
    color: var(--gris-dark);
    font-size: 0.9rem;
    line-height: 1.3rem;
}

#rates h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--blue-dark);
}

#rates .italic {
    color: var(--blue-dark);
}

.rate-block {
    width: 90%;
    background: radial-gradient(circle at center, #bec8f8d4, #ffffffbc);
    text-align: center;
    box-shadow: 0px 0px 15px rgba(141, 148, 192, 0.213);
    margin: 1rem 0.2rem;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid white;
    padding: 1.3rem;
}

.stars {
    padding: 0.7rem 0;
    display: flex;
    justify-content: center;
}

.stars img {
    display: block;
    width: 1.3rem;
    padding: 0 0.1rem;
}

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

/* Grande tablette */

@media (min-width: 1025px) {
    /* RATES */
    #rates .rate-block {
        width: 40%;
    }

    .rates-arrow {
        display: block;
    }
}

/* Écran très large */

@media (min-width: 1600px) {
    /* RATES */
    #rates .rate-block {
        width: 30%;
    }
}
