/**
 * Page Contact
 * Styles spécifiques pour la page de contact (infos + carte)
 *
 * @package TacticHall
 */

/* ==========================================================================
   Section Contact - Utilise .grid-2-2xl + .items-start de base.css
   ========================================================================== */

/* ==========================================================================
   Informations de contact (colonne gauche)
   ========================================================================== */

/* Fiche unique : une ligne par information, séparées par des filets.
   Libellé discret, valeur mise en avant (c'est elle que l'on cherche). */
.contact-info-wrapper {
	display: flex;
	flex-direction: column;
	border: var(--border-light);
	background: var(--color-white);
}

.contact-info-block {
	display: flex;
	gap: var(--spacing-md);
	align-items: flex-start;
	padding: var(--spacing-lg);
	border-bottom: var(--border-light);
	transition: background-color var(--transition-base);
}

.contact-info-block:last-child {
	border-bottom: 0;
}

.contact-info-block:hover {
	background: var(--color-smoke);
}

/* Icône : carré au contour fin (angles droits, pas d'aplat lourd) */
.contact-info-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: var(--border-light);
	color: var(--color-black);
}

.contact-info-icon svg {
	width: 20px;
	height: 20px;
}

.contact-info-content {
	flex: 1;
	min-width: 0;
}

.contact-info-title {
	font-family: inherit !important;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 var(--spacing-xs);
	color: var(--color-steel);
}

.contact-info-value {
	margin: 0;
	font-style: normal;
	font-size: 1.125rem;
	line-height: 1.5;
}

.contact-info-value a {
	color: var(--color-black);
	text-decoration: none;
	transition: color var(--transition-base);
}

.contact-info-value a:hover {
	color: var(--color-gunmetal);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Téléphone : information la plus utile, en grand (comme dans le footer) */
.contact-info-value--phone {
	font-family: 'Stencil', Impact, 'Arial Black', sans-serif;
	font-size: 1.75rem;
	line-height: 1.1;
}

/* Horaires dans la fiche : lignes à filets, heures en chiffres alignés */
.contact-info-content .horaires-list li {
	padding: 0.5rem 0;
}

.contact-info-content .horaires-day {
	font-size: 0.9375rem;
	color: var(--color-gunmetal);
}

.contact-info-content .horaires-time {
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Horaires : structure de base déplacée dans components.css (composant global,
   réutilisé par le footer). Seuls les overrides responsive restent ici (voir media query). */

/* Réseaux sociaux - Utilise .btn-small de global.css */
.contact-social-links {
	display: flex;
	gap: var(--spacing-xs);
	flex-wrap: wrap;
}

/* ==========================================================================
   Carte Google Maps (colonne droite)
   ========================================================================== */

/* Utilise .sticky-top-sm de base.css */
.contact-map-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.contact-map {
	width: 100%;
	height: 500px;
	border: var(--border-light);
	overflow: hidden;
}

.contact-map iframe {
	display: block;
	height: 100%; /* .embed-responsive force height:auto (400px min) : la carte laissait une bande vide */
}

/* ==========================================================================
   Formulaire de contact (template-parts/forms/contact-form.php)
   ========================================================================== */

.contact-form-wrapper {
	max-width: 800px;
	margin: 0 auto;
}

.contact-form .grid-2 {
	gap: 0 var(--spacing-md);
}

/* Champ piège anti-spam : hors écran plutôt que display:none (ignoré par certains robots) */
.contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__consent {
	align-items: flex-start;
	gap: var(--spacing-xs);
	font-size: 0.875rem;
	line-height: 1.5;
}

.contact-form__consent input {
	flex-shrink: 0;
	width: 20px !important; /* La case globale n'a pas de taille : sans ça elle disparaît */
	height: 20px;
	margin-top: 0.1em;
}

.contact-form__consent a {
	text-decoration: underline;
}

/* Retour d'envoi : tokens uniquement (lisible sur la boutique comme sur la vitrine) */
.form-status {
	padding: var(--spacing-sm) var(--spacing-md);
	margin-bottom: var(--spacing-md);
	border: var(--border-light);
	border-left: 4px solid var(--color-black);
	background: var(--color-white);
	font-weight: 600;
}

.form-status--error {
	border-left-style: double;
	border-left-width: 6px;
}

@media (max-width: 768px) {
	.contact-form .grid-2 {
		grid-template-columns: 1fr;
	}
}

/* Note: .btn-full-width existe dans global.css */
/* Note: .bg-smoke existe déjà dans base.css, pas besoin de .bg-light */

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.contact-grid {
		gap: var(--spacing-xl);
	}

	.contact-map {
		height: 400px;
	}
}

@media (max-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-lg);
	}

	.contact-info-block {
		padding: var(--spacing-md);
		gap: var(--spacing-sm);
	}

	.contact-info-icon {
		width: 40px;
		height: 40px;
	}

	.contact-map-wrapper {
		position: static;
	}

	.contact-map {
		height: 350px;
	}
}

@media (max-width: 480px) {
	.contact-info-block {
		flex-direction: column;
	}

	/* En colonne, le contenu doit occuper toute la largeur (horaires alignés) */
	.contact-info-content {
		width: 100%;
	}

	.contact-map {
		height: 300px;
	}
}
