/* Commission plugin — Template page styles
 * Path: wp-content/plugins/commission/assets/style.css
 */
/* Container pour les deux champs sur la même ligne */
/* Style des champs input */
/* Style du champ email */
/* Style du textarea */
/* Style du bouton submit */
/* Supprimer les marges par défaut de CF7 */
/* Style des messages d'erreur */
/* Style pour les champs invalides */

/* Global styles */
.container {
    max-width: 1140px !important;
    margin: 0 auto;
    width: 100%;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

@import url('https://fonts.cdnfonts.com/css/avenir');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@700&display=swap');

/* Hero banner */
@import url('https://fonts.cdnfonts.com/css/avenir');

/* Hero banner */

.commission-hero-banner {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 120px;
    min-height: 500px;
    margin-top: -107px;
}

.commission-hero-banner .bg-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.commission-hero-banner .bg-overlay .bg-dark {
    position: absolute;
    inset: 0;
    background-color: #000;
}

.commission-hero-banner .bg-overlay .bg-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.commission-hero-banner .bg-overlay .bg-image img {
    position: absolute;
    height: 100%;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
}

.actu-left>.obj-title {
    margin: 0 !important;
}

.commission-hero-banner .hero-title {
    position: relative;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 42px;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

.commission-hero-banner .hero-subtitle {
    display: block;
    font-size: 36px;
    opacity: 0.9;
}

/* Generic section */
.commission-section {
    padding: 50px 120px;
    background-color: #fff;
}

.commission-section--compact {
    padding: 60px 120px;
}

.commission-section--alt {
    background-color: #f9f9f9;
}

/* Objectifs */
.obj-wrap {
    display: flex;
    gap: 33px;
    align-items: center;
    max-width: 100%;
    align-items: stretch;
}

.obj-left {
    flex: 0 0 500px;
}

.obj-title {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 42px;
    color: #161616;
    margin: 0 0 24px 0;
}

.obj-desc>p {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #323232;
    margin: 0 0 25px 0;
}

.obj-desc {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #323232;
    margin: 0 0 25px 0;
}

.obj-image {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.obj-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Members */
.commission-members {
    padding: 50px 120px;
    background-color: #fff;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.member-card {
    flex: 1 1 0;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #d9d9d9;
    flex-shrink: 0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-name {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #000;
    margin: 0;
}

.member-role {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 16px;
    color: #951b81;
    margin: 4px 0 0 0;
}

/* Trophy / Three blocks */
.trophy-section {
    padding: 50px 150px;
    background-color: #f9f9f9;
}

.trophy-title {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 42px;
    color: #161616;
    margin: 0;
    text-align: center;
}

.three-blocks {
    display: flex;
    gap: 24px;
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
}

.trophy-section .trophy-wrap {
    display: flex;
    flex-direction: column;
    gap: 54px;
    align-items: center;
    max-width: 100%;
}

.trophy-section .trophy-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.block-card {
    flex: 1 1 0;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 16px 20px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 8px 30px 0px rgba(80, 85, 136, 0.06);
    min-height: 400px;
}

.block-card img {
    width: 100%;
    height: 185px;
    border-radius: 4px;
    object-fit: cover;
}

.block-title {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: #161616;
    margin: 0;
}

.block-desc>p {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #323232;
    margin: 0;
    line-height: 27px;
}

.block-desc {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #323232;
    margin: 0;
    line-height: 27px;
}

/* Frame prix */
.frames {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.frame-row {
    display: flex;
    gap: 30px;
    width: 100%;
}

.frame-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    gap: 24px;
    display: flex;
    align-items: center;
    box-shadow: 0px 8px 30px 0px rgba(80, 85, 136, 0.06);
}

.frame-image {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-title {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: #161616;
    margin: 0;
}

.frame-desc {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #323232;
    margin: 0;
    line-height: 24px;
}

/* Appel à projet */
.appel-section {
    padding: 100px 120px 40px;
    background-color: #fff;
}

.appel-left-image {
    width: 381px;
    height: 473px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.appel-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.appel-right {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 60px 80px;
    height: 473px;
    display: flex;
    align-items: center;
}

.appel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    padding: 12px;
    border-radius: 6px;
    background: linear-gradient(9.53deg, rgba(226, 141, 85, 1) 14.98%, rgba(200, 63, 67, 1) 38.07%, rgba(149, 27, 129, 1) 110.26%);
    text-decoration: none;
}

.appel-download {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    padding-bottom: 4px;
    border-bottom: 2px solid #951b81;
    text-decoration: none;
}

/* Actualité */
.actu-section {
    padding: 50px 120px;
    background-color: #fff;
}

.actu-left {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.actu-left>.obj-desc {
    margin-bottom: 0px;
}

.actu-image {
    flex: 1;
    height: 100%;
    min-height: 300px;
    border-radius: 16px;
    overflow: hidden;
}

/* Contact image overlay */
.contact-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 13, 23, 0.95) 20.4%, rgba(10, 13, 23, 0) 100%);
    border-radius: 12px;
}

input.wpcf7-form-control.wpcf7-submit.cf7-submit {
    border-color: unset !important;
}

input[type="text"],
input[type="email"] {
    border: unset !important;
}

/* Contact */
.contact-section {
    padding: 50px 120px;
    background-color: #fff;
}

.contact-wrap {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 20px;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 41px;
    padding: 40px;
}

.contact-image {
    position: relative;
    width: 516px;
    height: 580px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 20px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-quote {
    position: absolute;
    bottom: 28px;
    left: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 466px;
    color: white;
}

@media (max-width: 900px) {
    .commission-hero-banner {
        padding: 0 24px;
    }

    .commission-section,
    .commission-members,
    .trophy-section,
    .appel-section,
    .appel-right,
    .actu-section,
    .contact-section,
    .ai-subjets-section,
    .constat-section,
    .pourquoi-section,
    .principes-section,
    .categories-section,
    .infos-section {
        padding: 22px 22px !important;
    }

    .commission-hero-banner .hero-title {
        font-size: 28px;
    }

    .commission-hero-banner .hero-subtitle {
        font-size: 28px;
    }

    .obj-title {
        font-size: 21px;
    }

    .obj-image {
        height: 200px;
    }

    /*
    .container {
        padding: 0!important;
    }
        */

    .members-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .member-image {
        width: 162px;
        height: 162px;
    }

    .member-card {
        margin-bottom: 2rem;
    }

    .trophy-title {
        font-size: 21px;
        line-height: normal;
    }

    .block-title {
        font-size: 18px;
    }

    .frame-image,
    .category-image {
        display: none;
    }

    .frame-row {
        flex-direction: column;
    }

    .frame-title-wrapper {
        margin-bottom: 12px;
    }

    .frame-title {
        font-weight: 800;
    }

    .appel-left-image {
        width: 100%;
        height: 200px;
    }

    .appel-right {
        height: auto;
        display: block;
    }

    .button-container-contact {
        flex-direction: column;
        gap: 20px !important;
    }

    .actu-image {
        min-height: 200px;
    }

    .contact-wrap {
        display: block;
    }

    .contact-image {
        width: 100%;
        height: 300px;
        border-radius: 0 0 12px 12px;
    }

    .contact-quote {
        width: auto;
    }

    .constat-section>.container {
        display: block !important;
    }

    .image-constat {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 20px;
    }

    .pourquoi-section>.container {
        display: block !important;
    }

    .principes-section>.container {
        display: block !important;
    }

    .categories-section>.container {
        display: block !important;
    }

    .category-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0px !important;
    }

    .category-grid>div {
        display: block !important;
    }

    .category-grid>div>div {
        margin-bottom: 2rem !important;
    }

    .infos-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .infos-header>h2 {
        font-size: 21px !important;
    }

}

/* Commission plugin — Template page styles
 * Path: wp-content/plugins/commission/assets/style.css
 */

/* Container pour les deux champs sur la même ligne */
.cf7-row {
    display: flex;
    gap: 14px;
    width: 100%;
    margin-bottom: 14px;
}

.cf7-row .wpcf7-form-control-wrap {
    flex: 1;
}

/* Style des champs input */
.cf7-input,
.cf7-input-full {
    width: 100%;
    border: 1px solid #f2f2f2;
    background-color: white;
    border-radius: 5px;
    padding: 12px 14px;
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    color: #323232;
    box-sizing: border-box;
}

/* Style du champ email */
.cf7-input-full {
    margin-bottom: 14px;
}

/* Style du textarea */
.cf7-textarea {
    width: 100%;
    height: 109px;
    border: 1px solid #f2f2f2;
    background-color: white;
    border-radius: 5px;
    padding: 12px 14px;
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    color: #323232;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 14px;
}

/* Style du bouton submit */
.cf7-submit {
    width: 100%;
    padding: 12px 10px;
    border-radius: 5px;
    background: linear-gradient(6.17deg, rgba(226, 141, 85, 1) 14.98%, rgba(200, 63, 67, 1) 38.07%, rgba(149, 27, 129, 1) 110.26%);
    border: none;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cf7-submit:hover {
    opacity: 0.9;
}

/* Supprimer les marges par défaut de CF7 */
.wpcf7-form p {
    margin: 0;
}

.wpcf7-form-control-wrap {
    display: block;
}

/* Style des messages d'erreur */
.wpcf7-not-valid-tip {
    color: #c83f43;
    font-size: 13px;
    font-family: 'Avenir', sans-serif;
    margin-top: 5px;
}

/* Style pour les champs invalides */
.wpcf7-not-valid {
    border-color: #c83f43 !important;
}

/* Responsive Mobile */
/* Trophy Ceremony Section */
.trophy-ceremony-section {
    padding: 0 120px 60px;
    background-color: #fff;
}

.trophy-ceremony-section .container {
    padding-top: 40px;
}

.ceremony-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    margin-bottom: 60px;
}

.ceremony-title p:first-child {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #951b81;
    margin: 0;
    line-height: normal;
}

.ceremony-title p:last-child {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #161616;
    margin: 0;
    line-height: 42px;
}

/* Carousel Section */
.trophy-images-carousel {
    margin-top: 60px;
    margin-bottom: 54px;
    position: relative;
}

.trophy-images-carousel>div {
    display: flex;
    gap: 21px;
    align-items: center;
    position: relative;
}

.carousel-container {
    display: flex;
    gap: 21px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    flex: 1 0 calc(33.333% - 14px);
    height: 243px;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none !important;
}

.carousel-prev {
    left: 0px;
}

.carousel-next {
    right: 0px;
}

.carousel-arrow:hover svg path {
    opacity: 0.8;
}

/* Kit Presse Section */
.kit-presse-section {
    margin-bottom: 54px;
}

.kit-presse-section h3 {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #161616;
    margin: 0 0 24px 0;
    line-height: 42px;
}

.kit-presse-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kit-presse-item {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 30px 0px rgba(80, 85, 136, 0.06);
}

.kit-presse-item p {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #323232;
    margin: 0;
    line-height: 27px;
}

.kit-presse-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(50.47deg, rgba(226, 141, 85, 1) 14.98%, rgba(200, 63, 67, 1) 38.07%, rgba(149, 27, 129, 1) 110.26%);
    cursor: pointer;
    text-decoration: none;
}

.kit-presse-download svg {
    width: 20px;
    height: 20px;
}

/* Jury Section */
.jury-section {
    margin-bottom: 54px;
}

.jury-section h3 {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #161616;
    margin: 0 0 24px 0;
    line-height: 42px;
}

.jury-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-content: center;
}

.jury-member {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.jury-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
}

.jury-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jury-photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9e9e9;
}

