/* Alex Novai — direction « Riviera éditoriale » : ivoire chaud, encre, terre cuite, lagon profond. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-opsz-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-opsz-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
	--bg: #F4EEE4;
	--paper: #FBF8F3;
	--sand: #E8DDCB;
	--ink: #1A1714;
	--muted: #5E554B;
	--line: rgba(26, 23, 20, .14);
	--accent: #9C4422;
	--accent-ink: #7A3418;
	--accent-soft: #B4532A;
	--deep: #0F363D;
	--deep-2: #164852;
	--gold: #C9A462;
	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 2px;
	--space: clamp(72px, 10vw, 136px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.an-main { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.an-section--ink :focus-visible, .an-footer :focus-visible, .an-topic:focus-visible, .an-cookie :focus-visible { outline-color: var(--gold); }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.an-skip:focus { left: 8px; }

/* Mise en page */
.an-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.an-wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.an-section { padding: var(--space) 0; }
.an-section--tight { padding-bottom: calc(var(--space) * .6); }
.an-section--flush { padding-top: 0; }
.an-section--sand { background: var(--sand); }
.an-section--ink { background: var(--deep); color: var(--paper); }
.an-section--ink .an-eyebrow { color: var(--gold); }
.an-section--ink a:hover { color: var(--gold); }

/* Typographie */
.an-eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.an-display { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -.025em; font-weight: 350; font-variation-settings: "opsz" 144; margin: 0 0 28px; }
.an-display em, .an-h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.an-display--md { font-size: clamp(38px, 5.4vw, 72px); }
.an-h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.an-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.an-section--ink .an-lead { color: rgba(251, 248, 243, .78); }

/* Boutons et liens */
.an-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.an-btn, .an-prose a.an-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none; border: 1px solid var(--ink); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.an-btn:hover, .an-prose a.an-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.an-btn--ghost { background: transparent; color: var(--ink); }
.an-btn--light { background: var(--paper); color: var(--deep); border-color: var(--paper); margin-top: 18px; }
.an-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.an-arrow::after { content: "→"; transition: transform .25s var(--ease); }
a:hover .an-arrow::after, .an-arrow:hover::after { transform: translateX(5px); }

/* En-tête */
.an-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 238, 228, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.admin-bar .an-header { top: 32px; }
.an-header.is-scrolled { border-bottom-color: var(--line); }
.an-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.an-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.an-logo__mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-style: italic; font-size: 20px; }
.an-logo__name { font-family: var(--font-display); font-size: 23px; letter-spacing: -.01em; }
.an-logo--light { color: var(--paper); }
.an-logo--light .an-logo__mark { background: var(--accent); }
.an-nav { display: flex; align-items: center; gap: 28px; }
.an-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.an-nav a { text-decoration: none; font-size: 15px; font-weight: 600; display: inline-block; padding: 8px 0; }
.an-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.an-nav > ul > li > a:not(.an-nav__cta a) { position: relative; }
.an-nav__cta a { border: 1px solid var(--ink); border-radius: 999px; padding: 9px 18px; }
.an-nav__cta a:hover { background: var(--ink); color: var(--paper); }
.an-lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.an-lang a, .an-footer .an-lang a { display: inline-block; min-width: 40px; min-height: 32px; text-align: center; text-decoration: none; padding: 6px 8px; border-radius: 999px; color: var(--muted); }
.an-lang a[aria-current] { color: var(--ink); background: var(--sand); }
.an-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.an-burger span:not(.screen-reader-text) { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s var(--ease); }
.an-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.an-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Héros */
.an-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.an-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.an-hero__media { position: relative; margin: 0; }
.an-hero__media::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--accent-soft); z-index: -1; }
.an-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.an-hero__media figcaption { position: absolute; left: 0; bottom: -40px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Bandeau des villes */
.an-ticker { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.an-ticker.is-paused .an-ticker__track { animation-play-state: paused; }
.an-ticker__toggle { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; min-width: 44px; min-height: 44px; border: 1px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 13px var(--font-body); padding: 0 14px; cursor: pointer; }
.an-ticker__toggle:hover { background: var(--ink); color: var(--paper); }
.an-ticker__track { display: flex; gap: 56px; width: max-content; animation: an-ticker 48s linear infinite; }
.an-ticker span { font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 2.6vw, 36px); white-space: nowrap; color: var(--ink); }
.an-ticker span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--accent); margin-left: 56px; vertical-align: middle; }
@keyframes an-ticker { to { transform: translateX(-50%); } }
@keyframes an-fade { from { opacity: 0; } to { opacity: 1; } }

