/*
Theme Name: Kitecamp Martinique
Theme URI: https://kitecamp-martinique.com
Author: Kitecamp Martinique
Description: Thème éditorial autonome pour les voyages actifs en Martinique et dans les Caraïbes.
Version: 1.1.1
Text Domain: kitecamp-martinique
Requires at least: 6.2
Requires PHP: 8.0
*/

:root {
  --ink: #12383d;
  --ink-deep: #082f35;
  --teal: #0b5d66;
  --sea: #178995;
  --lagoon: #d8f1ec;
  --coral: #e87455;
  --sun: #f2b84b;
  --sand: #f5ead7;
  --cream: #fffaf0;
  --white: #fffefb;
  --muted: #5e7475;
  --line: rgba(8, 63, 70, .15);
  --shadow: 0 24px 65px rgba(8, 47, 53, .13);
  --radius: 24px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.7; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--ink-deep); font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 6.8vw, 5.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
.site-shell { width: var(--shell); margin-inline: auto; }
.eyebrow { margin-bottom: .9rem; color: var(--coral); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; background: #fff; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 250, 240, .94); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: clamp(190px, 19vw, 245px); max-height: 58px; object-fit: contain; object-position: left center; }
.primary-menu ul { display: flex; align-items: center; gap: 22px; padding: 0; margin: 0; list-style: none; }
.primary-menu a { color: var(--ink-deep); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--coral); }
.menu-toggle { display: none; padding: 10px 14px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); background: transparent; font: inherit; font-weight: 800; }

