/* ---------------------------------------------------------
   Page FAQ — page-faq.css
   --------------------------------------------------------- */

/* ── En-tête ───────────────────────────────────────────── */

.faq-main {
	border-bottom: 4px solid white;
	border-right: 4px solid white;
	border-left: 4px solid white;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.faq-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 2px);
    width: 4px;
    height: 100%;
    background-color: white;
    z-index: 4;
}

.faq-header {
    height: 100%;
}

.faq-header__sticky {
	position: sticky;
	top: 60px;
	z-index: 2;
	height: calc(100vh - 60px);
    overflow: hidden;
}

.faq-header__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
    transform-origin: center center;
    will-change: transform;
}

.faq-title {
    font-size: 24rem;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: var(--light-pink);
}

.faq-section {
    padding: 10rem;
    border-bottom: 4px solid white;
}

.faq-section:last-child {
    border-bottom: none;
}

.faq-section__title {
	font-size: 8rem;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 2rem;
	position: relative;
	left: -5px;
}

/* ── Panels ────────────────────────────────────────────── */

.faq-panel {
    padding: 0.8rem 0;
    background-color: white;
}

.faq-panel[hidden] {
    display: none;
}

/* ── Liste accordion ───────────────────────────────────── */

.faq-list {
    list-style: none;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: block;
}

.faq-question__btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	font-size: 1.8rem;
	font-weight: 500;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: color 0.2s;
	text-transform: uppercase;
}

.faq-question__btn:hover {
    color: var(--blue);
}

.faq-question__btn[aria-expanded="true"] {
    color: var(--blue);
}

.faq-cross {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    color: var(--blue);
    transform: rotate(0deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pendant l'animation d'ouverture */
.faq-cross.is-spinning {
    animation: faq-cross-spin 1s cubic-bezier(0, 0, 0.15, 1) forwards;
    transition: none;
}

/* État stable ouvert (45°) */
.faq-cross.is-open {
    transform: rotate(45deg);
}

@keyframes faq-cross-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(765deg); } /* 2 × 360° + 45° */
}

.faq-answer {
	line-height: 1.7;
	text-transform: uppercase;
    padding-right: 10rem;
    font-weight: 500;
}

.faq-answer p + p {
    margin-top: 1rem;
}

/* ── Animation ouverture ───────────────────────────────── */

.faq-answer:not([hidden]) {
    animation: faq-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faq-slide-down {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

