/*
Theme Name: Decolol
Description: Thème enfant Twenty Twenty-Five pour Dec.O.lol (reprise du design Elementor en blocs Gutenberg).
Template: twentytwentyfive
Version: 1.0.0
Text Domain: decolol
*/

/* ---------- Page : fond marbré (réglage de page Elementor) ---------- */
body { background-color: #fff; background-image: url("/wp-content/uploads/2019/03/FOND-PAGE.png"); background-repeat: no-repeat; background-size: cover; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.dl-main > .wp-block-post-content > :first-child { margin-block-start: 0; }

/* =====================================================================
   Modèle de boîtes Elementor : colonnes à 10 px de marge interne,
   20 px entre éléments, sections collées les unes aux autres.
   ===================================================================== */
.dl-el, .dl-band { color: #333; }
.dl-cols { margin-bottom: 0 !important; }
.dl-cols > .wp-block-column { min-width: 0; box-sizing: border-box; }
.dl-cols + * { margin-block-start: 0 !important; }

/* Titres (widget Titre Elementor) */
h1.dl-eh, h2.dl-eh, h3.dl-eh, h4.dl-eh, h5.dl-eh, h6.dl-eh { line-height: 1; font-weight: 600; margin-bottom: 0; text-transform: none; letter-spacing: normal; }
h1.dl-eh { font-size: 2.5rem; } h2.dl-eh { font-size: 2rem; } h3.dl-eh { font-size: 1.75rem; }
h4.dl-eh { font-size: 1.5rem; } h5.dl-eh { font-size: 1.25rem; } h6.dl-eh { font-size: 1rem; }
.dl-eh a { color: inherit; }

/* Éditeur de texte Elementor */
.dl-text { color: #707070; font-weight: 400; line-height: 1.5; }
.dl-text > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.dl-text > p { margin-block-end: .9rem !important; }
.dl-text > p.dl-loose { margin-block-end: 0 !important; }   /* reset Hello : même le dernier paragraphe garde sa marge */
.dl-text ul, .dl-text ol { padding-left: 40px; }
.dl-text li { margin: 0; }
.dl-text h1, .dl-text h2, .dl-text h3, .dl-text h4, .dl-text h5, .dl-text h6 {
	font-weight: 500; line-height: 1.2; color: inherit; margin-block-start: .5rem !important; margin-block-end: 1rem !important; text-transform: none; letter-spacing: normal; }
.dl-text h1 { font-size: 2.5rem; } .dl-text h2 { font-size: 2rem; } .dl-text h3 { font-size: 1.75rem; } .dl-text h4 { font-size: 1.5rem; }
.dl-text a { color: #c36; }
.dl-align-center { text-align: center; } .dl-align-right { text-align: right; } .dl-align-justify { text-align: justify; }
.dl-align-center ul, .dl-align-center ol { list-style-position: inside; padding-left: 0; }

/* Images */
.dl-el figure.wp-block-image, .dl-band figure.wp-block-image { margin-bottom: 0; margin-top: 0; }
.dl-el figure.wp-block-image.is-resized { display: block !important; text-align: center; width: 100%; }
.dl-el figure.wp-block-image.is-resized img { display: inline-block; height: auto; }

/* Galerie de vignettes (galerie de base Elementor) */
.dl-gallery.wp-block-gallery { margin: 0 !important; }
.dl-gallery.wp-block-gallery figure.wp-block-image img { border-radius: 20px; }

/* Boutons Elementor */
.dl-btn .wp-block-button__link { font-family: var(--wp--preset--font-family--roboto); font-weight: 500; font-size: 15px; line-height: 1;
	padding: 12px 24px; border-radius: 3px; background-color: #F6121C; color: #fff; display: inline-flex; align-items: center; gap: 14px; }
.dl-btn.dl-btn-lg .wp-block-button__link { font-size: 18px; padding: 20px 40px; border-radius: 5px; }
.dl-btn.dl-btn-bordered .wp-block-button__link { border: 3px solid currentColor; }
.dl-btn .wp-block-button__link:hover { opacity: .9; }
.dl-btn-phone .wp-block-button__link::before { content: ""; width: 1em; height: 1em; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Boîte à retournement (flip-box Elementor) */
.dl-flip { position: relative; height: 280px; perspective: 1000px; }
.dl-flip > .dl-flip-front, .dl-flip > .dl-flip-back { position: absolute !important; inset: 0; margin: 0 !important; border: 3px solid #333;
	backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d;
	transition: transform .6s ease-in-out; background-position: center center; background-repeat: no-repeat; background-size: contain; }
.dl-flip > .dl-flip-back { transform: rotateX(-180deg); }
.dl-flip:hover > .dl-flip-front, .dl-flip:focus-within > .dl-flip-front { transform: rotateX(180deg); }
.dl-flip:hover > .dl-flip-back, .dl-flip:focus-within > .dl-flip-back { transform: rotateX(0); }
@media (prefers-reduced-motion: reduce) { .dl-flip > * { transition: none; } }

/* =====================================================================
   En-tête / pied de page
   ===================================================================== */
.dl-band { max-width: none; }
.dl-logo { margin: 0 !important; }
.dl-logo a, .dl-logo img { display: block; width: 100% !important; max-width: 100%; height: auto; }
.dl-logo.wp-block-site-logo { width: 100%; }
.dl-logo.wp-block-site-logo.aligncenter { display: block; }

.dl-nav .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--roboto); font-weight: 600;
	padding: 13px 20px; line-height: 20px; color: #fff; transition: color .4s; }
.dl-nav .wp-block-navigation-item__content:hover,
.dl-nav .current-menu-item > .wp-block-navigation-item__content { color: #ff2aca !important; }
.dl-nav .wp-block-navigation__container { gap: 0; }
.dl-nav .wp-block-navigation__responsive-container-open { padding: 10px; margin: 0 auto; color: #fff; }
.dl-nav .wp-block-navigation__responsive-container.is-menu-open { background: #54595f !important; color: #fff !important; }

.dl-icon-list { list-style: none; padding: 0 !important; margin: 0; }
.dl-icon-list li { display: flex; align-items: center; margin: 0; }
.dl-icon-list li + li { margin-top: 10px; }
.dl-icon-list li::before { content: ""; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 19px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.9 439.4l-166.4-166.4c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.9 439.4l-166.4-166.4c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dl-footer .dl-icon-list, .dl-footer .dl-icon-list a { color: #fff; }
.dl-icon-list li:hover, .dl-icon-list a:hover { color: #ff2aca; }

/* =====================================================================
   Formulaire de contact (FormLayer) — rendu du formulaire Elementor Pro
   ===================================================================== */
.dl-el .formlayer-form-fields-wrapper { display: flex; flex-direction: column; gap: 10px; }
.dl-el .formlayer-field-wrap { margin: 0 !important; padding: 0 !important; }
.dl-el .formlayer-form .formlayer-input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 5px 14px !important;
	font-family: var(--wp--preset--font-family--roboto); font-size: 15px !important; line-height: 1.4; color: #1f2124;
	background: #fff !important; border: 1px solid #69727d !important; border-radius: 3px !important; box-shadow: none !important; margin: 0 !important; }
.dl-el .formlayer-form textarea.formlayer-input { min-height: 0; }
.dl-el .formlayer-form .formlayer-input::placeholder { color: #9da5ae; opacity: 1; }
.dl-el .formlayer-gdpr-wrap { display: flex; align-items: center; gap: 4px; margin: 0; }
.dl-el .formlayer-gdpr-wrap input[type="checkbox"] { margin: 0; width: 13px; height: 13px; appearance: auto; -webkit-appearance: checkbox; }
.dl-el .formlayer-gdpr-label { font-size: 15px; color: #707070; }
.dl-el .formlayer-gdpr-label a { color: #c36; }
.dl-el .formlayer-submit-wrap { display: block !important; width: 100%; margin: 0 !important; }
.dl-el .formlayer-form .formlayer-submit-btn { width: 100% !important; display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 12px 24px !important; border: 0 !important; border-radius: 3px !important; cursor: pointer;
	font-family: var(--wp--preset--font-family--roboto); font-size: 15px !important; font-weight: 500; line-height: 1; }

/* =====================================================================
   Tablette / mobile
   ===================================================================== */
@media (max-width: 1159px) {
	/* comme Elementor : le contenu touche les bords, seule la marge de colonne (10 px) subsiste */
	.is-layout-constrained > .dl-el { margin-left: -10px !important; margin-right: -10px !important; max-width: none; }
	.dl-band { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 781px) {
	.dl-cols > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- Ajustements au pixel (reproduction du rendu Elementor) ---------- */
/* colonnes Elementor : toutes à la hauteur de la rangée, contenu centré verticalement */
.dl-cols > .wp-block-column.is-vertically-aligned-center { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.dl-cols > .wp-block-column.is-vertically-aligned-center > * { flex: 0 0 auto; }
.dl-nav, .dl-nav .wp-block-navigation-item__content { color: #fff; }
/* galerie : largeur de vignette fixe, la dernière rangée ne s'étire pas (comme la galerie Elementor) */
.dl-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; }
/* vignettes à leur taille réelle (150 px max), centrées dans leur case */
.dl-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { align-items: center; justify-content: flex-start; }
.dl-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img { flex: 0 0 auto !important; width: auto !important; max-width: 100% !important; height: auto !important; margin: 0 auto; }
/* case RGPD : rendu de la case d'acceptation Elementor */
.dl-el .formlayer-form .formlayer-gdpr-wrap { gap: 4px !important; margin: 0 !important; align-items: center !important; }
.dl-el .formlayer-form .formlayer-gdpr-wrap input[type="checkbox"] { width: 13px !important; height: 13px !important; margin: 0 !important; accent-color: auto !important; }
.dl-el .formlayer-form .formlayer-gdpr-label { font-size: 16px !important; color: #707070 !important; line-height: 1.5 !important; }
.dl-el .formlayer-form .formlayer-submit-btn { line-height: 1 !important; height: 40px !important; min-height: 40px !important; }