.jury-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: normal;
}

.jury-name {
    font-family: 'Avenir', sans-serif;
    font-weight: 600;
    color: black;
    margin: 0;
}

.jury-role {
    font-family: 'Avenir', sans-serif;
    font-weight: 300;
    color: #951b81;
    margin: 0;
}

@media (max-width: 600px) {
    .obj-wrap {
        display: block;
    }

    .trophy-ceremony-section {
        padding: 22px 22px !important;
    }

    .jury-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .jury-photo {
        width: 145px;
        height: 145px;
    }

    .jury-member {
        min-width: 145px;
    }

    .ceremony-title p:last-child {
        font-size: 21px;
        line-height: normal;
    }

    .ceremony-title p:first-child {
        font-size: 16px;
    }

    .kit-presse-section h3 {
        font-size: 21px;
    }

    .jury-section h3 {
        font-size: 21px;
    }

    .kit-presse-item p {
        font-size: 16px;
    }

    .kit-presse-download svg {
        min-width: 27px;
    }
}

/* Accordion Styles */
.trophy-accordion {
    width: 100%;
    border-top: 1px solid #e1e1e1;
}

.accordion-item {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

button:focus {
    outline: none !important;
}

.accordion-header {
    width: 100%;
    padding: 40px 24px 24px 24px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background-color: transparent;
}

.accordion-header .ceremony-title {
    flex: 1;
    margin: 0;
}

.accordion-header .ceremony-title p {
    margin: 0;
    padding: 0;
}

.accordion-icon {
    margin-left: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-icon svg {
    width: 24px;
    height: 24px;
}

.accordion-content {
    background-color: #fff;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}