/*
Theme Name:        Mon Infirmière Privée
Theme URI:         https://infirmiereprivee.ca
Author:            Organik Multimédia
Author URI:        https://organik-multimedia.com
Description:       Thème bloc natif (Full Site Editing) pour Mon Infirmière Privée. Montserrat, blocs Gutenberg natifs, responsive tablette et mobile. Aucun page builder.
Version:           0.1.8
Requires at least: 6.6
Tested up to:      6.6
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       mip-blocks
*/

/* =========================================================
   Base — l'essentiel est piloté par theme.json.
   Ici : ajustements header / footer / responsive seulement.
   ========================================================= */

/* ---- Fond de page : WP ajoute un padding aux groupes avec fond, on l'annule ---- */
.wp-block-group.mip-fond.has-background {
	padding: 0;
}

/* ---- Header ---- */
.mip-header {
	position: relative;
	padding-top: 0 !important;
	margin-top: 0;
}
.mip-header .mip-logo {
	margin: 0;
}
.mip-header .mip-logo img {
	display: block;
	width: 280px;
	height: auto;
	max-width: 48vw;
}
/* Le logo peut déborder légèrement vers le bas (effet carte) */
.mip-header .mip-logo {
	position: relative;
	z-index: 3;
}

/* Liens de navigation en blanc sur le bandeau bleu */
.mip-header .wp-block-navigation {
	--wp--preset--color--contrast: #ffffff;
}
.mip-header .wp-block-navigation a,
.mip-header .wp-block-navigation .wp-block-navigation-item__content {
	color: #ffffff;
	font-weight: 700;
}
.mip-header .wp-block-navigation a:hover {
	color: #7fd6f7;
}

/* ---- Méga-menu Services (sous-menu en colonnes sur desktop) ---- */
@media (min-width: 782px) {
	.mip-header .wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
		min-width: 320px;
		padding: 16px;
	}
}

/* ---- Footer ---- */
.mip-footer a {
	color: #ffffff;
	text-decoration: none;
}
.mip-footer a:hover {
	color: #09a3e8;
}
.mip-footer-bottom a {
	color: #d0d4d8;
}

/* Titres de colonnes du footer */
.mip-footer h3.wp-block-heading {
	font-size: 1.2em;
}

/* Boutons du footer : empilés, pleine largeur de colonne */
.mip-footer-buttons {
	flex-direction: column;
	align-items: stretch;
}
.mip-footer-buttons .wp-block-button__link,
.mip-footer-buttons .wp-block-button__link:hover {
	display: block;
	text-align: center;
	color: #ffffff;
}

/* Heures : jour à gauche, heure alignée à droite */
.mip-hours {
	max-width: 280px;
}
.mip-hours-row {
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
}
.mip-hours-row p {
	margin: 0;
	line-height: 2;
	white-space: nowrap;
}

/* Adresse : 2 lignes max (+ téléphone) */
.mip-address {
	font-size: 0.9375rem;
}

/* ---- Responsive tablette ---- */
@media (max-width: 1024px) {
	.mip-header .mip-logo img {
		width: 200px;
	}
}

/* ---- Responsive mobile ---- */
@media (max-width: 781px) {
	.mip-header .mip-logo img {
		width: 150px;
	}
	/* Colonnes du footer empilées : géré par le bloc Colonnes (natif) */
}
