/*
 * Styles des modèles de pages (accueil, services, contact, devis, archive portfolio).
 * Remplacent les mises en page Elementor / ElementsKit.
 */

/* ------------------------------------------------------------------ */
/* Structure commune                                                   */
/* ------------------------------------------------------------------ */

.v3d-page {
    overflow-x: clip;
}

.v3d-section {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 0;
}

.v3d-page ul {
    list-style: none;
}

.v3d-heading {
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
    color: var(--e-global-color-primary, #010000);
    margin-bottom: 30px;
}

.v3d-heading--light {
    font-weight: 400;
    padding: 30px 30px 0;
}

.v3d-heading--spaced {
    margin: 82px 0;
}

/* Bouton pilule */
.v3d-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 100px;
    background-color: var(--e-global-color-secondary, #F73555);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.v3d-btn:hover,
.v3d-btn:focus-visible {
    background-color: #E8304E;
    color: #fff;
}

.v3d-btn .v3d-icon {
    flex: none;
    transition: transform 0.3s ease;
}

.v3d-btn:hover .v3d-icon {
    transform: translateX(3px);
}

.v3d-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Apparition en fondu (classes posées par js/main.js) */
.v3d-reveal.is-pending {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.v3d-reveal.is-pending.is-visible {
    opacity: 1;
}

/* Panneau sombre au dégradé animé */
.v3d-dark-animated {
    position: relative;
    overflow: hidden;
    background: #010000;
    color: #EDEDEC;
}

.v3d-dark-animated::before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    background-image: linear-gradient(134deg, #6a6060 0%, #010000 100%);
    background-size: 250% 250%;
    animation: v3d-grad-spin 10s linear infinite, v3d-grad-move 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.v3d-dark-animated > * {
    position: relative;
    z-index: 1;
}

@keyframes v3d-grad-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes v3d-grad-move {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ------------------------------------------------------------------ */
/* Bloc d'appel à l'action en deux colonnes                            */
/* ------------------------------------------------------------------ */

.v3d-cta-split {
    display: flex;
    align-items: stretch;
}

.v3d-cta-split-panel {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 100px 37px;
    border-radius: 15px 0 0 15px;
}

.v3d-cta-split-title {
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.17rem;
    line-height: 28px;
    color: #EDEDEC;
}

.v3d-cta-split-text {
    color: #EDEDEC;
    line-height: 1.3;
}

.v3d-cta-split-content {
    color: #fff;
    line-height: 1.6;
}

.v3d-cta-split-content p {
    margin-bottom: 14px;
}

.v3d-page .v3d-cta-split-content ul {
    list-style: disc inside;
}

.v3d-cta-split-media {
    flex: 1 1 70%;
    position: relative;
    min-height: 260px;
    border-radius: 0 15px 15px 0;
    overflow: hidden;
    background-color: #EDEDEC;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.v3d-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v3d-slide.is-active {
    opacity: 1;
}

.v3d-cta-split--nice .v3d-cta-split-panel {
    padding: 45px 37px;
}

.v3d-cta-split--nice .v3d-cta-split-title {
    font-weight: 400;
    color: #fff;
    align-self: center;
    text-align: center;
}

.v3d-cta-split--nice .v3d-cta-split-media {
    background-position: center right;
}

/* ------------------------------------------------------------------ */
/* Bandeau de page (Services, Contact)                                 */
/* ------------------------------------------------------------------ */

.v3d-page-hero-wrap {
    padding: 36px 0 0;
}

.v3d-page-hero {
    padding: 180px 47px 47px;
    border-radius: 25px;
    background-color: #EDEDEC;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.v3d-contact .v3d-page-hero {
    background-position: top center;
}

.v3d-page-hero-card {
    width: 25%;
    min-width: 220px;
    padding: 20px 33px;
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

.v3d-page-hero-title {
    font-size: 2rem;
    line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* Accueil                                                             */
/* ------------------------------------------------------------------ */

.v3d-hero {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 10px 0;
}

.v3d-hero-text {
    flex: 1 1 50%;
    padding: 100px 0;
}

.v3d-hero-title {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.v3d-hero-lead {
    margin-bottom: 35px;
    color: var(--e-global-color-text, #606060);
}

.v3d-hero-media {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v3d-hero-media img {
    display: block;
    width: 100%;
    max-width: 570px;
    height: auto;
}

.v3d-benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.v3d-benefit {
    text-align: center;
}

.v3d-benefit img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(140%) saturate(113%);
}

.v3d-benefit-title {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    color: #101010;
}

.v3d-recent {
    padding: 0;
}

.v3d-banner {
    position: relative;
    overflow: hidden;
    padding: 89px 84px;
    border-radius: 25px;
    background-color: #010000;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.v3d-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #010000;
    opacity: 0.65;
}

.v3d-banner-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.v3d-banner-title {
    width: 53%;
    padding: 30px 0 40px;
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.17rem;
    line-height: 1.4;
    color: #fff;
}

.v3d-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--e-global-color-secondary, #F73555);
    color: #010000;
}

.v3d-play:hover {
    color: #010000;
}

.v3d-play .v3d-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease;
}

.v3d-play:hover .v3d-icon {
    transform: scale(1.08);
}

.v3d-play::before,
.v3d-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%) scale(0.4);
    border-radius: 50%;
    border: 2px solid rgba(247, 53, 85, 0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: v3d-play-wave 2.4s ease-out infinite;
}

.v3d-play::after {
    animation-delay: 1.2s;
}

@keyframes v3d-play-wave {
    0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0.4); }
    60%  { opacity: 0.2; transform: translate(-50%, -50%) scale(1.8); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.2); }
}

.v3d-activities-lead {
    max-width: 100%;
    margin: 20px 0;
    text-align: center;
    color: var(--e-global-color-primary, #010000);
}

.v3d-activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.v3d-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(196, 196, 196, 0.5);
    background: #fff;
}

.v3d-activity img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.v3d-activity-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.17rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Services                                                            */
/* ------------------------------------------------------------------ */

.v3d-services-list {
    padding-top: 0;
}

.v3d-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.v3d-service {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #EDEDEC;
    outline-offset: 3px;
}

.v3d-service img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.v3d-service-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 20px 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(to top, rgba(1, 0, 0, 0.88) 0%, rgba(1, 0, 0, 0.6) 55%, rgba(1, 0, 0, 0) 100%);
}

.v3d-service-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.v3d-service-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.v3d-service:hover img,
.v3d-service:focus-within img,
.v3d-service:focus img {
    transform: scale(1.05);
}

.v3d-service:hover .v3d-service-text,
.v3d-service:focus .v3d-service-text,
.v3d-service:focus-within .v3d-service-text {
    max-height: 12em;
    margin-top: 10px;
    opacity: 1;
}

/* Écrans tactiles : pas de survol, le texte reste affiché */
@media (hover: none) {
    .v3d-service-text {
        max-height: none;
        margin-top: 10px;
        opacity: 1;
    }
}

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.v3d-contact-row {
    display: flex;
    align-items: stretch;
    padding: 107px 0 0;
}

.v3d-contact-panel {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 60px;
    border-radius: 20px;
}

.v3d-contact-panel-title {
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 28px;
    color: #EDEDEC;
}

.v3d-contact-panel p {
    color: #EDEDEC;
    line-height: 1.3;
}

.v3d-contact-infos {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 72px;
}

.v3d-contact-info {
    padding-bottom: 20px;
}

.v3d-contact-info-title {
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 23px;
    line-height: 1.8;
    margin-bottom: 5px;
}

.v3d-contact-info p {
    line-height: 1.8;
}

.v3d-contact-info a {
    color: inherit;
    text-decoration: none;
}

.v3d-contact-info a:hover {
    color: var(--e-global-color-secondary, #F73555);
}

.v3d-contact-map {
    margin-top: 55px;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}

.v3d-contact-map iframe {
    display: block;
    width: 100%;
    height: 265px;
    border: 0;
    filter: saturate(0);
}

.v3d-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 82px 0;
}

.v3d-group-title {
    flex: 0 0 17%;
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.17rem;
    line-height: 28px;
}

.v3d-group-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 27px;
}

.v3d-group-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 0 20px;
    border-radius: 15px;
    background: linear-gradient(115deg, #EDEDEC 0%, #D6D6D6 100%);
    box-shadow: inset 0 0 20px -9px rgba(3, 3, 3, 0.66);
}

.v3d-group-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.v3d-group-logo:hover img {
    opacity: 0.55;
}

/* ------------------------------------------------------------------ */
/* Devis : fenêtre du formulaire                                       */
/* ------------------------------------------------------------------ */

.v3d-devis {
    padding-bottom: 100px;
}

body.v3d-form-open {
    overflow: hidden;
}

.v3d-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    font-family: "Montserrat", sans-serif;
    color: #606060;
}