/* Titres de section */
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 4vw, 56px); }
.an-head .an-h2 { max-width: 16em; }

/* Cartes */
.an-feature { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: clamp(20px, 2.4vw, 32px); }
.an-feature .an-card--big { grid-row: span 2; }
.an-feature .an-card:not(.an-card--big) .an-card__link { display: grid; grid-template-columns: 44% 1fr; gap: 20px; align-items: center; }
.an-feature .an-card:not(.an-card--big) .an-card__media img { aspect-ratio: 4 / 5; }
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.an-card__link { display: block; text-decoration: none; color: inherit; }
.an-card__media { margin: 0 0 18px; overflow: hidden; background: var(--sand); }
.an-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.an-card--big .an-card__media img { aspect-ratio: 16 / 11; }
.an-card__link:hover .an-card__media img { transform: scale(1.04); }
.an-card .an-eyebrow { margin-bottom: 10px; }
.an-card__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; margin: 0 0 12px; }
.an-card--big .an-card__title { font-size: clamp(30px, 3.2vw, 44px); }
.an-card__dek { color: var(--muted); margin-bottom: 16px; }
.an-card .an-arrow { font-size: 14px; }

/* Bloc texte et image */
.an-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.an-split__media { margin: 0; }
.an-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.an-frame { position: relative; }
.an-frame::after { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--accent); z-index: 0; pointer-events: none; }
.an-split__text .an-h2 { margin-bottom: 24px; }
.an-split__text .an-lead { margin-bottom: 30px; }

/* Rubriques */
.an-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.an-topic { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: var(--paper); text-decoration: none; background: var(--deep); }
.an-topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.an-topic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 54, 61, 0) 35%, rgba(15, 54, 61, .9) 100%); }
.an-topic:hover { color: var(--paper); }
.an-topic:hover img { transform: scale(1.05); }
.an-topic__n { position: absolute; top: 20px; left: 22px; z-index: 1; font-family: var(--font-display); font-style: italic; font-size: 20px; }
.an-topic__body { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 1; }
.an-topic__body strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; margin-bottom: 8px; }
.an-topic__body span { font-size: 15px; opacity: .85; }

/* Bande portfolio */
.an-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 320px); gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.an-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 1320px) { .an-strip { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

/* Marques */
.an-brand { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.an-brand__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(251, 248, 243, .2); }
.an-brand__list li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(251, 248, 243, .2); font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); }
.an-brand__list span { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; color: var(--gold); }

/* FAQ */
.an-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.an-faq__list details { border-bottom: 1px solid var(--line); }
.an-faq__list details:first-child { border-top: 1px solid var(--line); }
.an-faq__list summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.25; }
.an-faq__list summary::-webkit-details-marker { display: none; }
.an-faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--font-body); font-size: 26px; color: var(--accent); transition: transform .3s var(--ease); }
.an-faq__list details[open] summary::after { transform: rotate(45deg); }
.an-faq__list p { color: var(--muted); padding: 0 40px 22px 0; margin: 0; }

