/**
 * Page « Contact » : bandeau sombre, coordonnées à gauche, formulaire Gravity Forms à
 * droite, habillé aux couleurs du site (champs sobres, bouton en pilule).
 */

.aml-contact-head {
	position: relative;
	overflow: hidden;
	background: var(--aml-ink);
	color: var(--aml-white);
	padding: clamp(150px, 15vw, 220px) clamp(16px, 2.5vw, 36px) clamp(56px, 6vw, 90px);
}

.aml-contact-head__lines {
	position: absolute;
	top: 0;
	bottom: 0;
	left: clamp(16px, 2.5vw, 36px);
	right: clamp(16px, 2.5vw, 36px);
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 25% 100%;
	background-position: -1px 0;
	pointer-events: none;
}

.aml-contact-head__inner {
	position: relative;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

.aml-contact-head__h1 {
	margin: clamp(48px, 6vw, 90px) 0 0;
	max-width: 1100px;
	font-size: clamp(40px, 6.4vw, 92px);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 0.96;
}

/* --- Corps -------------------------------------------------------------------------------- */

.aml-contact {
	/* Positionnée pour passer au-dessus du bandeau : sur la page du livre blanc, celui-ci
	 * est le bandeau photo collant des formations (.aml-form-hero), qui resterait sinon
	 * par-dessus cette section au défilement. Sans effet sur la page Contact. */
	position: relative;
	z-index: 1;
	background: var(--aml-white);
	color: var(--aml-ink);
	padding: clamp(64px, 8vw, 110px) clamp(16px, 2.5vw, 36px) clamp(96px, 11.1vw, 160px);
}

.aml-contact__inner {
	display: grid;
	grid-template-columns: 444fr 889fr;
	gap: clamp(32px, 4vw, 64px);
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

.aml-contact__side {
	align-self: start;
	position: sticky;
	top: 120px;
}

.aml-contact__side h2 {
	margin: 0 0 18px;
	font-size: clamp(22px, 1.9vw, 26px);
	font-weight: 500;
	letter-spacing: -0.05em;
}

.aml-contact__side p {
	margin: 0 0 16px;
	font-size: clamp(17px, 1.45vw, 20px);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.45;
	color: rgba(17, 17, 18, 0.72);
}

.aml-contact__coords {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid rgba(17, 17, 18, 0.12);
	font-size: 17px;
	line-height: 1.8;
}

.aml-contact__coords a {
	color: var(--aml-ink);
	text-decoration: none;
	font-weight: 600;
}

.aml-contact__coords a:hover { text-decoration: underline; text-underline-offset: 3px; }

.aml-contact__rdv { margin-top: 28px; }

/* --- Le formulaire -------------------------------------------------------------------------
 * Le formulaire est rendu avec le thème simple de Gravity Forms (theme="gravity-theme",
 * voir generateurs/page-contact.php) et non avec « Orbital » : Orbital imprime, pour chaque
 * formulaire, un bloc de variables CSS en ligne au niveau d'un sélecteur d'ID, que rien
 * d'autre qu'un !important ne peut battre. Le thème simple, lui, se laisse habiller.
 */

/* Carte : même vocabulaire que les cadres photo du site (équerres, grand rayon) */
.aml-contact__card {
	position: relative;
	padding: clamp(24px, 3vw, 46px);
	border: 1px solid var(--aml-line);
	border-radius: 24px;
	background: var(--aml-white);
	box-shadow: 0 30px 70px rgba(17, 17, 18, 0.07);
}

.aml-contact__card .aml-corners { inset: 14px; }
.aml-contact__card .aml-corner { border-color: rgba(17, 17, 18, 0.22); }

.aml-contact__card-bar {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(24px, 2.6vw, 36px);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--aml-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(17, 17, 18, 0.42);
}

.aml-contact__card-bar p { margin: 0; }

.aml-contact__form .gform_wrapper { margin: 0; }

/* La mention « * indique les champs nécessaires » fait doublon avec les astérisques */
.aml-contact__form .gform_wrapper .gform_required_legend { display: none; }

.aml-contact__form .gform_wrapper.gravity-theme .gform_fields {
	grid-row-gap: 26px;
	grid-column-gap: 20px;
}

/* Libellés en petites capitales : le formulaire respire comme le reste des pages */
.aml-contact__form .gform_wrapper.gravity-theme .gfield_label {
	display: block;
	margin-bottom: 10px;
	font-family: var(--aml-font);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(17, 17, 18, 0.45);
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield_required {
	margin-left: 2px;
	color: var(--aml-ink);
	font-size: 13px;
}

/* Mention « facultatif », placée entre le libellé et le champ */
.aml-contact__form .gform_wrapper.gravity-theme .gfield_description {
	margin: -4px 0 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: rgba(17, 17, 18, 0.38);
}

/* Champs pleins : fond gris clair au repos, blanc cerclé d'encre à la saisie */
.aml-contact__form .gform_wrapper.gravity-theme input[type='text'],
.aml-contact__form .gform_wrapper.gravity-theme input[type='email'],
.aml-contact__form .gform_wrapper.gravity-theme input[type='tel'],
.aml-contact__form .gform_wrapper.gravity-theme input[type='number'],
.aml-contact__form .gform_wrapper.gravity-theme textarea {
	width: 100%;
	padding: 17px 18px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--aml-mist);
	color: var(--aml-ink);
	font: 500 17px/1.35 var(--aml-font);
	letter-spacing: -0.03em;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.aml-contact__form .gform_wrapper.gravity-theme textarea { min-height: 170px; resize: vertical; }

.aml-contact__form .gform_wrapper.gravity-theme input:hover,
.aml-contact__form .gform_wrapper.gravity-theme textarea:hover { background: #ebebeb; }

.aml-contact__form .gform_wrapper.gravity-theme input:focus,
.aml-contact__form .gform_wrapper.gravity-theme textarea:focus {
	border-color: var(--aml-ink);
	background: var(--aml-white);
	box-shadow: 0 0 0 4px rgba(17, 17, 18, 0.07);
	outline: none;
}

.aml-contact__form .gform_wrapper.gravity-theme input::placeholder,
.aml-contact__form .gform_wrapper.gravity-theme textarea::placeholder {
	color: rgba(17, 17, 18, 0.32);
}

/* Consentement : un bandeau clair qui le détache du reste */
.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-consent {
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--aml-mist);
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-consent .gfield_label { display: none; }

.aml-contact__form .gform_wrapper.gravity-theme .ginput_container_consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.aml-contact__form .gform_wrapper.gravity-theme .ginput_container_consent input[type='checkbox'] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--aml-ink);
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield_consent_label {
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: rgba(17, 17, 18, 0.72);
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield_consent_label a { color: var(--aml-ink); }

/* Bouton : la pilule à flèche du site (.aml-button) */
.aml-contact__form .gform_wrapper.gravity-theme .gform_footer {
	margin: clamp(26px, 2.8vw, 36px) 0 0;
	padding: 0;
}

.aml-contact__form .gform_wrapper.gravity-theme .gform_button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 58px;
	padding: 0 32px;
	border: 0;
	border-radius: 50px;
	background: var(--aml-ink);
	color: var(--aml-white);
	font: 600 17px/1 var(--aml-font);
	letter-spacing: -0.05em;
	cursor: pointer;
	transition: transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.aml-contact__form .gform_wrapper.gravity-theme .gform_button::after {
	content: '';
	width: 11px;
	height: 11px;
	background: var(--aml-i-arrow-white) no-repeat center / contain;
	transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.aml-contact__form .gform_wrapper.gravity-theme .gform_button:hover,
.aml-contact__form .gform_wrapper.gravity-theme .gform_button:focus-visible { transform: translateY(-3px); }

.aml-contact__form .gform_wrapper.gravity-theme .gform_button:hover::after { transform: translate(3px, -3px); }

/* Sélecteur de date : la fenêtre de jQuery UI reprend les codes de la carte */
.aml-contact__form .gform_wrapper.gravity-theme .datepicker { cursor: pointer; }

#ui-datepicker-div {
	padding: 10px;
	border: 1px solid var(--aml-line);
	border-radius: 16px;
	background: var(--aml-white);
	box-shadow: 0 24px 50px rgba(17, 17, 18, 0.12);
	font-family: var(--aml-font);
	font-size: 14px;
}

#ui-datepicker-div .ui-datepicker-title { font-weight: 600; letter-spacing: -0.03em; }

#ui-datepicker-div td a,
#ui-datepicker-div td span { border-radius: 8px; text-align: center; }

#ui-datepicker-div .ui-state-active { background: var(--aml-ink); color: var(--aml-white); }

/* Messages d'erreur et de confirmation */
.aml-contact__form .gform_wrapper.gravity-theme .gform_validation_errors {
	margin-bottom: 24px;
	padding: 18px 22px;
	border: 1px solid var(--aml-line);
	border-left: 3px solid var(--aml-ink);
	border-radius: 14px;
	background: var(--aml-mist);
	font-size: 16px;
	letter-spacing: -0.03em;
	box-shadow: none;
}

.aml-contact__form .gform_confirmation_message {
	margin: 0;
	padding: 4px 0;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.45;
	color: var(--aml-ink);
}

.aml-contact__form .gform_confirmation_message p { margin: 0; }

.aml-contact__form .gform_wrapper.gravity-theme .gfield_validation_message {
	margin-top: 8px;
	padding: 8px 12px;
	border: 0;
	border-radius: 10px;
	background: var(--aml-cream);
	font-size: 13px;
	letter-spacing: -0.02em;
}

/* --- Tablette et mobile -------------------------------------------------------------- */

@media (max-width: 1199px) {
	.aml-contact__inner { grid-template-columns: 1fr; }
	.aml-contact__side { position: static; }
	.aml-contact-head__lines { background-size: 50% 100%; }
}

@media (max-width: 809px) {
	.aml-contact__card { border-radius: 20px; box-shadow: 0 18px 40px rgba(17, 17, 18, 0.06); }
	.aml-contact__card .aml-corners { inset: 10px; }
	.aml-contact__card-bar { font-size: 11px; }
	.aml-contact__form .gform_wrapper.gravity-theme .gform_button { width: 100%; justify-content: center; }
}

/* --- Le formulaire Fotostudio ----------------------------------------------------------
 * Depuis le 14/10, la page affiche le formulaire du CRM d'Anthony dans une iFrame : les
 * demandes arrivent directement chez lui en prospects. Bricks plafonne les iFrames à
 * max-width 100 %, d'où la remise à zéro.
 */

.aml-contact__frame {
	display: block;
	width: 100%;
	max-width: none;
	/* Hauteur de repli, le temps que le formulaire annonce la sienne (bp-fotostudio.js) */
	min-height: 650px;
	border: 0;
	transition: height 0.3s ease;
}

@media (max-width: 809px) {
	.aml-contact__frame { min-height: 760px; }
}

/* --- Réseaux sociaux -------------------------------------------------------------------- */

.aml-contact__reseaux {
	display: flex;
	gap: 14px;
	margin-top: 26px;
}

.aml-contact__reseaux a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--aml-line);
	border-radius: 50%;
	color: var(--aml-ink);
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.aml-contact__reseaux a:hover,
.aml-contact__reseaux a:focus-visible {
	background: var(--aml-ink);
	color: var(--aml-white);
	transform: translateY(-3px);
}

.aml-contact__reseaux svg { width: 20px; height: 20px; }


/* --- Le livre blanc « 10 conseils » -------------------------------------------------------
 * La page reprend le bandeau et la carte de formulaire de la page Contact ; seule la liste
 * des dix chapitres lui est propre.
 */

/* Le bandeau photo est celui des formations (.aml-form-hero) ; seul le cadrage change.
 * Le couple se tient dans le tiers gauche de l'image : sur un écran étroit, le cadrage par
 * défaut (center) le sortirait du champ.
 */
.aml-ebook-hero .aml-form-hero__media img { object-position: center 48%; }

@media (max-width: 809px) {
	.aml-ebook-hero .aml-form-hero__media img { object-position: 26% 50%; }
}

/* La case Mailchimp de MC4WP se porte comme la case de consentement. Attention : elle est
 * rendue en liste de choix Gravity Forms (ul.gfield_checkbox), pas dans un conteneur à elle,
 * et son libellé est porté par le <label> du choix — le libellé de champ reste vide.
 */
.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-mailchimp .gfield_label {
	display: none;
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-mailchimp .gfield_checkbox {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-mailchimp .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-mailchimp li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-mailchimp input[type='checkbox'] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--aml-ink);
}

.aml-contact__form .gform_wrapper.gravity-theme .gfield--type-mailchimp label {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.5;
	color: rgba(17, 17, 18, 0.72);
	cursor: pointer;
}

.aml-ebook {
	background: var(--aml-white);
	color: var(--aml-ink);
	padding: 0 clamp(16px, 2.5vw, 36px) clamp(96px, 11.1vw, 160px);
}

.aml-ebook__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding-top: clamp(56px, 6vw, 90px);
	border-top: 1px solid var(--aml-line);
}

.aml-ebook__h2 {
	margin: 0 0 clamp(36px, 4vw, 64px);
	max-width: 900px;
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1.04;
}

.aml-ebook__liste {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(32px, 3.6vw, 56px) clamp(32px, 4vw, 72px);
}

.aml-ebook__item {
	position: relative;
	padding-top: 20px;
	border-top: 1px solid var(--aml-line);
}

.aml-ebook__num {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.09em;
	color: rgba(17, 17, 18, 0.38);
}

.aml-ebook__item h3 {
	margin: 0 0 10px;
	font-size: clamp(19px, 1.7vw, 24px);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.15;
}

.aml-ebook__item p:last-child {
	margin: 0;
	font-size: clamp(15px, 1.2vw, 17px);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.55;
	color: rgba(17, 17, 18, 0.68);
}

@media (max-width: 809px) {
	.aml-ebook__liste { grid-template-columns: 1fr; }
}

.aml-ebook__fin {
	margin-top: clamp(48px, 5.5vw, 84px);
	padding-top: clamp(28px, 3vw, 44px);
	border-top: 1px solid var(--aml-line);
}

.aml-ebook__fin p {
	margin: 0 0 18px;
	font-size: clamp(19px, 1.7vw, 24px);
	font-weight: 500;
	letter-spacing: -0.045em;
}

.aml-ebook__liens {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
}
