/*
Theme Name: Divi Child Advanced
Theme URI: https://cekonay.com/
Description: Thème enfant avancé pour Divi 5 (avec structure propre)
Author: Cekonay
Author URI: https://cekonay.com/
Template: Divi
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: divi-child-advanced
*/

/* La page 81 est désormais native : supprimer le retrait vertical du gabarit Divi. */
body.page-id-81 #main-content > .container {
    padding-top: 0 !important;
}

body.page-id-81 #cek-facade .limite + .answer {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* Page 297255 : garder la poignée Fusion noire au centre de la carte. */
body.page-id-297255 #trois-familles .envie-grid > .env:nth-child(3) img {
    object-position: center 38%;
}

@media (max-width: 820px) {
    body.page-id-81 #cek-facade .limite + .answer {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Page 81 : visuel associe a chaque famille de poignee. */
body.page-id-81 #cek-facade .selec-panneau {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
}

body.page-id-81 #cek-facade .s1:checked ~ .selec-corps .p1,
body.page-id-81 #cek-facade .s2:checked ~ .selec-corps .p2,
body.page-id-81 #cek-facade .s3:checked ~ .selec-corps .p3,
body.page-id-81 #cek-facade .s4:checked ~ .selec-corps .p4,
body.page-id-81 #cek-facade .s5:checked ~ .selec-corps .p5 {
    display: grid;
}

body.page-id-81 #cek-facade .selec-media {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 360px;
    min-height: 250px;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
}

body.page-id-81 #cek-facade .selec-media img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
}

@media (max-width: 700px) {
    body.page-id-81 #cek-facade .selec-panneau {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.page-id-81 #cek-facade .selec-media {
        max-width: none;
        min-height: 0;
    }

    body.page-id-81 #cek-facade .selec-media img {
        height: 240px;
    }
}

/* ========================================
   POLICES SYSTÈME NATIVES - PRIORITÉ MAX
   ======================================== */
:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Page hauteurs de façades : visuel associé à la plage de fabrication. */
body.page-id-294236 #cek-facade .plage-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    margin-bottom: 34px;
}

body.page-id-294236 #cek-facade .plage-intro .s-head {
    margin-bottom: 0;
}

body.page-id-294236 #cek-facade .plage-media {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #f2f0ed;
}

body.page-id-294236 #cek-facade .plage-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1133 / 1388;
    object-fit: cover;
}

@media (max-width: 980px) {
    body.page-id-294236 #cek-facade .plage-intro {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.78fr);
        gap: 28px;
    }
}

@media (max-width: 767px) {
    body.page-id-294236 #cek-facade .plage-intro {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 28px;
    }

    body.page-id-294236 #cek-facade .plage-media {
        width: 100%;
        max-width: 480px;
        margin-inline: auto;
        border-radius: 20px;
    }
}

/* Choix du parcours de devis — page 606 */
.cek-devis-choice-section .cek-devis-choice {
    max-width: 1120px;
    margin: 0 auto;
    color: #27221b;
}

.cek-devis-choice h2 {
    margin: 0 0 28px;
    text-align: center;
    color: #187c51;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.cek-devis-choice__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.cek-devis-choice__card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid rgba(20, 125, 137, 0.24);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(39, 34, 27, 0.08);
}

.cek-devis-choice__card h3 {
    margin: 0 0 10px;
    color: #147d89;
    font-size: 24px;
    line-height: 1.25;
}

.cek-devis-choice__card p {
    margin: 0 0 22px;
    line-height: 1.6;
}

.cek-devis-choice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    padding: 11px 22px;
    border: 2px solid #147d89;
    border-radius: 100px;
    background: #147d89;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cek-devis-choice__button:hover,
.cek-devis-choice__button:focus {
    background: #79c8a4;
    color: #27221b !important;
}

.cek-devis-choice__link {
    display: block;
    margin: 24px auto 0;
    color: #147d89 !important;
    text-align: center;
    text-decoration: underline;
    font-weight: 600;
}

.cek-devis-choice__link:hover,
.cek-devis-choice__link:focus {
    color: #187c51 !important;
}

@media only screen and (max-width: 767px) {
    .cek-devis-choice__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cek-devis-choice__card {
        padding: 22px;
    }

    .cek-devis-choice h2 {
        margin-bottom: 22px;
    }

    .cek-devis-choice__card h3 {
        font-size: 21px;
    }

    .cek-devis-choice__button {
        width: 100%;
    }
}

/* Badge texte poignée sur visuel produit Divi */
.info-poignee {
    position: relative;
    z-index: 30;
}

.info-poignee > .et_pb_column,
.info-poignee > .et_pb_column_inner,
.info-poignee .et_pb_module,
.info-poignee .et_pb_module_inner,
.info-poignee .woocommerce-product-gallery,
.info-poignee .woocommerce-product-gallery__wrapper,
.info-poignee .woocommerce-product-gallery__image {
    position: relative;
    z-index: 1;
}