/* En-tête de page et d'article */
.an-pagehead { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.an-pagehead--center { text-align: center; }
.an-pagehead--center .an-lead { margin-left: auto; margin-right: auto; }
.an-pagehead--center .an-actions { justify-content: center; }
.an-article__head { padding: clamp(40px, 6vw, 88px) 0 0; }
.an-crumbs { display: flex; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; color: var(--accent); }
.an-crumbs a { text-decoration: none; display: inline-block; min-height: 28px; padding: 4px 0; }
.an-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; }
.an-meta span + span::before { content: "·"; margin-right: 22px; color: var(--accent); }
.an-article__cover { margin: clamp(40px, 5vw, 64px) auto 0; }
.an-article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.an-article__cover--portrait { max-width: calc(560px + 2 * var(--gutter)); }
.an-article__cover--portrait img { aspect-ratio: 4 / 5; }

/* Texte long (articles et pages simples) */
.an-prose { padding-top: clamp(40px, 5vw, 72px); padding-bottom: var(--space); font-size: 18.5px; line-height: 1.75; }
.an-prose > *, .an-prose article > *, .an-prose section > * { max-width: var(--narrow); }
.an-prose article, .an-prose section { margin: 0; padding: 0; background: none; color: inherit; max-width: none; }
.an-prose section + section { margin-top: 2.6em; }
.an-prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 .6em; }
.an-prose h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 1.6em 0 .5em; }
.an-prose p { margin-bottom: 1.3em; }
.an-prose ul, .an-prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.an-prose li { margin-bottom: .55em; }
.an-prose li::marker { color: var(--accent); }
.an-prose figure { margin: 2.4em 0; max-width: none; }
.an-prose figure img { width: 100%; height: auto; }
.an-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.an-prose blockquote { margin: 2em 0; padding: 0 0 0 26px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.3em; line-height: 1.4; }
.an-prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 16px; }
.an-prose th, .an-prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.an-prose th { font-weight: 700; background: var(--sand); }
.an-prose strong { font-weight: 700; }
.an-prose a:not(.an-btn) { color: var(--accent-ink); }
.an-prose a.an-btn { margin: .4em 0; }
/* Dernière section des carnets : appel à réserver */
.an-prose .alex-article > section:last-of-type { margin-top: 3em; padding: clamp(28px, 4vw, 48px); background: var(--deep); color: var(--paper); max-width: var(--narrow); }
.an-prose .alex-article > section:last-of-type h2 { color: var(--paper); }
.an-prose .alex-article > section:last-of-type a:not(.an-btn) { color: var(--gold); }
.an-prose .alex-article > section:last-of-type a.an-btn { background: var(--accent); border-color: var(--accent); }
.an-prose .alex-article > section:last-of-type p:last-child { font-size: 14px; color: rgba(251, 248, 243, .82); margin: 0; }

