/*
 * `medaille` — `escale` sur la teinte profonde, coiffee d'un embleme et d'une
 * devise, et le nom de marque en filigrane (trace, sans remplissage).
 *
 * Engagement 5 : aucun hexadecimal, replis compris.
 */

.ivy-footer--medaille {
	/* La boite de 1280 px et sa gouttiere, comme les sections au-dessus. */
	padding: clamp( 3.5rem, 6vw, 5.5rem ) max( clamp( 20px, 5vw, 64px ), calc( ( 100% - 1280px ) / 2 ) ) 1.75rem;
	background: var( --ivy-deep, rgb( 17 17 17 ) );
	color: var( --ivy-on-deep, rgb( 255 255 255 ) );
}

.ivy-footer--medaille .ivy-footer__brand {
	display: grid;
	justify-items: center;
	gap: 18px;
	text-align: center;
}
.ivy-footer--medaille .ivy-footer__emblem { display: block; inline-size: 88px; block-size: 88px; }
.ivy-footer--medaille .ivy-footer__emblem img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.ivy-footer--medaille .ivy-footer__motto { color: var( --ivy-motto-color, var( --ivy-on-deep-muted, rgb( 205 205 201 ) ) ); font-size: calc( var( --ivy-font-body ) * .875 ); letter-spacing: .04em; }
.ivy-footer--medaille .ivy-footer__motto > * { margin: 0; }
.ivy-footer--medaille .ivy-footer__motto > :first-child { margin-block-end: 10px; letter-spacing: 0; color: var( --ivy-accent-on-deep, rgb( 202 194 181 ) ); font-family: var( --e-global-typography-primary-font-family, inherit ); font-size: var( --ivy-font-lead ); font-style: italic; }
.ivy-footer--medaille .ivy-footer__zones { color: var( --ivy-zones-color, currentColor ); }
.ivy-footer--medaille .ivy-footer__zones .ivy-footer__column-title { color: var( --ivy-zones_title-color, currentColor ); }
.ivy-footer--medaille .ivy-footer__zones-list { margin: 0; font-size: inherit; line-height: 1.8; }
/* Les paragraphes suivent la taille de leur partie : `.ivy-root p` les ramenait au corps. */
.ivy-footer--medaille .ivy-footer__motto > :not( :first-child ) { font-size: inherit; }

.ivy-footer--medaille .ivy-footer__inner {
	display: grid;
	/* Trois colonnes AU CENTRE, texte centre : aucune moitie de pied vide. */
	grid-template-columns: repeat( 3, minmax( 0, 260px ) );
	justify-content: center;
	text-align: center;
	gap: 40px 72px;
	margin-block-start: 56px;
	padding-block-start: 40px;
	border-block-start: 1px solid color-mix( in srgb, currentColor 14%, transparent );
}

/*
 * LE MOT DE MARQUE, et le piege qui va avec.
 *
 * `overflow-wrap: break-word` et NON `anywhere`. Les deux coupent un mot trop
 * long pour sa ligne, donc la protection contre le debordement est identique.
 * Mais `anywhere` fait compter les points de coupure dans la taille MIN-CONTENT :
 * mesure sur un titre a 76,8 px, la largeur min-content tombe de 378 px a
 * 50 px. Tout conteneur qui se dimensionne sur min-content referme alors le mot
 * sur une lettre — 55 produits du catalogue s'etaient effondres au sabotage.
 */
.ivy-footer--medaille .ivy-footer__wordmark {
	margin: 64px 0 24px;
	white-space: nowrap;
	overflow-wrap: break-word;
	color: transparent;
	font-family: var( --e-global-typography-primary-font-family, inherit );
	font-size: calc( var( --ivy-font-display ) * 1.9 );
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: .9;
	-webkit-text-stroke: 1px var( --ivy-wordmark-color, color-mix( in srgb, var( --ivy-accent-on-deep, rgb( 202 194 181 ) ) 60%, transparent ) );
	text-align: center;
}

@media ( max-width: 820px ) {
	.ivy-footer--medaille .ivy-footer__inner {
		grid-template-columns: minmax( 0, 1fr );
		gap: 36px;
	}
}

@media ( max-width: 600px ) {
	.ivy-footer--medaille .ivy-footer__inner {
		grid-template-columns: minmax( 0, 1fr );
		gap: 2rem;
	}
}

/* Les colonnes ne se laissent pas dimensionner par leur contenu. */
.ivy-footer--medaille .ivy-footer__inner > * {
	min-inline-size: 0;
}