.info-poignee .cekonay-handle-badge {
    position: absolute;
    top: 35%;
    left: 18px;
    z-index: 50;
    width: min(360px, calc(100% - 36px));
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(245, 241, 235, 0.94) 100%);
    box-shadow: 0 10px 30px rgba(16, 16, 16, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #171717;
    text-align: left;
    pointer-events: none;
}

.info-poignee .cekonay-handle-badge__title {
    margin: 0 0 2px;
    font-size: 1rem;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111111;
}

.info-poignee .cekonay-handle-badge__subtitle {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.12;
    font-weight: 600;
    color: #4a4a4a;
}

.info-poignee .cekonay-handle-badge__names {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #5b5b5b;
    text-wrap: balance;
}

@media only screen and (max-width: 980px) {
    .info-poignee .cekonay-handle-badge {
        top: 14px;
        left: 14px;
        width: min(310px, calc(100% - 28px));
        padding: 12px 13px;
        border-radius: 16px;
    }

    .info-poignee .cekonay-handle-badge__title {
        font-size: 0.94rem;
    }

    .info-poignee .cekonay-handle-badge__subtitle {
        font-size: 0.86rem;
    }

    .info-poignee .cekonay-handle-badge__names {
        font-size: 0.75rem;
    }
}

@media only screen and (max-width: 767px) {
    .info-poignee .cekonay-handle-badge {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: auto;
        width: min(245px, calc(100% - 20px));
        max-width: calc(100% - 20px);
        padding: 11px 12px;
        border-radius: 14px;
    }

    .info-poignee .cekonay-handle-badge__title {
        font-size: 0.86rem;
    }

    .info-poignee .cekonay-handle-badge__subtitle {
        margin-bottom: 6px;
        font-size: 0.79rem;
    }

    .info-poignee .cekonay-handle-badge__names {
        font-size: 0.7rem;
        line-height: 1.32;
    }
}

/* Application des polices système à tous les éléments de base */
body,
input,
textarea,
select,
button,
/* Ciblage spécifique Divi */
#page-container,
#et-main-area,
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_text,
.et_pb_module,
#main-content,
.entry-content,
/* Éléments de formulaire Divi */
.et_pb_contact_form input,
.et_pb_contact_form textarea,
.et_pb_contact_form select,
/* Boutons Divi */
.et_pb_button,
.et_pb_promo_button,
/* Menu Divi */
#main-header,
#et-top-navigation,
.et_mobile_menu,
/* Footer Divi */
#main-footer {
  font-family: var(--font-system) !important;
}

/*!
Theme Name: Divi child
Template: Divi
Theme URI: http://www.cekonay.com
Version: 1
Description: un theme enfant de divi
Author: cekonay.com
Author URI: http://www.cekonay.com
*/

/* on cache ne nom si il n'est pas chargé*/
.hiddmask {
    display: none !important;
}

.woocommerce .badge-nouveaute {
    position: absolute;
    top: 10px;
    left: -14px;
    margin-top: -29px;
    background-color: #ffb700;
    color: #fff !important;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

/**/

/*on souligne lien footer*/
.underlinee :hover{
    text-decoration: underline;
}
/* centrer crédit footer*/
#footer-info {
	text-align: center;
	width: 100%;
}
/*custom footer*/
#footer-info {
	padding-bottom: 4px !important;
	line-height: 18px !important;
}
#footer-bottom {
    background-image: linear-gradient(183deg,#fceae0 7%,#f9e3e3 45%);
}
#footer-info a:hover {
    color: #ff7900 !important;
}
/*affichage promo reduction 
.badge-galerie-product, .badge-smart, .badge-single{
	display:none !important; 
}
*/
/*modification menu*/
 
.et_mobile_menu {
	border-top:0;
	min-width: 100vw;
	margin-left: -37px;
	min-height: 100vh;
}
.et_mobile_menu li li {
    padding-left: 0%;
}
/*plan bois*/
@media only screen and (min-width:884px) and (max-width:1104px){
  .workplan {
    display:none;
  }
}


/*animation cand M*/

.codedropz-btn-wrap .cd-upload-btn {
    position: relative;
    overflow: hidden; /* Contient les pseudo-éléments animés */
    color: #1a9d0d;
    padding: 8px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}

/* Ajout du chevron gauche via ::before avec Unicode */
.codedropz-btn-wrap .cd-upload-btn::before {
    content: '>>'; 
    position: absolute;
    left: 15px;
    top: 7px;
    padding-right: 5px; /* Espace entre le chevron et le texte */
    animation: slideInLeft 2s linear infinite;
}

/* Ajout du chevron droit via ::after avec Unicode */
.codedropz-btn-wrap .cd-upload-btn::after {
    content: '<<'; 
    position: absolute;
    right: 15px;
    top: 7px;
    padding-left: 5px; /* Espace entre le chevron et le texte */
    animation: slideInRight 2s linear infinite;
}