/* Pages construites avec les sections du thème */
.an-page .an-section:first-child { padding-top: clamp(48px, 7vw, 104px); }
.an-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(20px, 3vw, 40px); }
.an-cols--2 { --cols: 2; }
.an-cols--4 { --cols: 4; }
.an-item { border-top: 1px solid var(--line); padding-top: 22px; }
.an-section--ink .an-item { border-top-color: rgba(251, 248, 243, .2); }
.an-item__n { display: block; font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 20px; margin-bottom: 10px; }
.an-section--ink .an-item__n { color: var(--gold); }
.an-item h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 10px; }
.an-item p { color: var(--muted); margin: 0; }
.an-section--ink .an-item p { color: rgba(251, 248, 243, .74); }
.an-masonry { columns: 3 300px; column-gap: 20px; }
.an-masonry figure { break-inside: avoid; margin: 0 0 20px; position: relative; overflow: hidden; cursor: zoom-in; }
.an-masonry img { width: 100%; transition: transform 1.2s var(--ease); }
.an-masonry figure:hover img { transform: scale(1.03); }
.an-masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: var(--paper); background: linear-gradient(transparent, rgba(15, 54, 61, .85)); font-size: 14px; }
.an-masonry figcaption strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.an-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.an-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--deep); }
.an-videos p { font-size: 14px; color: var(--muted); margin-top: 10px; }
.an-section--ink .an-videos p { color: rgba(251, 248, 243, .7); }
.an-form { background: var(--paper); padding: clamp(24px, 4vw, 48px); }
.an-form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .an-form textarea, .an-form select { width: 100% !important; max-width: none !important; border: 1px solid var(--line) !important; background: var(--bg) !important; border-radius: var(--radius) !important; padding: 14px 16px !important; font: inherit !important; color: var(--ink) !important; }
.an-form button[type=submit], .an-form input[type=submit] { background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; border-radius: 999px !important; padding: 16px 28px !important; font: 700 15px var(--font-body) !important; cursor: pointer; }
.an-form button[type=submit]:hover { background: var(--accent) !important; }
.an-form label { font-weight: 600 !important; font-size: 15px !important; }
.an-form .wpforms-field-row { display: flex !important; gap: 12px; max-width: none !important; }
.an-form .wpforms-field-row-block { flex: 1 1 0; width: auto !important; max-width: none !important; padding: 0 !important; }
.an-form .wpforms-field-row-block input { width: 100% !important; }
.an-masonry button { all: unset; display: block; cursor: zoom-in; position: relative; }
.an-masonry button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.an-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 54, 61, .96); display: none; align-items: center; justify-content: center; padding: 24px; }
.an-lightbox__close { position: absolute; top: 16px; right: 16px; min-width: 48px; min-height: 48px; border-radius: 999px; border: 1px solid var(--paper); background: transparent; color: var(--paper); font: 700 15px var(--font-body); padding: 0 18px; cursor: pointer; }
.an-lightbox.is-open { display: flex; }
.an-lightbox img { max-height: 92vh; width: auto; }