.hero { position: relative; min-height: 710px; overflow: hidden; color: var(--white); background: linear-gradient(135deg, #083f46 0%, #0b6870 56%, #13939b 100%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { position: absolute; z-index: 1; inset: 0; content: ''; background: linear-gradient(90deg, rgba(4,35,40,.88) 0%, rgba(4,35,40,.66) 48%, rgba(4,35,40,.18) 78%, rgba(4,35,40,.28) 100%), linear-gradient(0deg, rgba(4,35,40,.3), transparent 45%); }
.hero::after { position: absolute; right: -8vw; bottom: -18vw; width: 58vw; height: 58vw; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; content: ''; box-shadow: 0 0 0 55px rgba(255,255,255,.04), 0 0 0 130px rgba(255,255,255,.025); }
.hero-grid { position: relative; z-index: 1; display: grid; min-height: 710px; grid-template-columns: minmax(0, 820px); align-items: center; padding-block: 90px; }
.hero h1 { max-width: 800px; color: var(--white); }
.hero-copy > p:not(.eyebrow) { max-width: 690px; color: rgba(255,255,255,.86); font-size: 1.17rem; }
.hero .eyebrow { color: #ffd47e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--coral); border-radius: 999px; color: #fff; background: var(--coral); font-weight: 800; text-decoration: none; }
.button:hover { color: var(--ink-deep); background: var(--sun); border-color: var(--sun); }
.button-secondary { border-color: rgba(255,255,255,.55); background: transparent; }

.section { padding-block: 92px; }
.section-sand { background: var(--cream); }
.section-lagoon { background: var(--lagoon); }
.section-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.topic-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.topic-card { position: relative; display: flex; min-height: 350px; flex-direction: column; justify-content: flex-end; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: #fff; background: var(--ink-deep); box-shadow: 0 14px 40px rgba(8,47,53,.12); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { color: #fff; transform: translateY(-5px); box-shadow: var(--shadow); }
.topic-card:nth-child(1), .topic-card:nth-child(2) { grid-column: span 6; }
.topic-card:nth-child(n+3) { grid-column: span 4; min-height: 310px; }
.topic-card::before { position: absolute; z-index: 1; inset: 0; content: ''; background: linear-gradient(0deg, rgba(4,35,40,.94) 0%, rgba(4,35,40,.52) 48%, rgba(4,35,40,.04) 78%); }
.topic-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.topic-card:hover .topic-card-image { transform: scale(1.035); }
.topic-number { position: relative; z-index: 1; color: var(--coral); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
.topic-card h3, .topic-card p { position: relative; z-index: 1; }
.topic-card h3 { color: #fff; }
.topic-card p { margin: 0; color: rgba(255,255,255,.82); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card p { color: var(--muted); }
.post-meta { margin-bottom: 13px; color: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.read-more { font-weight: 800; text-decoration: none; }

.about-strip { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; align-items: center; gap: 70px; }
.about-portrait { position: relative; }
.about-portrait img { display: block; aspect-ratio: 4/3; border-radius: 48% 52% 20px 20px; object-fit: cover; box-shadow: var(--shadow); }
.about-portrait::after { position: absolute; right: -18px; bottom: -18px; width: 40%; height: 40%; border-right: 8px solid var(--sun); border-bottom: 8px solid var(--sun); border-radius: 0 0 24px; content: ''; }
.about-copy .signature { color: var(--coral); font-family: Georgia, serif; font-size: 1.35rem; font-style: italic; }

.author-profile-hero { padding-block: 70px; background: var(--ink-deep); color: rgba(255,255,255,.84); }
.author-profile-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: 54px; }
.author-profile-photo { position: relative; min-height: 580px; overflow: hidden; border-radius: 28px 90px 28px 28px; }
.author-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-profile-photo span { position: absolute; right: 20px; bottom: 20px; max-width: 260px; padding: 12px 16px; border-radius: 14px; color: var(--ink-deep); background: rgba(255,250,240,.94); font-size: .82rem; font-weight: 800; }
.author-profile-copy { display: flex; flex-direction: column; justify-content: center; }
.author-profile-copy h1 { color: #fff; }
.author-profile-copy > p:not(.eyebrow) { max-width: 620px; font-size: 1.12rem; }
.author-profile-copy .eyebrow { color: #ffd47e; }
.author-role { margin-top: -.4rem; color: #ffd47e; font-family: Georgia, serif; font-size: 1.35rem !important; }
.author-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.author-fact { padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.06); }
.author-fact-wide { grid-column: 1 / -1; }
.author-fact span { display: block; margin-bottom: 4px; color: #ffd47e; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.author-fact strong { color: #fff; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.decision-card { position: relative; padding: 32px 28px; border-top: 5px solid var(--coral); border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 18px 45px rgba(8,47,53,.08); }
.method-route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 42px; }
.method-route::before { position: absolute; top: 25px; right: 12%; left: 12%; height: 2px; content: ''; background: linear-gradient(90deg, var(--sun), var(--coral), var(--sea)); }
.method-stop { position: relative; padding-top: 62px; }
.method-stop::before { position: absolute; z-index: 1; top: 12px; left: 0; width: 26px; height: 26px; border: 7px solid var(--cream); border-radius: 50%; content: ''; background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.editorial-promise { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; padding: 44px; border-radius: 28px; color: rgba(255,255,255,.82); background: var(--teal); }
.editorial-promise h2 { color: #fff; }
.editorial-promise ul { padding-left: 20px; margin: 0; }
.editorial-promise li { margin-bottom: .75rem; }

.page-hero { padding-block: 88px 70px; background: linear-gradient(160deg, var(--cream), #edf8f5); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.content-shell { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.wide-shell { width: var(--shell); margin-inline: auto; }
.prose { padding-block: 70px 100px; font-size: 1.04rem; }
.prose h2 { margin-top: 1.55em; font-size: 2.1rem; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose blockquote { margin: 2em 0; padding: 24px 30px; border-left: 5px solid var(--coral); background: var(--cream); font-family: Georgia, serif; font-size: 1.25rem; }
.article-header { padding-block: 80px 45px; }
.article-header h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); }
.article-meta { color: var(--muted); }
.article-content { padding-bottom: 100px; }
.article-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.article-content > .alignwide { max-width: 1100px; }
.article-content img { border-radius: 18px; }
.author-card { display: grid; max-width: 820px; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px; margin: 30px auto 100px; border-radius: 22px; background: var(--cream); }
.author-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }

.hub-intro { display: grid; grid-template-columns: minmax(0, 820px); }
.hub-visual-hero { position: relative; min-height: 570px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ink-deep); }
.hub-banner-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-visual-hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, rgba(4,35,40,.92) 0%, rgba(4,35,40,.38) 60%, rgba(4,35,40,.12) 100%); }
.hub-visual-hero .hub-intro { position: relative; z-index: 1; width: var(--shell); margin-inline: auto; padding-block: 72px; align-items: end; }
.hub-visual-hero h1 { color: #fff; }
.hub-visual-hero .hub-lead { max-width: 720px; color: rgba(255,255,255,.86); font-size: 1.12rem; }
.hub-visual-hero .eyebrow { color: #ffd47e; }
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 13px; border-radius: 999px; background: var(--cream); text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--teal); }

.contact-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 65px; }
.contact-card { padding: 30px; border-radius: 24px; background: var(--lagoon); }
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font: inherit; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(23,137,149,.2); border-color: var(--sea); }
.contact-form .button { width: fit-content; border: 0; cursor: pointer; }
.form-note { color: var(--muted); font-size: .88rem; }
.site-map-dynamic { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.site-map-dynamic ul { columns: 2; }
.error-page { display: grid; min-height: 62vh; place-items: center; text-align: center; }

.site-footer { color: rgba(255,255,255,.82); background: var(--ink-deep); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 60px; padding-block: 62px; }
.footer-brand { width: 230px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h2 { color: #fff; font-family: Arial, sans-serif; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #ffd47e; }
.footer-bottom { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-menu { position: fixed; inset: 72px 0 auto; display: none; max-height: calc(100vh - 72px); overflow: auto; padding: 25px; background: var(--cream); box-shadow: var(--shadow); }
  .primary-menu.is-open { display: block; }
  .primary-menu ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .primary-menu a { font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .topic-card:nth-child(n) { grid-column: span 6; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .about-strip, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .author-profile-grid, .editorial-promise { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .brand img { width: 178px; max-height: 50px; }
  .header-inner { min-height: 64px; }
  .menu-toggle { min-width: 58px; min-height: 44px; padding: 8px 13px; }
  .primary-menu { inset-block-start: 64px; max-height: calc(100vh - 64px); }
  .hero, .hero-grid { min-height: min(720px, calc(100svh - 64px)); }
  .hero-grid { padding-block: 52px; align-items: end; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.25rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
  .hub-visual-hero { min-height: 520px; }
  .hub-visual-hero .hub-intro { padding-block: 48px; }
  .hub-visual-hero h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .hub-visual-hero .hub-lead { font-size: 1rem; }
  .section { padding-block: 65px; }
  .section-heading, .hub-intro { grid-template-columns: 1fr; gap: 12px; }
  .topic-card:nth-child(n) { grid-column: 1 / -1; min-height: 235px; }
  .post-grid { grid-template-columns: 1fr; }
  .about-portrait::after { right: -8px; bottom: -8px; }
  .author-profile-photo { min-height: 430px; border-radius: 22px 58px 22px 22px; }
  .author-facts, .method-route { grid-template-columns: 1fr; }
  .author-fact-wide { grid-column: auto; }
  .method-route { gap: 18px; }
  .method-route::before { top: 0; right: auto; bottom: 0; left: 12px; width: 2px; height: auto; }
  .method-stop { padding: 0 0 0 50px; }
  .method-stop::before { top: 0; }
  .editorial-promise { padding: 30px 24px; gap: 18px; }
  .author-card { grid-template-columns: 78px 1fr; }
  .author-card img { width: 78px; height: 78px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: auto; }
  .site-map-dynamic ul { columns: 1; }
  .prose table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