@keyframes slideInLeft {
    0%, 100% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0%, 100% {
        transform: translateX(10px);
    }
    50% {
        transform: translateX(0);
    }
}

.codedropz-upload-inner .cd-upload-btn {
    font-size: 20px;
    color: #1a9d0d !important;
    font-weight: 800;
    line-height: 2.7em;
}

/* CSS pour le loader (v2) */
.cek-gal-product-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: none;
    pointer-events: none;
}

.cek-gal-loader {
    width: 25px;
    height: 25px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    animation: cek-gal-global-rotate 4s linear infinite;
}

.cek-gal-loader::before,
.cek-gal-loader::after,
.cek-gal-loader span {
    content: "";
    display: block;
    width: 100%;
   
    border-radius: 5px;
    background: linear-gradient(135deg, #8a9aff, #5f74d5);
    box-shadow:
        0 2px 10px rgba(95, 116, 213, 0.35),
        inset 0 1px 3px rgba(255, 255, 255, 0.15);
    animation: cek-gal-pulse-scale 1.8s ease-in-out infinite;
}

.cek-gal-loader::before {
    animation-delay: 0s;
}

.cek-gal-loader span {
    animation-delay: 0.2s;
}

.cek-gal-loader::after {
    animation-delay: 0.4s;
}

@keyframes cek-gal-global-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes cek-gal-pulse-scale {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.35) rotate(45deg);
        opacity: 1;
    }
}



/* Styles pour le bouton de survol page catégorie */
.cek-gal-view-button {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #665ccd !important;
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 25px;
    border: 2px solid #fff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 15;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Afficher le bouton au survol de l'image */
.et_shop_image:hover .cek-gal-view-button {
    display: inline-block;
}

/* Effet au survol du bouton */
.cek-gal-view-button:hover {
    background-color: #665ccd;
    transform: translate(-50%, -50%) scale(1.05);
}

.cek-gal-view-button:visited,
.cek-gal-view-button:hover,
.cek-gal-view-button:focus,
.cek-gal-view-button:active {
    color: #fff !important;
}

/* S'assurer que l'image container est positionné pour les éléments absolus */
.et_shop_image {
    position: relative;
    overflow: hidden;
}





.heart-container {
    position: relative;
    overflow: hidden;
}

.heart-container img {
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 30px;
    color: red;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: heartFloat 3s ease-in-out forwards; 
    pointer-events: none;
    z-index: 2;
}




@keyframes heartFloat {
    0% {  
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) translateX(50px);
    }
}

.cekonay-client-tracking-page {
    max-width: 1080px;
    margin: 100px auto 0;
    padding: 0 20px;
    min-height: calc(100vh - 90px);
}

/* ========================================
   LOGO MENU DIVI - MODE SOMBRE NAVIGATEUR
   ======================================== */
.et_pb_menu__logo img {
    max-width: 125px;
    height: auto;
    object-fit: contain;
}

html.cekonay-dark-mode .et_pb_menu__logo img,
body.cekonay-dark-mode .et_pb_menu__logo img {
    content: url('https://cekonay.com/wp-content/uploads/2026/02/logo-cekonay-2026-max-mauve.png');
}

/* ========================================
   TABLEAUX RESPONSIVE PAGES EDITORIALES
   ======================================== */
.page-id-309591 .et_pb_text table,
.page-id-309606 .et_pb_text table,
.page-id-309626 .et_pb_text table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
}

.page-id-309591 .et_pb_text table th,
.page-id-309591 .et_pb_text table td,
.page-id-309606 .et_pb_text table th,
.page-id-309606 .et_pb_text table td,
.page-id-309626 .et_pb_text table th,
.page-id-309626 .et_pb_text table td {
    padding: 14px 16px;
    border: 1px solid rgba(39, 34, 28, 0.14);
    text-align: left;
    vertical-align: top;
}

.page-id-309591 .et_pb_text table thead th,
.page-id-309606 .et_pb_text table thead th,
.page-id-309626 .et_pb_text table thead th {
    background: #f7f1e8;
    color: #27221c;
    font-weight: 700;
}

.page-id-309591 .et_pb_text table tbody tr:nth-child(even),
.page-id-309606 .et_pb_text table tbody tr:nth-child(even),
.page-id-309626 .et_pb_text table tbody tr:nth-child(even) {
    background: rgba(247, 241, 232, 0.45);
}

@media (max-width: 980px) {
    .page-id-309591 .et_pb_text table,
    .page-id-309606 .et_pb_text table,
    .page-id-309626 .et_pb_text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .page-id-309591 .et_pb_text table th,
    .page-id-309591 .et_pb_text table td,
    .page-id-309606 .et_pb_text table th,
    .page-id-309606 .et_pb_text table td,
    .page-id-309626 .et_pb_text table th,
    .page-id-309626 .et_pb_text table td {
        min-width: 170px;
        padding: 12px 14px;
        font-size: 0.95em;
        white-space: normal;
    }
}
