/* Custom by Internet Factory */

/* Géneral */

#wrapper {
    /* left: 0; */
    /* top: 0; */
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.content-holder {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.content-holder .content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    clear: both;
}

body.home .content-holder .content {
    display: flow-root;
}

.content,
.fl-wrap {
    float: none;
}

.wp-block-image img {
    border-radius: 20px;
}

.video-single-wrapper,
.hero-carousel-wrap {
    padding-right: 0;
}

/* .video-single-wrapper,
.hero-carousel-wrap {
    height: 100vh;
} */

.media-container {
    position: relative;
    height: 100vh;
}

/* Grande largeur Gutenberg */
#wrapper .alignwide {
    margin-left: -80px;
    /* à ajuster selon vos préférences */
    margin-right: -80px;
    /* à ajuster selon vos préférences */
}

/* Pleine largeur Gutenberg */
#wrapper .alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}

#wrapper .alignfull>.wp-block-group__inner-container {
    max-width: 1370px;
    margin: 0 auto;
}

.alignfull img {
    width: 100vw;
}

.hidden {
    /* display: none; */
}

/* END Géneral */

/* Header */
.main-header {
    position: sticky;
    top: 0;
}

.main-header:before {
    content: none;
}

/* END Header */
/* Home */

/* =========================================
   Slider & Typographie - Base (Ordinateur)
   ========================================= */

.wp-block-ub-image-slider {
    margin-top: -20px;
}

.ub_image_slider .swiper-button-next,
.ub_image_slider .ub-swiper-button-next {
    padding: 20px;
    width: 30px;
    height: 30px;
}

.ub_image_slider .swiper-button-prev,
.ub_image_slider .ub-swiper-button-prev {
    padding: 20px;
    width: 30px;
    height: 30px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ccdc52;
    background-color: #2d2d32 !important;
    border-radius: 500px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
}

.text-h1 {
    padding: 0 150px;
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

/* =========================================
   Nos Prestations - Base
   ========================================= */

.nos-prestations {
    text-align: center;
    padding: 60px 0;
    /* Simplifié (60px 0 60px est identique à 60px 0) */
    z-index: 10001;
    font-family: "Saira Semi Condensed", sans-serif;
    margin: 0;
}

.nos-prestations>.wp-block-column {
    border-radius: 20px;
    overflow: hidden;
}

.prestations__title {
    font-size: 40px;
    color: #000000;
    text-align: center;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 20px;
}

.prestations__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #333;
    margin: 15px auto 40px;
}

.nos-prestations .wrapper {
    background-color: #f3f3f3;
    padding: 15px;
}

.nos-prestations .img img {
    max-width: 100%;
    border: none;
    border-radius: 0;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    margin: 0;
}

.nos-prestations figure {
    margin: 0;
}