.v3d-form-overlay[hidden] {
    display: none;
}

.v3d-form-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto 0;
}

.v3d-form-close {
    position: absolute;
    top: -6px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #010000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.v3d-form-close:hover,
.v3d-form-close:focus-visible {
    color: #F73555;
}

.v3d-form-heading {
    padding: 0 44px;
    margin-bottom: 24px;
    font-family: "Unbounded", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
    color: #010000;
}

.v3d-quote-summary {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #010000;
    color: #fff;
}

.v3d-quote-summary strong {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bbb;
}

.v3d-quote-summary .v3d-quote-price {
    font-family: "Unbounded", sans-serif;
    font-size: 26px;
    font-weight: 600;
}

.v3d-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v3d-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #010000;
}

.v3d-form input[type="text"],
.v3d-form input[type="tel"],
.v3d-form input[type="email"],
.v3d-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #EDEDEC;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: #606060;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v3d-form textarea {
    min-height: 120px;
    resize: vertical;
}

.v3d-form input:focus,
.v3d-form textarea:focus {
    outline: none;
    border-color: #F73555;
    box-shadow: 0 0 0 4px rgba(247, 53, 85, 0.12);
}

.v3d-form ::placeholder {
    color: rgba(96, 96, 96, 0.65);
}

.v3d-form-field.has-error input,
.v3d-form-field.has-error textarea {
    border-color: #B11629;
}

