/* ==========================================================================
   Page À propos (page-a-propos.php) — maquette design/A propos.dc.html
   ========================================================================== */

.te-apropos-head { gap: 14px; }

/* ---------- 02 Qui sommes-nous ---------- */
.te-apropos-intro__lead { font-size: 18px; }
.te-apropos-intro__actions { margin-top: 8px; }

.te-apropos-collage { position: relative; height: 540px; }
.te-apropos-collage__main,
.te-apropos-collage__sub { position: absolute; border-radius: 18px; overflow: hidden; background: var(--sand); }
.te-apropos-collage__main { left: 0; top: 0; width: 72%; height: 78%; }
.te-apropos-collage__sub {
	right: 0; bottom: 0; width: calc(52% + 16px); height: calc(52% + 16px); /* maquette en content-box : 52 % + bordure */
	border: 8px solid var(--white); box-shadow: 0 30px 50px -28px rgba(26,23,22,.5);
}
.te-apropos-collage img { width: 100%; height: 100%; object-fit: cover; }
.te-apropos-badge {
	position: absolute; right: 24px; top: 40px; z-index: 1;
	display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 18px;
	background: var(--white); box-shadow: 0 24px 44px -22px rgba(26,23,22,.45);
	animation: bh-float 5s ease-in-out infinite;
}
.te-apropos-badge__note { font: 400 34px/1 var(--marker); color: var(--ink); }
.te-apropos-badge__stars { font-size: 22px; color: var(--brown); }
.te-apropos-badge__count { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ---------- 03 Notre histoire (onglets) ---------- */
.te-apropos-hist__box {
	margin-top: 44px; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: stretch;
}
.te-apropos-hist__list { display: flex; flex-direction: column; gap: 8px; }
.te-apropos-hist__tab {
	display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 18px 22px;
	border-radius: 18px; border: 1px solid transparent; background: transparent; box-shadow: none;
	font-family: var(--font); color: var(--ink); text-align: left;
	transition: background .3s, box-shadow .3s, border-color .3s;
}
.te-apropos-hist__tab[aria-selected="true"] {
	background: var(--white); border-color: var(--line-2); box-shadow: 0 20px 40px -30px rgba(26,23,22,.45);
}
.te-apropos-hist__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.te-apropos-hist__name { font: 400 24px/1.15 var(--marker); color: #8C8178; transition: color .3s; }
.te-apropos-hist__tab:hover .te-apropos-hist__name,
.te-apropos-hist__tab[aria-selected="true"] .te-apropos-hist__name { color: var(--ink); }
.te-apropos-hist__badge {
	flex: none; padding: 3px 10px; border-radius: 999px; background: var(--brown); color: var(--ink);
	font-size: 12.5px; font-weight: 700; line-height: 1.4;
}
.te-apropos-hist__badge--year { background: var(--sand-3); color: var(--brown-dark); }
.te-apropos-hist__text { font-size: 15px; line-height: 1.55; color: var(--text); }
.te-apropos-hist__bar { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.te-apropos-hist__bar > span { display: block; width: 0; height: 100%; background: var(--brown); }
.te-apropos-hist__tab:not([aria-selected="true"]) .te-apropos-hist__text,
.te-apropos-hist__tab:not([aria-selected="true"]) .te-apropos-hist__bar,
.te-apropos-hist__box:not(.is-auto) .te-apropos-hist__bar { display: none; }
.te-apropos-hist__box.is-auto [aria-selected="true"] .te-apropos-hist__bar > span { animation: hs-prog 5s linear both; }
.te-apropos-hist__box.is-paused [aria-selected="true"] .te-apropos-hist__bar > span { animation-play-state: paused; }

.te-apropos-hist__media { position: relative; min-height: 560px; border-radius: 24px; overflow: hidden; background: #2A2522; }
.te-apropos-hist__panel { position: absolute; inset: 0; }
.te-apropos-hist__panel:focus-visible { outline-offset: -4px; border-radius: 24px; }
.te-apropos-hist__panel img {
	width: 100%; height: 100%; object-fit: cover;
	animation: te-apropos-fade .8s ease both, te-apropos-zoom 5s ease-out both;
}
.te-apropos-hist__caption {
	position: absolute; inset: auto 0 0 0; padding: 60px 32px 30px; pointer-events: none;
	background: linear-gradient(180deg, rgba(18,16,16,0), rgba(18,16,16,.85));
	display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.te-apropos-hist__ctitle { font: 400 34px/1.15 var(--marker); color: var(--white); }
.te-apropos-hist__count { flex: none; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.8); }
@keyframes te-apropos-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes te-apropos-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- 04 L'atelier ---------- */
.te-apropos-atelier {
	padding-left: max(20px, calc((100% - 1280px) / 2));
	padding-right: max(20px, calc((100% - 1280px) / 2));
}
.te-apropos-atelier__box {
	position: relative; min-height: 620px; padding: 56px; border-radius: 24px; overflow: hidden;
	background: #2A2522; color: var(--white); display: flex; align-items: center;
}
.te-apropos-atelier__bg {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: transform .7s var(--ease);
}
.te-apropos-atelier__box:hover .te-apropos-atelier__bg { transform: scale(1.08); }
.te-apropos-atelier__shade {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(18,16,16,.88) 0%, rgba(18,16,16,.55) 50%, rgba(18,16,16,.1) 100%);
}
.te-apropos-atelier__content { position: relative; z-index: 1; width: 520px; max-width: 100%; }
.te-apropos-atelier__content .te-h2 { color: var(--white); }
.te-apropos-atelier__content p { color: rgba(255,255,255,.86); text-wrap: pretty; }
.te-apropos-atelier__list { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.te-apropos-atelier__list li {
	display: flex; align-items: center; gap: 12px; padding: 9px 18px 9px 9px; border-radius: 999px;
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 15px; font-weight: 600; line-height: 1.4;
}
.te-apropos-tick {
	flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brown); color: var(--ink);
	display: flex; align-items: center; justify-content: center;
}
.te-apropos-atelier__polaroids { position: absolute; right: 40px; bottom: 40px; z-index: 1; display: flex; gap: 12px; pointer-events: none; }
.te-apropos-polaroid {
	width: 190px; height: 150px; border-radius: 16px; overflow: hidden; border: 5px solid var(--white);
	box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: rotate(-4deg);
}
.te-apropos-polaroid + .te-apropos-polaroid { transform: rotate(3deg) translateY(-20px); }
.te-apropos-polaroid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 05 Nos engagements ---------- */
.te-apropos-values { list-style: none; margin-top: 44px; }
.te-apropos-value { position: relative; height: 400px; border-radius: 20px; overflow: hidden; background: #2A2522; color: var(--white); }
.te-apropos-value img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.te-apropos-value__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,16,16,0) 30%, rgba(18,16,16,.92) 100%); }
.te-apropos-value__tick {
	position: absolute; left: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--brown); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.te-apropos-value__body { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.te-apropos-value__body .te-h3 { line-height: 1.15; color: var(--white); }
.te-apropos-value__body p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.86); }

