/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*-----------------------------------------***style header***----------------------------------*/


/*------------------------------------------------------***End***------------------------------------------------------*/


/*------------------------------------------------------***Begin Pages internes Style***------------------------------------------------------*/



/*------------------------------------------------------***End***------------------------------------------------------*/


/*------------------------------------------------------***Begin Home page Style***------------------------------------------------------*/



/*--------------------------------------------------------------***End***----------------------------------------------------------------------*/



/*------------------------------------------------------***Begin footer style***------------------------------------------------------*/



/*------------------------------------------------------***End***------------------------------------------------------*/



/*------------------------------------------------------***Begin Responsive Media query style***------------------------------------------------------*/


/*------------***Medium devices (tablets, less than 1025px)***------------*/


/*------------***header and footer style Astra (min 922)***------------*/
@media only screen and (min-width: 922px){

    /*style header*/

    /*style main content*/

    /*style footer*/

}

@media only screen and (max-width: 1024px){
	
	/*style header*/

    /*style main content*/
	
	
    /*style footer*/

}


/*------------***header and footer style Astra (max 921)***------------*/
@media only screen and (max-width: 800px){

    /*style header*/

    /*style main content*/
#astra-footer-menu {
    margin-top: 0px !important;
    margin-left: 0px !important;
}
    /*style footer*/

}


/*------------***Tablet Mini Media query style***------------*/
@media only screen and (max-width: 767px){
    
    /*style header*/

    /*style main content*/

    /*style footer*/
    
}


/*------------***footer mobile style Astra (max 544)***------------*/
@media only screen and (max-width: 544px){
    /*style footer*/

}

/* ==================================================================
   ================================================================== */

.cf7ms-wrapper { /*max-width: 720px; margin: 0 auto;*/ line-height: 1.2;}
.cf7ms-wrapper .wpcf7-not-valid-tip {display: block !important;}
/* --- Barre de progression --- */
.cf7ms-progress { margin-bottom: 28px; }
.cf7ms-progress-bar {
	height: 8px; background: transparent; border-radius: 4px; 
	overflow: hidden; border: 1px solid #6b6558;
}
.cf7ms-progress-bar span {
	display: block; height: 100%; width: 20%;
	background: #6b6558; transition: width .3s ease;
}
.cf7ms-progress-label { margin-top: 6px; font-size: 15px; color: #333; }

/* --- Etapes (masquées/affichées en JS) --- */
.cf7ms-step { display: none; animation: cf7ms-fade .25s ease; }
.cf7ms-step.active { display: block; }
@keyframes cf7ms-fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }

.cf7ms-step h3 { margin-bottom: 16px; font-size: 22px; }
.cf7ms-category { margin: 20px 0 10px; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; color: #8a8471; }

/* --- Etape 1 : cartes Appartement / Maison --- */

.cf7ms-choice-cards .wpcf7-form-control-wrap { display: contents; }
.cf7ms-choice-radio { display: flex; gap: 12px; }
.cf7ms-choice-cards .wpcf7-list-item { margin: 0; position: relative; }
.cf7ms-choice-cards .wpcf7-list-item-label {
	display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; 
	border: 2px solid #ddd6c7; background: #fff; border-radius: 10px; 
	cursor: pointer; font-weight: 600; margin: 0;
}
.cf7ms-choice-cards input[type="radio"] {
	position: absolute; top: 0; left: 0;
	width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.cf7ms-choice-cards input[type="radio"]:checked + .wpcf7-list-item-label {
	background: #e6d5b8; border-color: #000;
}

/* --- Etape 2 : widget de surface façon "meilleurtaux" --- */
.cf7ms-surface-widget { max-width: 480px; margin-top: 8px; }
.cf7ms-surface-label { font-size: 15px; color: #333; margin-bottom: 6px; }
.cf7ms-surface-value {
	display: inline-flex; align-items: baseline; gap: 4px;
	border: 1px solid #ddd6c7; border-radius: 8px;
	padding: 10px 18px; font-size: 20px; font-weight: 700; color: #222;
	margin-bottom: 18px; background: #fff;
}
.cf7ms-surface-value .cf7ms-surface-unit { font-size: 15px; font-weight: 500; color: #666; }

.cf7ms-surface-slider {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	width: 100% !important; height: 8px !important;
	min-height: 8px !important; max-height: 8px !important;
	border-radius: 4px !important;
	background: linear-gradient(to right, #6b6558 0%, #6b6558 50%, #e2ddd1 50%, #e2ddd1 100%);
	outline: none !important; border: none !important; box-shadow: none !important;
	cursor: pointer; margin: 10px 0; padding: 0 !important;
	display: block !important;
}
.cf7ms-surface-slider:focus {
	outline: none !important; box-shadow: none !important;
}
.cf7ms-surface-slider::-webkit-slider-runnable-track {
	-webkit-appearance: none !important;
	height: 8px !important; border-radius: 4px !important;
	background: transparent !important; border: none !important; box-shadow: none !important;
}
.cf7ms-surface-slider::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 26px !important; height: 26px !important;
	border-radius: 50% !important;
	background: #fff !important; border: 3px solid #6b6558 !important;
	cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
	margin-top: -9px !important;
	position: relative !important;
}
.cf7ms-surface-slider::-moz-range-track {
	height: 8px !important; border-radius: 4px !important;
	background: transparent !important; border: none !important; box-shadow: none !important;
}
.cf7ms-surface-slider::-moz-range-progress {
	height: 8px !important; border-radius: 4px !important;
	background: transparent !important;
}
.cf7ms-surface-slider::-moz-range-thumb {
	width: 26px !important; height: 26px !important;
	border-radius: 50% !important;
	background: #fff !important; border: 3px solid #6b6558 !important;
	cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
}
.cf7ms-surface-slider::-ms-track {
	height: 8px !important; border-radius: 4px !important;
	background: transparent !important; border: none !important; color: transparent !important;
}
.cf7ms-surface-slider::-ms-thumb {
	width: 26px !important; height: 26px !important;
	border-radius: 50% !important;
	background: #fff !important; border: 3px solid #6b6558 !important;
	cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
}
.cf7ms-surface-scale {
	display: flex; justify-content: space-between;
	font-size: 13px; color: #8a8471; margin-top: 4px;
}

/* le [number] réel reste soumis à CF7 mais invisible : le slider pilote sa valeur */
.cf7ms-surface-hidden,
.cf7ms-surface-hidden.wpcf7-form-control-wrap {
	position: absolute !important;
	width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: 0 !important; border: 0 !important;
	overflow: hidden; opacity: 0; pointer-events: none;
}

/* --- Cartes "pièces à rénover" --- */
.cf7ms-room-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
	gap: 12px; margin-bottom: 8px;
}
.cf7ms-room-card {
	border: 1px solid #e2ddd1; border-radius: 12px; padding: 14px;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	text-align: center; position: relative; background: #fff;
}
.cf7ms-room-icon { font-size: 22px; }
.cf7ms-room-name { font-size: 13px; font-weight: 600; }

/* le <select> natif de CF7 est masqué visuellement mais reste soumis */
.cf7ms-room-card select {
	position: absolute;
	width: 1px !important;
	padding: 0 !important;
	border: 0px !important;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* stepper +/- généré en JS, voir 3-script.js */
.cf7ms-stepper { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cf7ms-stepper button {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	padding: 0px;
	border: 1px solid #cfc8b8;
	background: #f7f4ec;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}
.cf7ms-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.cf7ms-stepper .cf7ms-qty-value { min-width: 16px; text-align: center; font-weight: 700; }
.cf7ms-room-card.has-qty { border-color: #e6d5b8; background: #fbf7f1; }

/* --- Frise DPE (style chevrons) --- */
.cf7ms-dpe-frise { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.cf7ms-dpe-frise .wpcf7-form-control-wrap,
.cf7ms-dpe-frise .wpcf7-form-control.wpcf7-radio {
	display: flex; flex-direction: column; gap: 6px;
}
.cf7ms-dpe-frise .wpcf7-list-item {
	margin: 0;
	position: relative;
}
.cf7ms-dpe-frise .wpcf7-list-item-label {
	position: relative;
	display: flex; align-items: center;
	color: #fff; font-weight: 800; font-size: 20px;
	padding: 12px 24px 12px 20px;
	cursor: pointer;
	margin: 0;
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
	transition: transform .15s ease;
}
.cf7ms-dpe-frise .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label { width: 40%; }
.cf7ms-dpe-frise .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label { width: 52%; }
.cf7ms-dpe-frise .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label { width: 64%; }
.cf7ms-dpe-frise .wpcf7-list-item:nth-child(4) .wpcf7-list-item-label { width: 76%; }
.cf7ms-dpe-frise .wpcf7-list-item:nth-child(5) .wpcf7-list-item-label { width: 88%; }
.cf7ms-dpe-frise .wpcf7-list-item:nth-child(6) .wpcf7-list-item-label { width: 100%; }

/* masque le radio natif sans créer de zone cliquable fantôme ailleurs sur la page */
.cf7ms-dpe-frise input[type="radio"] {
	position: absolute; top: 0; left: 0;
	width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* couleurs classiques DPE, A = vert foncé -> E = orange/rouge */
.cf7ms-dpe-frise span.wpcf7-list-item:nth-child(1) .wpcf7-list-item-label { background:#009a5c; }
.cf7ms-dpe-frise span.wpcf7-list-item:nth-child(2) .wpcf7-list-item-label { background:#4cb04f; }
.cf7ms-dpe-frise span.wpcf7-list-item:nth-child(3) .wpcf7-list-item-label { background:#d7d92f; color:#3a3a1a; }
.cf7ms-dpe-frise span.wpcf7-list-item:nth-child(4) .wpcf7-list-item-label { background:#f2a71b; }
.cf7ms-dpe-frise span.wpcf7-list-item:nth-child(5) .wpcf7-list-item-label { background:#e8551f; }
.cf7ms-dpe-frise span.wpcf7-list-item:nth-child(6) .wpcf7-list-item-label { background:#DD0602; }

.cf7ms-dpe-frise input[type="radio"]:checked + .wpcf7-list-item-label {
	transform: scale(1.04);
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
	outline: 3px solid #222;
	outline-offset: -3px;
}

/* --- Navigation --- */
.cf7ms-nav { display: flex; gap: 10px; justify-content: space-between; padding-top: 28px; width: 100%}
.cf7ms-nav button, .cf7ms-nav input[type="submit"] {
	padding: 12px 26px !important; border-radius: 8px; border: none; 
	cursor: pointer; font-weight: 600; margin-top: 0px !important;
}
.cf7ms-prev { background: transparent; color: #000; border: 1px solid #000 !important; }
.cf7ms-next, .cf7ms-nav input[type="submit"] { background: #e6d5b8; color: #000; margin-left: auto; }
.cf7ms-prev[hidden] { visibility: hidden; }
.cf7ms-nav input[type="submit"] { display: none; } 
.cf7ms-hint { font-size: 12px; color: #8a8471; margin-top: 6px; }