.v3d-form-error {
    margin-top: 6px;
    font-size: 13px;
    color: #B11629;
}

/* Champ piège antispam, hors écran */
.v3d-form-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.v3d-form-submit {
    width: 100%;
    padding: 18px 22px;
    border: 0;
    border-radius: 50px;
    background: #F73555;
    color: #fff;
    font-family: "Unbounded", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v3d-form-submit:hover {
    background: #B11629;
    transform: scale(1.02);
}

.v3d-form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.v3d-form-message:empty {
    display: none;
}

.v3d-form-message {
    padding: 12px 14px;
    border-radius: 14px;
    background: #EDEDEC;
    font-size: 14px;
}

.v3d-form-message.is-success {
    background: #e6f6ec;
    color: #14602f;
}

.v3d-form-message.is-error {
    background: #fdecef;
    color: #B11629;
}

/* ------------------------------------------------------------------ */
/* Pages de texte (politique de confidentialité, etc.)                 */
/* Même présentation que les mentions légales : titre centré, colonne  */
/* de lecture étroite.                                                 */
/* ------------------------------------------------------------------ */

.page .entry-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.page .entry-title {
    font-size: 2rem;
    line-height: 1.3;
}

.page .entry-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 2px;
    background: var(--accent-color, #F73555);
}

.page .entry-content {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.page .entry-content h2,
.page .entry-content h3 {
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.page .entry-content ul,
.page .entry-content ol {
    margin: 0 0 1.5rem 1.25rem;
}

/* ------------------------------------------------------------------ */
/* Tablette                                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .v3d-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .v3d-recent,
    .v3d-portfolio-archive-list {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    .v3d-hero {
        flex-direction: column;
    }

    .v3d-hero-text {
        padding: 50px 0 0;
    }

    .v3d-hero-media img {
        max-width: 500px;
    }

    .v3d-cta-split {
        flex-direction: column;
    }

    .v3d-cta-split-panel {
        flex-basis: auto;
        padding: 50px 30px;
        border-radius: 15px 15px 0 0;
    }

    .v3d-cta-split-media {
        flex-basis: auto;
        min-height: 400px;
        border-radius: 0 0 15px 15px;
    }

    .v3d-cta-split--nice .v3d-cta-split-panel {
        align-items: center;
        text-align: center;
    }

    .v3d-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v3d-banner {
        padding: 75px 30px;
    }

    .v3d-banner-title {
        width: 92%;
    }

    .v3d-activities-grid,
    .v3d-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v3d-page-hero {
        padding: 180px 30px 30px;
    }

    .v3d-page-hero-card {
        width: 50%;
    }

    .v3d-heading--spaced {
        margin: 50px 0;
    }

    .v3d-contact-row {
        flex-direction: column;
        padding-top: 50px;
    }

    .v3d-contact-panel {
        flex-basis: auto;
    }

    .v3d-contact-infos {
        padding: 50px 0 0;
    }

    .v3d-group {
        flex-direction: column;
        align-items: stretch;
        padding: 50px 20px;
    }
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
    .v3d-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .v3d-hero {
        padding-top: 20px;
    }

    .v3d-hero-text {
        padding-top: 10px;
    }

    .v3d-hero-title {
        font-size: 20px;
    }

    .v3d-hero-media img {
        max-width: 300px;
    }

    .v3d-btn-row {
        gap: 12px;
    }

    .v3d-cta-split-panel {
        padding: 30px 20px;
    }

    .v3d-cta-split-media {
        min-height: 220px;
    }

    .v3d-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .v3d-banner {
        padding: 50px 24px;
    }

    .v3d-banner-title {
        width: 100%;
    }

    .v3d-activities-grid,
    .v3d-services-grid {
        grid-template-columns: 1fr;
    }

    .v3d-page-hero-wrap {
        padding-top: 20px;
    }

    .v3d-page-hero {
        padding: 100px 30px 30px;
    }

    .v3d-page-hero-card {
        width: 100%;
        min-width: 0;
    }

    .v3d-page-hero-title {
        font-size: 1.6rem;
    }

    .v3d-contact-row {
        padding-top: 20px;
    }

    .v3d-contact-panel {
        padding: 30px 25px;
    }

    .v3d-group {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .v3d-group-title {
        text-align: center;
    }

    .v3d-group-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .v3d-devis {
        padding-bottom: 0;
    }

    .v3d-form-overlay {
        padding: 24px 16px;
    }

    .v3d-form-heading {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3d-dark-animated::before,
    .v3d-play::before,
    .v3d-play::after {
        animation: none;
    }

    .v3d-reveal.is-pending {
        opacity: 1;
        transition: none;
    }
}
