/* ============================================================
   AMIAMOR — style.css
   S'appuie sur les variables sémantiques de tokens.css.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	font-size: 17px;
	transition: background .4s ease, color .4s ease;
	min-height: 100vh;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.content {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 22px 80px;
}

/* ——— Boutons ——— */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 26px;
	border-radius: var(--radius);
	border: none;
	cursor: pointer;
	transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn--primary {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); text-decoration: none; }
.btn--ghost {
	background: transparent;
	color: var(--text-soft);
	border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
	border-bottom: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 50;
}
.navbar_content {
	max-width: 980px;
	margin: 0 auto;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
#logo a {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--text);
}
#logo a:hover { text-decoration: none; }
#flame {
	width: 14px; height: 18px;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: radial-gradient(circle at 50% 70%, var(--accent-deep), var(--accent));
	box-shadow: 0 0 14px var(--accent-soft);
	animation: flicker 2.6s infinite ease-in-out;
}
@keyframes flicker {
	0%, 100% { transform: scale(1) rotate(-1deg); opacity: 1; }
	50%      { transform: scale(1.08) rotate(1deg); opacity: .85; }
}

#menu ul { list-style: none; display: flex; align-items: center; gap: 6px; }
#menu a {
	color: var(--text-soft);
	font-weight: 600;
	font-size: .95rem;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
}
#menu a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }

.theme-toggle {
	background: transparent; border: 1px solid var(--border);
	width: 38px; height: 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; color: var(--text-soft);
}
.theme-toggle:hover { color: var(--accent-deep); }
html.light .theme-toggle__moon { display: none; }
html.dark  .theme-toggle__sun  { display: none; }

/* ——— Sélecteur de langue ——— */
.lang-switcher { position: relative; }
.lang-switcher__toggle {
	display: inline-flex; align-items: center; gap: 6px;
	background: transparent; border: 1px solid var(--border);
	border-radius: var(--radius-sm); padding: 7px 11px;
	cursor: pointer; color: var(--text-soft); font: inherit; font-size: .9rem;
}
.lang-switcher__menu {
	list-style: none; position: absolute; right: 0; top: calc(100% + 6px);
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
	min-width: 150px; padding: 6px; display: none; z-index: 60;
}
.lang-switcher[data-open="true"] .lang-switcher__menu { display: block; }
.lang-switcher__item {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 10px; border-radius: 8px; color: var(--text-soft);
}
.lang-switcher__item:hover { background: var(--bg-alt); text-decoration: none; }
.lang-switcher__item--active { color: var(--text); font-weight: 700; }

/* ============================================================
   HOME
   ============================================================ */
.hero {
	max-width: 760px; margin: 0 auto; padding: 72px 22px 48px;
	text-align: center;
}
.hero__eyebrow {
	color: var(--accent-deep); font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; font-size: .82rem; margin-bottom: 14px;
}
.hero h1 { margin-bottom: 18px; }
.hero p { color: var(--text-soft); font-size: 1.12rem; max-width: 560px; margin: 0 auto 30px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero__candle {
	width: 60px; height: 60px; margin: 0 auto 26px;
	border-radius: 50% 50% 50% 50% / 64% 64% 40% 40%;
	background: radial-gradient(circle at 50% 72%, var(--accent-deep), var(--accent));
	box-shadow: 0 0 50px var(--accent-soft), 0 0 120px var(--accent-soft);
	animation: flicker 3s infinite ease-in-out;
}

/* ============================================================
   PAGE MÉMOIRE
   ============================================================ */
.memorial { max-width: 720px; margin: 0 auto; padding: 40px 22px 90px; }
.memorial__head { text-align: center; margin-bottom: 36px; }
.memorial__photo {
	width: 150px; height: 150px; border-radius: 50%;
	object-fit: cover; border: 4px solid var(--surface);
	box-shadow: var(--shadow-card); margin: 0 auto 20px; display: block;
}
.memorial__name { margin-bottom: 6px; }
.memorial__dates { color: var(--text-mute); font-size: 1rem; }
.memorial__story {
	color: var(--text-soft); margin: 28px auto; max-width: 600px;
	white-space: pre-line; text-align: center; font-size: 1.06rem;
}

/* ——— Mur de bougies ——— */
.candles {
	background: var(--bg-alt); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 28px 22px; margin-top: 30px;
}
.candles__title {
	font-family: var(--font-display); font-size: 1.3rem;
	text-align: center; margin-bottom: 20px;
}
.candles__grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 14px;
}
.candle { text-align: center; }
.candle__flame {
	width: 16px; height: 22px; margin: 0 auto 7px;
	border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
	background: radial-gradient(circle at 50% 72%, var(--accent-deep), var(--accent));
	box-shadow: 0 0 12px var(--accent-soft);
	animation: flicker 2.8s infinite ease-in-out;
}
.candle__name { font-size: .78rem; color: var(--text-soft); word-break: break-word; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.content { border-top: 1px solid var(--border); padding-top: 28px; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
footer a { color: var(--text-mute); font-size: .9rem; }

/* ——— Mobile ——— */
@media (max-width: 640px) {
	#menu ul { gap: 2px; }
	#menu a { padding: 8px 8px; font-size: .9rem; }
}

/* ——— Galerie sur la page mémoire ——— */
.memorial__gallery {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px; margin: 30px 0;
}
.memorial__gallery img {
	width: 100%; aspect-ratio: 1; object-fit: cover;
	border-radius: var(--radius-sm); box-shadow: var(--shadow-soft);
}
