/* ============================================================
   GROUPE POLMAR — Design System
   ============================================================ */

/* ── Variables ── */
:root {
	--navy:       #0F314C;
	--navy-dark:  #0C2030;
	--navy-mid:   #104366;
	--pink:       #C17FB5;
	--white:      #FFFFFF;
	--g50:        #F5F7FA;
	--g100:       #E8EDF4;
	--g200:       #CBD5E1;
	--g400:       #8FA3B8;
	--g600:       #4A6070;
	--text:       #1A2D3D;
	--radius:     12px;
	--radius-pill:100px;
	--shadow-sm:  0 2px 8px rgba(12,32,48,.09);
	--shadow-md:  0 8px 28px rgba(12,32,48,.16);
	--shadow-lg:  0 20px 60px rgba(12,32,48,.22);
	--transition: .22s cubic-bezier(.4,0,.2,1);
	--ff:         'Montserrat', sans-serif;
	--ff-cond:    'Barlow Condensed', sans-serif;
	--container:  1280px;
	/* Aliases pour compatibilité avec les sections home */
	--shsm:       0 2px 8px rgba(12,32,48,.09);
	--shmd:       0 8px 28px rgba(12,32,48,.16);
	--rmd:        12px;
	--rpill:      100px;
	--t:          .22s cubic-bezier(.4,0,.2,1);
	--fc:         'Barlow Condensed', sans-serif;
	--dark:       #0C2030;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--ff);
	color: var(--text);
	background: #fff;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--ff); }

/* ── Container ── */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff);
	font-weight: 800;
	line-height: 1.15;
	color: var(--navy);
}
/* Titres display en Barlow Condensed uppercase, comme le live */
h1, h2, h3 {
	font-family: var(--fc);
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }

/* ── Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ff);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	transition: all var(--transition);
	white-space: nowrap;
	cursor: pointer;
}
.btn--primary {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}
.btn--primary:hover {
	background: var(--pink);
	border-color: var(--pink);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(193,127,181,.4);
}
.btn--outline {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}
.btn--outline:hover {
	background: var(--navy);
	color: #fff;
}
.btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover {
	background: #fff;
	color: var(--navy);
	border-color: #fff;
}
.btn--sm { font-size: .65rem; padding: 9px 18px; }
.btn--lg { font-size: .8rem; padding: 16px 32px; }

/* ── Badge ── */
.badge {
	display: inline-flex;
	align-items: center;
	font-size: .58rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: var(--g100);
	color: var(--navy);
}
.badge--pink { background: var(--pink); color: #fff; }
.badge--navy { background: var(--navy); color: #fff; }

/* ── Section ── */
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 96px 0; }
.section--dark { background: var(--navy-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--gray { background: var(--g50); }

.section__header {
	text-align: center;
	margin-bottom: 48px;
}
.section__label {
	display: inline-block;
	font-size: .6rem;
	font-weight: 800;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 12px;
}
.section__title { margin-bottom: 16px; }
.section__sub {
	font-size: .95rem;
	color: var(--g600);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.7;
}

/* ── Cards ── */
.card {
	background: #fff;
	border: 1.5px solid var(--g100);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--g200);
}
.card__img {
	position: relative;
	overflow: hidden;
	background: var(--g100);
}
.card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 20px 22px; }
.card__foot {
	padding: 14px 22px;
	border-top: 1px solid var(--g100);
	display: flex;
	gap: 10px;
}

/* ── Grid ── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Breadcrumb ── */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .72rem;
	color: var(--g400);
	padding: 14px 0;
}
.breadcrumb a { color: var(--g400); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { opacity: .4; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
	display: block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--g600);
	margin-bottom: 7px;
}
.form-control {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--g200);
	border-radius: 10px;
	font-family: var(--ff);
	font-size: .85rem;
	color: var(--text);
	background: #fff;
	transition: border-color var(--transition), box-shadow var(--transition);
	outline: none;
}
.form-control:focus {
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(15,49,76,.1);
}
.form-control::placeholder { color: var(--g400); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238FA3B8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ── Utilitaires ── */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-pink { color: var(--pink); }
.text-muted { color: var(--g400); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.container { padding: 0 16px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.section { padding: 48px 0; }
	.section--lg { padding: 64px 0; }
}

/* Neutralise contain-intrinsic-size injecté par WP core (wp-img-auto-sizes) */
img:is([sizes="auto" i],[sizes^="auto," i]) {
	contain-intrinsic-size: auto !important;
}