/* Pied de page */
.an-footer { background: var(--ink); color: rgba(251, 248, 243, .78); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 15px; }
.an-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.an-footer__brand p { max-width: 30em; margin-top: 22px; }
.an-footer__h { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.an-footer ul { list-style: none; margin: 0; padding: 0; }
.an-footer li { margin-bottom: 10px; }
.an-footer a, .an-footer__link { text-decoration: none; display: inline-block; min-height: 28px; padding: 3px 0; }
.an-footer a:hover { color: #fff; }
.an-footer .an-lang { margin-top: 18px; }
.an-footer .an-lang a { color: rgba(251, 248, 243, .6); }
.an-footer .an-lang a[aria-current] { background: rgba(251, 248, 243, .12); color: #fff; }
.an-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(251, 248, 243, .14); font-size: 13px; }

.an-video-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
details.an-transcript { margin-top: 8px; font-size: 14px; }
details.an-transcript summary { cursor: pointer; font-weight: 700; min-height: 32px; padding: 6px 0; }
.an-footer__link { all: unset; cursor: pointer; }
.an-footer__link:hover { color: #fff; text-decoration: underline; }
/* Bandeau cookies */
.an-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; background: var(--ink); color: var(--paper); padding: 22px 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.an-cookie[hidden] { display: none; }
.an-cookie h2 { font-size: 22px; margin: 0 0 8px; color: var(--paper); }
.an-cookie p { font-size: 15px; margin: 0 0 16px; color: rgba(251, 248, 243, .86); }
.an-cookie a { color: var(--gold); }
.an-cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.an-cookie button { min-height: 44px; padding: 0 22px; border-radius: 999px; font: 700 15px var(--font-body); cursor: pointer; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); }
.an-cookie button[data-cookie="refuse"] { background: transparent; color: var(--paper); }

.an-pager { display: flex; justify-content: space-between; margin-top: 56px; font-weight: 700; }

/* Apparition au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Activités Viator sous l'article */
.an-viator { background: var(--paper); border-top: 1px solid var(--line); }
.an-viator__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.an-viator__link { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: inherit; }
.an-viator__media { display: block; overflow: hidden; background: var(--sand); }
.an-viator__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.an-viator__link:hover .an-viator__media img { transform: scale(1.04); }
.an-viator__title { font-family: var(--font-display); font-size: 20px; line-height: 1.2; }
.an-viator__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.an-viator__price { font-weight: 700; }
.an-viator__cta { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.an-viator__link:hover .an-viator__cta { color: var(--accent-ink); }
.an-viator__note { margin: clamp(28px, 3vw, 40px) 0 0; font-size: 14px; color: var(--muted); max-width: 60em; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* Tablette */
@media (max-width: 1080px) {
	.an-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	/* Menu mobile : plein écran sous l'en-tête, masqué (display:none) quand il est fermé pour ne rien déborder. */
	.an-nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; width: 100%; background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: calc(var(--an-hh, 64px) + 16px) var(--gutter) 40px; gap: 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
	.an-nav.is-open { display: flex; animation: an-fade .25s var(--ease); }
	.an-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
	.an-nav > ul > li { width: 100%; border-bottom: 1px solid var(--line); }
	.an-nav > ul a { display: block; padding: 14px 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; }
	.an-nav__cta a { border: 0; padding: 14px 0; color: var(--accent); }
	.an-burger { display: block; }
	.an-feature { grid-template-columns: 1fr; }
	.an-feature .an-card--big { grid-row: auto; }
	.an-grid, .an-topics { grid-template-columns: repeat(2, 1fr); }
	.an-footer__grid { grid-template-columns: 1fr 1fr; }
	.an-cols--4 { --cols: 2; }
}

/* Mobile */
@media (max-width: 720px) {
	body { font-size: 16px; }
	.an-header__inner { height: 64px; }
	.an-nav { inset: 64px 0 0 0; }
	.an-hero__grid, .an-split, .an-brand, .an-faq { grid-template-columns: 1fr; }
	.an-hero__media { margin-right: 16px; }
	.an-hero__media::before { inset: 16px -16px -16px 16px; }
	.an-hero__media figcaption { display: none; }
	.an-head { flex-direction: column; align-items: flex-start; }
	.an-grid, .an-topics, .an-cols, .an-videos { grid-template-columns: 1fr; }
	.an-feature .an-card:not(.an-card--big) .an-card__link { grid-template-columns: 38% 1fr; }
	.an-topic { aspect-ratio: 1 / 1; }
	.an-frame::after { inset: -10px 10px 10px -10px; }
	.an-prose { font-size: 17px; }
	.an-footer__grid { grid-template-columns: 1fr; }
	.an-ticker span::after { margin-left: 32px; }
	.an-ticker__track { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) { .an-ticker__toggle { display: none; } }
@media (forced-colors: active) { .an-btn, .an-cookie button, .an-ticker__toggle { border: 1px solid ButtonText; } }

/* ---------- Options d'accessibilité ---------- */
.an-a11y__toggle { position: fixed; right: 16px; bottom: 16px; z-index: 160; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--paper); background: var(--deep); color: var(--paper); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.an-a11y__toggle:hover { background: var(--accent); }
.an-a11y__toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.an-a11y__panel { position: fixed; right: 16px; bottom: 84px; z-index: 161; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); padding: 20px; font-size: 16px; }
.an-a11y__panel[hidden] { display: none; }
.an-a11y__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.an-a11y__head h2 { font-size: 24px; margin: 0; }
.an-a11y__panel p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.an-a11y__panel button { min-height: 44px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 10px; font: 600 14px var(--font-body); cursor: pointer; padding: 8px 12px; text-align: left; }
.an-a11y__panel button:hover { background: var(--sand); }
.an-a11y__panel button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.an-a11y__panel button[aria-pressed="true"]::before { content: "✓ "; }
.an-a11y__size { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.an-a11y__size > span { flex: 1; font-weight: 700; }
.an-a11y__size button { width: 52px; text-align: center; font-size: 16px; }
.an-a11y__size output { min-width: 52px; text-align: center; font-weight: 700; }
.an-a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.an-a11y__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.an-a11y__foot a { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.an-a11y__close { padding: 8px 14px !important; }
.an-cookie { right: 88px; }
body.an-menu-open .an-cookie, body.an-menu-open .an-a11y { display: none; }

/* Taille du texte */
html.a11y-size-1 body { zoom: 1.15; }
html.a11y-size-2 body { zoom: 1.3; }
html.a11y-size-3 body { zoom: 1.5; }
html.a11y-size--1 body { zoom: .9; }
html[class*="a11y-size"] .an-a11y { zoom: 1; }

/* Liens soulignés */
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important; }

/* Police lisible */
html.a11y-font, html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font h4, html.a11y-font .an-logo__name, html.a11y-font .an-display, html.a11y-font .an-h2, html.a11y-font summary, html.a11y-font .an-ticker span, html.a11y-font .an-brand__list li, html.a11y-font .an-topic__body strong { font-family: Verdana, "Atkinson Hyperlegible", Arial, sans-serif !important; font-style: normal !important; letter-spacing: 0 !important; }
html.a11y-font .an-display, html.a11y-font .an-h2 { font-weight: 700 !important; }

/* Espacement du texte (critère 1.4.12) */
html.a11y-spacing body *:not(svg):not(path) { line-height: 1.9 !important; letter-spacing: .08em !important; word-spacing: .16em !important; }
html.a11y-spacing p { margin-bottom: 2em !important; }

/* Animations arrêtées */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .an-ticker__toggle { display: none; }

/* Grand curseur */
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7 19 2.5-7.5L20 11z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }

/* Contraste élevé */
html.a11y-contrast { --bg: #000; --paper: #000; --sand: #000; --ink: #fff; --muted: #fff; --line: #fff; --accent: #ffd400; --accent-ink: #ffd400; --accent-soft: #ffd400; --deep: #000; --gold: #ffd400; }
html.a11y-contrast body, html.a11y-contrast .an-header, html.a11y-contrast .an-footer, html.a11y-contrast .an-section, html.a11y-contrast .an-cookie, html.a11y-contrast .an-a11y__panel, html.a11y-contrast .an-form, html.a11y-contrast .an-nav { background: #000 !important; color: #fff !important; }
html.a11y-contrast .an-section--ink, html.a11y-contrast .an-section--ink .an-lead, html.a11y-contrast .an-footer, html.a11y-contrast .an-footer a, html.a11y-contrast .an-item p, html.a11y-contrast .an-lead, html.a11y-contrast .an-card__dek { color: #fff !important; }
html.a11y-contrast a { color: #ffd400 !important; }
html.a11y-contrast .an-btn, html.a11y-contrast .an-cookie button, html.a11y-contrast .an-a11y__panel button, html.a11y-contrast .an-ticker__toggle { background: #000 !important; color: #ffd400 !important; border: 2px solid #ffd400 !important; }
html.a11y-contrast .an-a11y__panel button[aria-pressed="true"] { background: #ffd400 !important; color: #000 !important; }
html.a11y-contrast .an-a11y__toggle { background: #ffd400; color: #000; border-color: #000; }
html.a11y-contrast .an-topic::after { background: rgba(0, 0, 0, .78); }
html.a11y-contrast .an-logo__mark { background: #ffd400; color: #000; }
html.a11y-contrast .an-burger span:not(.screen-reader-text) { background: #fff; }
html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y-contrast :focus-visible { outline-color: #ffd400 !important; }

@media (max-width: 720px) {
	.an-cookie { right: 16px; bottom: 84px; }
}
@media print { .an-a11y, .an-cookie { display: none !important; } }

/* Cadrage : par défaut on garde le haut de l'image (la tête), le data-focal précise ensuite. */
img { object-position: 50% 25%; }