.ivy-footer--medaille .ivy-footer__column-title:not( :is( h1, h2, h3, h4, h5, h6 ) ) {
	/* Intitule en petites capitales dorees, comme les reperes de la maquette : un
	   paragraphe, pas un titre — sa taille est celle d'un libelle. */
	margin: 0 0 14px;
	color: var( --ivy-accent-on-deep, rgb( 202 194 181 ) );
	font-size: var( --ivy-font-label );
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ivy-footer--medaille .ivy-footer__nav > .ivy-footer__menu,
.ivy-footer--medaille .ivy-footer__contact-lines,
.ivy-footer--medaille .ivy-footer__social {
	display: grid;
	/* 8 px entre deux cibles empilees : le plancher tenu par footer.spec. */
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ivy-footer--medaille .ivy-footer__social {
	grid-auto-flow: column;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

/* Les icones sur une ligne, dans une pastille ronde a filet. */
.ivy-footer--medaille .ivy-footer__social a {
	border: 1px solid color-mix( in srgb, currentColor 35%, transparent );
	border-radius: 50%;
}

.ivy-footer--medaille .ivy-footer__social svg,
.ivy-footer--medaille .ivy-footer__social i { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.ivy-footer--medaille :is( .ivy-footer__menu a, .ivy-footer__contact a ) {
	display: inline-flex;
	align-items: center;
	/* Cible tactile de 44 px, le plancher du depot. */
	min-height: 2.75rem;
	color: inherit;
	text-decoration: none;
}

.ivy-footer--medaille .ivy-footer__social a {
	display: inline-grid;
	place-items: center;
	min-inline-size: 2.75rem;
	min-block-size: 2.75rem;
	color: inherit;
}

.ivy-footer--medaille a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.ivy-footer--medaille a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ivy-footer--medaille .ivy-footer__contact {
	font-style: normal;
}

.ivy-footer--medaille .ivy-footer__contact-line {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.ivy-footer--medaille .ivy-footer__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	inline-size: var( --ivy-contact-icon-size, 1.125rem );
	block-size: var( --ivy-contact-icon-size, 1.125rem );
}

.ivy-footer--medaille .ivy-footer__contact-icon :is( svg, i ) {
	inline-size: 100%;
	block-size: 100%;
	font-size: inherit;
}

.ivy-footer--medaille .ivy-footer__rule {
	border-block-start: 1px solid color-mix( in srgb, currentColor 14%, transparent );
}

/*
 * La barre du bas appartient au fragment footer_bottom, qui livre sa feuille
 * avec son balisage. Cette composition ne regle que sa GEOMETRIE.
 */
.ivy-footer--medaille .ivy-footer__bottom {
	padding-block-start: 1.5rem;
}

/* Au repli, la barre suit l'axe du pied : centree, comme tout le reste. */
@media ( max-width: 767px ) {
	.ivy-footer--medaille .ivy-footer__bottom {
		align-items: center;
	}

	.ivy-footer--medaille .ivy-footer__bottom .ivy-footer__copyright {
		text-align: center;
	}

	.ivy-footer--medaille .ivy-footer__bottom :is( .ivy-footer__legal-links > .ivy-footer__legal-menu, .ivy-footer__agency ) {
		justify-content: center;
	}
}

/*
 * Contrat de la famille « color » : elle pose `--ivy-<partie>-color` sur
 * l'element de la partie, jamais `color:`. Cette feuille lisait des noms
 * inventes, donc tous ses reglages de couleur etaient MUETS. Les titres de
 * colonne partagent une classe mais sont des parties distinctes : une regle
 * chacune, sous son ancetre. Le pourquoi est dans PASSATION.md §3.
 */
.ivy-footer--medaille .ivy-footer__nav {
	color: var( --ivy-menu-color, currentColor );
}

.ivy-footer--medaille .ivy-footer__nav .ivy-footer__column-title {
	color: var( --ivy-nav_title-color, currentColor );
}

.ivy-footer--medaille .ivy-footer__contact {
	color: var( --ivy-contact-color, currentColor );
}

.ivy-footer--medaille .ivy-footer__contact .ivy-footer__column-title {
	color: var( --ivy-contact_title-color, currentColor );
}

.ivy-footer--medaille .ivy-footer__contact-icon {
	color: var( --ivy-contact_icon-color, currentColor );
}

.ivy-footer--medaille .ivy-footer__social a {
	color: var( --ivy-social-color, currentColor );
}

.ivy-footer--medaille .ivy-footer__social-block .ivy-footer__column-title {
	color: var( --ivy-social_title-color, currentColor );
}

/*
 * AU BUREAU, des lignes serrees (Maison Majordome, 27/09/2026) : un pointeur
 * fin vise 24 px sans peine (WCAG 2.5.8), et onze entrees a 44 px faisaient
 * un pied de 1 280 px. Au doigt, la cible de 44 px revient.
 */
@media ( pointer: fine ) {
	.ivy-footer--medaille :is( .ivy-footer__menu a, .ivy-footer__contact a ) { min-height: 24px; }
	.ivy-footer--medaille .ivy-footer__bottom :is( .ivy-footer__legal-menu a, .ivy-footer__agency-link ) { min-height: 24px; }
}

/* Un reseau sans icone s'ecrit en toutes lettres, dans une pastille. */
.ivy-footer--medaille .ivy-footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.ivy-root.ivy-footer--medaille .ivy-footer__social a.ivy-footer__social-text {
	display: inline-flex;
	min-inline-size: 0;
	min-block-size: 36px;
	padding: 0 14px;
	border: 1px solid color-mix( in srgb, var( --ivy-accent-on-deep, rgb( 202 194 181 ) ) 30%, transparent );
	border-radius: var( --ivy-radius-action, 999px );
	font-size: calc( var( --ivy-font-body ) * .8125 );
}

/* La barre du bas : le droit d'auteur, les pages legales, le credit — dans cet ordre. */
.ivy-footer--medaille .ivy-footer__bottom { gap: 14px 28px; }
.ivy-footer--medaille .ivy-footer__bottom .ivy-footer__copyright { order: 1; text-align: start; }
.ivy-footer--medaille .ivy-footer__bottom .ivy-footer__legal-links { order: 2; }
.ivy-footer--medaille .ivy-footer__bottom .ivy-footer__agency { order: 3; }