/* ---------- 06 L'équipe ---------- */
.te-apropos-team__intro { max-width: 420px; }
.te-apropos-team__photo { position: relative; height: 580px; margin-top: 44px; border-radius: 24px; overflow: hidden; background: #2A2522; }
.te-apropos-team__photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.te-apropos-team__photo:hover > img { transform: scale(1.08); }
.te-apropos-team__photo::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(18,16,16,.15), rgba(18,16,16,.35));
}
.te-apropos-pins { list-style: none; }
.te-apropos-pin {
	position: absolute; left: var(--x, 20%); top: var(--y, 30%); z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
	animation: bh-float 5s ease-in-out var(--delay, 0s) infinite;
}
.te-apropos-pin__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--brown); box-shadow: 0 0 0 6px rgba(166,124,82,.35); }
.te-apropos-pin__card {
	display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 14px;
	background: var(--white); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); white-space: nowrap;
}
.te-apropos-pin__name { font: 400 20px/1.1 var(--marker); color: var(--ink); }
.te-apropos-pin__role { font-size: 13px; line-height: 1.4; color: var(--text); }

/* ---------- 07 Nos raids ---------- */
.te-apropos-raids { list-style: none; margin-top: 44px; }
.te-apropos-raid { position: relative; display: block; height: 440px; border-radius: 20px; overflow: hidden; background: #2A2522; color: var(--white); }
.te-apropos-raid:hover { color: var(--white); }
.te-apropos-raid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.te-apropos-raid__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,16,16,0) 35%, rgba(18,16,16,.92) 100%); }
.te-apropos-raid__body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.te-apropos-raid__body .te-h3 { color: var(--white); }
.te-apropos-raid__sub { font-size: 15px; color: rgba(255,255,255,.86); }
.te-apropos-raid__cta {
	align-self: flex-start; margin-top: 6px; display: flex; align-items: center; gap: 12px;
	padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--white); color: var(--ink);
	font-weight: 700; font-size: 15px; transition: background .25s;
}
.te-apropos-raid:hover .te-apropos-raid__cta { background: var(--sand-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.te-apropos-hist__box { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
	.te-apropos-atelier__polaroids { display: none; }
}

@media (max-width: 900px) {
	.te-apropos-collage { height: 460px; }
	.te-apropos-hist__box { grid-template-columns: 1fr; margin-top: 32px; }
	.te-apropos-hist__media { min-height: 380px; }
	.te-apropos-hist__caption { padding: 50px 22px 20px; }
	.te-apropos-hist__ctitle { font-size: 28px; }
	.te-apropos-atelier__box { min-height: 0; padding: 48px 32px; }
	.te-apropos-atelier__shade { background: linear-gradient(180deg, rgba(18,16,16,.82) 0%, rgba(18,16,16,.7) 100%); }
	.te-apropos-value { height: 360px; }
	.te-apropos-team__photo { height: 440px; margin-top: 32px; }
	.te-apropos-raid { height: 380px; }
	.te-apropos-values, .te-apropos-raids { margin-top: 32px; }
}

@media (max-width: 700px) {
	.te-apropos-collage { height: 400px; }
	.te-apropos-badge { right: 12px; top: 20px; padding: 12px 16px; }
	.te-apropos-badge__note { font-size: 28px; }
	.te-apropos-badge__stars { font-size: 18px; }
	.te-apropos-hist__tab { padding: 14px 18px; }
	.te-apropos-hist__name { font-size: 22px; }
	.te-apropos-atelier__list li { border-radius: 18px; font-size: 14.5px; }
	.te-apropos-value { height: 320px; }
	.te-apropos-team__photo { height: 340px; }
	.te-apropos-pin { left: min(var(--x, 20%), calc(100% - 162px)); }
	.te-apropos-pin__card { max-width: 150px; padding: 8px 12px; white-space: normal; }
	.te-apropos-pin__name { font-size: 17px; }
	.te-apropos-raid { height: 340px; }
}

@media (max-width: 480px) {
	.te-apropos-collage { height: 340px; }
	.te-apropos-collage__sub { width: calc(52% + 10px); height: calc(52% + 10px); border-width: 5px; }
	.te-apropos-hist__media { min-height: 280px; }
	.te-apropos-hist__ctitle { font-size: 24px; }
	.te-apropos-atelier__box { padding: 36px 20px; border-radius: 18px; }
	.te-apropos-team__photo { height: 280px; border-radius: 18px; }
	.te-apropos-raid__body { left: 18px; right: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.te-apropos-badge, .te-apropos-pin { animation: none; }
}
