/**
 * Styles pour la page Contact
 * Design moderne respectant la charte CGT
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.contact-hero {
	background: linear-gradient(135deg, #ce1010 0%, #a30f0f 100%);
	color: white;
	padding: 60px 0;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
}

.contact-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
	pointer-events: none;
}

.contact-hero__content {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

.contact-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 24px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-hero__badge svg {
	flex-shrink: 0;
}

.contact-hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin: 0 0 16px;
	font-weight: 700;
}

.contact-hero__description {
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0;
	opacity: 0.95;
}

/* ==========================================================================
   Container
   ========================================================================== */

.contact-container {
	padding: 40px 0;
}

/* ==========================================================================
   Contact Methods Grid
   ========================================================================== */

.contact-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

.contact-method-card {
	background: white;
	padding: 32px 24px;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	text-align: center;
	transition: all 0.3s ease;
}

.contact-method-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(200, 16, 46, 0.15);
	border-color: #ce1010;
}

.contact-method-card__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: transform 0.3s ease;
}

.contact-method-card:hover .contact-method-card__icon {
	transform: scale(1.1) rotate(5deg);
}

.contact-method-card__icon--email {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.contact-method-card__icon--phone {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.contact-method-card__icon--mail {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.contact-method-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.contact-method-card__desc {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Contact Content Layout
   ========================================================================== */

.contact-content {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 40px;
	margin-bottom: 60px;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-section {
	background: white;
	border-radius: 16px;
	padding: 40px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-section__header {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.contact-section__icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #ce1010 0%, #a30f0f 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.contact-section__title {
	font-size: 1.5rem;
	margin: 0 0 8px;
	color: #1a1a1a;
	font-weight: 700;
}

.contact-section__subtitle {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

/* Contact Form Styles */
.contact-form-wrapper form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-form-wrapper label {
	display: block;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	font-size: 0.9375rem;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-family: inherit;
	transition: all 0.2s ease;
	background: white;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
	outline: none;
	border-color: #ce1010;
	box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.contact-form-wrapper textarea {
	min-height: 150px;
	resize: vertical;
}

.contact-form-wrapper .btn {
	align-self: flex-start;
}

/* Form Messages */
.contact-form-wrapper .success-message {
	padding: 16px;
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	border-radius: 8px;
	color: #065f46;
	font-weight: 600;
	margin-bottom: 24px;
}

.contact-form-wrapper .error-message {
	padding: 16px;
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #991b1b;
	font-weight: 600;
	margin-bottom: 24px;
}

.contact-form-wrapper .error-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.contact-form-wrapper .error-list li {
	padding: 8px 0;
}

/* ==========================================================================
   Contact Sidebar
   ========================================================================== */

.contact-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-info-card {
	background: white;
	border-radius: 16px;
	padding: 32px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-info-card--accent {
	background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
	border-color: #fecaca;
}

.contact-info-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 24px;
	color: #1a1a1a;
}

.contact-info-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #f3f4f6;
}

.contact-info-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.contact-info-item:first-child {
	padding-top: 0;
}

.contact-info-item__icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #ce1010 0%, #a30f0f 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.contact-info-item__content {
	flex: 1;
}

.contact-info-item__content strong {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.contact-info-item__content p {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.6;
}

.contact-info-item__content a {
	color: #ce1010;
	text-decoration: none;
	font-weight: 600;
}

.contact-info-item__content a:hover {
	text-decoration: underline;
}

/* Horaires */
.contact-hours {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.contact-hours__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	background: white;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

.contact-hours__day {
	font-weight: 600;
	color: #374151;
	font-size: 0.9375rem;
}

.contact-hours__time {
	font-weight: 700;
	color: #ce1010;
	font-size: 0.9375rem;
}

.contact-info-card__note {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: #fef3c7;
	border: 1px solid #fde68a;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #92400e;
	font-weight: 600;
	margin: 0;
}

.contact-info-card__note svg {
	flex-shrink: 0;
	color: #d97706;
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.contact-map-section {
	background: white;
	border-radius: 16px;
	padding: 40px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-map-section__header {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.contact-map-section__icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #ce1010 0%, #a30f0f 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.contact-map-section__title {
	font-size: 1.5rem;
	margin: 0 0 8px;
	color: #1a1a1a;
	font-weight: 700;
}

.contact-map-section__subtitle {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.contact-map-wrapper {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 32px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-map {
	width: 100%;
	display: block;
}

/* ==========================================================================
   Access Info
   ========================================================================== */

.contact-access__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 24px;
	color: #1a1a1a;
}

.contact-access-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}

.contact-access-item {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: #f9fafb;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.contact-access-item:hover {
	background: #fef2f2;
	border-color: #fecaca;
}

.contact-access-item__icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #ce1010 0%, #a30f0f 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.contact-access-item__content strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.contact-access-item__content p {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

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

@media (max-width: 1024px) {
	.contact-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.contact-sidebar {
		grid-column: 1;
	}
}

@media (max-width: 768px) {
	.contact-hero {
		padding: 40px 0;
	}

	.contact-hero__title {
		font-size: 2rem;
	}

	.contact-hero__description {
		font-size: 1rem;
	}

	.contact-methods {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.contact-section,
	.contact-map-section {
		padding: 24px;
	}

	.contact-info-card {
		padding: 24px;
	}

	.contact-access-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.contact-hero__title {
		font-size: 1.75rem;
	}

	.contact-hero__badge {
		font-size: 0.8125rem;
		padding: 6px 12px;
	}

	.contact-container {
		padding: 24px 0;
	}

	.contact-section,
	.contact-map-section {
		padding: 20px;
	}

	.contact-section__header,
	.contact-map-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.contact-info-card {
		padding: 20px;
	}

	.contact-method-card {
		padding: 24px 20px;
	}

	.contact-form-wrapper input[type="text"],
	.contact-form-wrapper input[type="email"],
	.contact-form-wrapper input[type="tel"],
	.contact-form-wrapper textarea,
	.contact-form-wrapper select {
		font-size: 16px; /* Évite le zoom sur iOS */
	}
}