.nos-prestations .title {
    font-size: 1rem;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.nos-prestations .text {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 25px;
}

.nos-prestations .btn_presta a {
    display: inline-block;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    margin-top: auto;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.wp-block-columns {
    margin-bottom: 0;
}

.chiffres {
    margin-bottom: 60px;
}

/* =========================================
   Contenu CPO - Base
   ========================================= */

.content-cpo {
    padding: 60px 0;
}

.ti-widget.ti-goog .ti-widget-container {
    margin-bottom: 40px !important;
}

.content-cpo .col-droite {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-cpo .col-droite .title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-cpo .col-droite .text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 35px;
}

.content-cpo .col-droite .bouton a {
    display: inline-block;
    background-color: #1a1a1a;
    color: #fff;
    padding: 14px 35px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.content-cpo .col-droite .bouton a:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.groupe-contenu {
    margin-bottom: 60px;
}

/* =========================================
   FAQ - Base
   ========================================= */

.groupe-faq {
    background-color: #f3f3f3;
    padding: 60px 0 42px;
}

.wp-block-ub-content-toggle {
    margin: 0;
}

.wp-block-ub-content-toggle-accordion {
    border: none;
}

.wp-block-ub-content-toggle-accordion.question {
    background-color: #f3f3f3 !important;
    border: none;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.wp-block-ub-content-toggle-accordion-title-wrap {
    padding: 5px;
    line-height: 1.7em;
    background: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 1em;
}

.wp-block-ub-content-toggle-accordion-title-wrap h2 {
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.wp-block-ub-content-toggle-accordion-toggle-wrap {
    color: #000000 !important;
}

.wp-block-ub-content-toggle-accordion-content-wrap {
    padding: 13px 25px;
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

.wp-block-ub-content-toggle-accordion.open .wp-block-ub-content-toggle-accordion-toggle-wrap {
    transform: rotate(180deg);
}

/* =========================================
   Responsive - Tablettes (Max 992px)
   ========================================= */

@media (max-width: 992px) {

    /* On commence à réduire les immenses marges latérales de .text-h1 */
    .text-h1 {
        padding: 0 50px;
    }
}

/* =========================================
   Responsive - Mobiles (Max 768px)
   ========================================= */

@media (max-width: 768px) {

    /* Corrections de la typographie et des marges qui écrasent le contenu */
    .text-h1 {
        padding: 0 15px;
        font-size: 0.95rem;
    }

    /* Réduction des boutons du slider pour qu'ils ne mangent pas trop l'image */
    .ub_image_slider .swiper-button-next,
    .ub_image_slider .ub-swiper-button-next,
    .ub_image_slider .swiper-button-prev,
    .ub_image_slider .ub-swiper-button-prev {
        padding: 10px;
        width: 25px;
        height: 25px;
    }

    .prestations__title {
        font-size: 30px;
    }

    .content-cpo {
        padding: 40px 15px;
    }

    .content-cpo .col-droite .title {
        font-size: 1.5rem;
    }

    /* Réduction des espaces de séparation globaux */
    .chiffres,
    .groupe-contenu {
        margin-bottom: 40px;
    }

    /* Ajustement de la section FAQ */
    .groupe-faq {
        padding: 40px 15px 30px;
    }

    .wp-block-ub-content-toggle-accordion-content-wrap {
        padding: 10px 15px;
        /* On réduit le padding interne sur mobile */
    }
}

/* =========================================
   Responsive - Petits Mobiles (Max 480px)
   ========================================= */

@media (max-width: 480px) {
    .text-h1 {
        padding: 0 10px;
    }

    .prestations__title {
        font-size: 26px;
    }

    .content-cpo .col-droite .title {
        font-size: 1.3rem;
    }

    /* Pour que le bouton prenne toute la largeur sur tout petit écran, souvent plus ergonomique */
    .content-cpo .col-droite .bouton a {
        align-self: stretch;
        text-align: center;
    }

    .wp-block-ub-content-toggle-accordion-title-wrap {
        font-size: 16px;
    }
}



/* Avis */


/* Footer */

.cpo-footer {
    position: relative;
    z-index: 2;
    background-color: #1e1e1e;
    color: #cccccc;
    /* font-family: 'Roboto', 'Open Sans', Arial, sans-serif; */
    padding: 60px 0 0 0;
    width: 100%;
}

.cpo-footer a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.cpo-footer a:hover {
    color: #ccdc52;
}

.cpo-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3 colonnes */
.cpo-footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.cpo-footer-col .title-footer {
    color: #ccdc52;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.cpo-footer-col p {
    /* font-size: 14px; */
    line-height: 1.9;
    color: #aaaaaa;
    margin: 0;
}

.cpo-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpo-footer-col ul li {
    /* font-size: 14px; */
    line-height: 1;
    margin-bottom: 12px;
    color: #aaaaaa;
}

.cpo-footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpo-footer-col ul li a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #ccdc52;
    border-top: 2px solid #ccdc52;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.cpo-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #aaaaaa;
    line-height: 1.6;
}

.cpo-footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.cpo-footer-contact-item a {
    color: #aaaaaa;
}

.cpo-footer-contact-item address {
    font-style: normal;
    margin-bottom: 0;
}

/* Barre du bas */
.cpo-footer-bottom-wrap {
    border-top: 1px solid #2e2e2e;
}

.cpo-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpo-footer-copyright {
    font-size: 12px;
    color: #666;
}

.cpo-footer-socials {
    display: flex;
    gap: 8px;
}

.cpo-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    border-radius: 50%;
    color: #aaaaaa;
    transition: border-color 0.2s, color 0.2s;
}

.cpo-footer-socials a:hover {
    border-color: #ccdc52;
    color: #ccdc52;
}

/* Responsive */
@media (max-width: 900px) {
    .cpo-footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cpo-footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cpo-footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

/* Zones Intervention */

.groupe-zones-inter {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(https://portail-cpo.dev-site.fr/wp-content/uploads/2024/03/IMG_7233.jpg);
    background-size: cover;
    /* L'image occupe tout l'espace sans être déformée */
    background-position: center;
    /* L'image est centrée */
    background-repeat: no-repeat;
    /* L'image ne se répète pas */
    min-height: 30vh;
    top: 0;
    margin-bottom: 60px;
}

.groupe-zones-inter .title {
    text-align: center;
    font-size: 40px;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30vh;
    margin-bottom: 0 !important;
}

.ville-content {
    margin-bottom: 60px;
}

/* .ville-content .img img {
    border-radius: 500px;
    aspect-ratio: 1/1;
} */

.ville-content .text {
    font-size: 1rem;
    color: #000000;
    line-height: 1.6;
}

.ville-content .text-zone {
    margin-left: 20px;
}

.groupe-coordonnees {
    background-color: #f3f3f3;
}

.coordonnees .title {
    font-size: 32px;
    color: #000000;
    margin-bottom: 50px;
}

.coordonnees .left-column {
    padding: 30px 0;
}

/* =========================================
   Responsive - Tablettes et Mobiles (Max 768px)
   ========================================= */

@media (max-width: 768px) {

    /* Réduction des marges globales pour gagner de l'espace */
    .groupe-zones-inter {
        margin-bottom: 40px;
    }

    /* Réduction de la taille du titre principal */
    .groupe-zones-inter .title {
        font-size: 28px;
        min-height: 20vh;
    }

    .ville-content {
        margin-bottom: 40px;
    }

    /* Généralement sur mobile, le contenu s'empile. On enlève la marge à gauche et on en met une en haut. */
    .ville-content .text-zone {
        margin-left: 0;
        margin-top: 20px;
    }

    /* Ajout d'un padding latéral pour éviter que le texte ne colle aux bords de l'écran */
    .groupe-coordonnees {
        padding: 40px 15px;
    }

    /* Réduction du titre de la section coordonnées */
    .coordonnees .title {
        font-size: 26px;
        margin-bottom: 30px;
        text-align: center;
        /* Souvent plus esthétique centré sur mobile */
    }

    .coordonnees .left-column {
        padding: 15px 0;
    }
}

/* =========================================
   Responsive - Petits Mobiles (Max 480px)
   ========================================= */

@media (max-width: 480px) {

    /* Ajustements mineurs pour les très petits écrans */
    .groupe-zones-inter .title {
        font-size: 24px;
    }

    .coordonnees .title {
        font-size: 22px;
    }
}