/*
Theme Name: Thalassea Yachting
Description: Site vitrine du catamaran Go With The Flow, au départ de Hyères.
Version: 1.3.0
Requires at least: 6.6
Text Domain: thalassea-yachting
*/

:root {
  --night: #082633;
  --teal: #086773;
  --gold: #f5ce50;
  --paper: #fcfaf3;
  --sand: #f0ebdd;
  --text: #314f56;
  --line: #cbd5cc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--night); font-family: var(--sans); }
.wp-site-blocks > *, .thalassea-site > *, .thalassea-site figure, .thalassea-site p, .thalassea-site h1, .thalassea-site h2, .thalassea-site h3, .thalassea-site .wp-block-buttons { margin: 0; }
.thalassea-site :is(h1,h2,h3) { font-family: var(--serif); font-weight: 400; }
.thalassea-site a { text-underline-offset: .22em; }
.thalassea-site a:focus-visible { outline: 3px solid #16869b; outline-offset: 5px; }
.thalassea-site img { max-width: 100%; display: block; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.thalassea-site .site-header { background: var(--paper); }
.header-inner, .footer-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo img, .footer-logo img { width: 49px; height: 49px; border-radius: 50%; object-fit: cover; }
.wordmark { display: flex; align-items: center; gap: 12px; }
.thalassea-site .brand-name { font: 400 1.38rem/1 var(--serif); white-space: nowrap; }
.brand-name a, .nav-links a { color: inherit; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(15px, 2.25vw, 34px); }
.nav-links p { font-size: .9rem; font-weight: 600; }
.nav-links a:hover, .brand-name a:hover { text-decoration: underline; }
.thalassea-site .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; border-radius: 4px; padding: .8rem 1.2rem; border: 1px solid transparent; font: 700 .88rem/1.35 var(--sans); letter-spacing: .005em; text-decoration: none; background: var(--gold); color: var(--night); }
.thalassea-site .wp-block-button__link:hover { background: #ffe284; color: var(--night); }
.thalassea-site .header-booking .wp-block-button__link { min-height: 42px; background: transparent; border-color: #7c9692; }
.thalassea-site .header-booking .wp-block-button__link:hover { background: var(--sand); }
.hero { min-height: min(660px, 75svh); background: #093d4f; color: white; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; }
.hero-media, .hero-media img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 61%; }
.hero .hero-media { z-index: -2; right: 0; left: auto; width: 76%; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg,#082633 17%,#082633ed 28%,#08263387 48%,#08263300 70%); }
.hero-copy { padding-block: 104px 119px; }
.thalassea-site .eyebrow { font: 750 .72rem/1.4 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow, .booking .eyebrow { color: #ffe18b; }
.thalassea-site .hero h1 { font-size: clamp(4rem, 7.7vw, 7.9rem); line-height: .91; letter-spacing: -.068em; margin-block: 26px 23px; }
.hero h1 em { color: #fff0bd; font-weight: 400; }
.thalassea-site .hero-intro { max-width: 31rem; font: 400 clamp(1.03rem, 1.65vw, 1.25rem)/1.58 var(--sans); margin-block-end: 29px; }
.thalassea-site .stats { background: var(--night); color: white; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 24px; }
.stat { padding: 8px 20px 8px 25px; border-left: 1px solid #ffffff37; }
.stat:first-child { border: none; padding-left: 0; }
.thalassea-site .stat-value { font: 400 clamp(1.5rem, 2.8vw, 2.35rem)/1.04 var(--serif); }
.thalassea-site .stat-label { margin-top: 7px; color: #b9d1d2; font-size: .81rem; }
.content-section { padding-block: 94px; }
.section-title { max-width: 14ch; }
.thalassea-site .section-title, .thalassea-site .booking h2 { font-size: clamp(2.75rem, 5.6vw, 5.05rem); line-height: .97; letter-spacing: -.055em; margin-top: 13px; }
.content-section .eyebrow { color: var(--teal); }
.boat-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px,7vw,105px); align-items: start; }
.thalassea-site .boat-copy > p, .thalassea-site .region-intro { font-size: 1.06rem; color: var(--text); line-height: 1.65; margin-bottom: 21px; }
.thalassea-site .boat-copy > p:last-of-type { margin-bottom: 0; }
.boat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 30px 0 0; padding: 0; }
.boat-list li { list-style: none; padding: 10px 0; color: var(--text); border-top: 1px solid var(--line); font-size: .88rem; }
.thalassea-site .region { background: var(--sand); }
.region-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 38px; margin-bottom: 46px; }
.thalassea-site .region-intro { margin: 0; max-width: 38rem; }
.region-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.escale { border-top: 2px solid #47958d; padding: 20px 0 0; }
.thalassea-site .escale h3 { font-size: clamp(1.65rem,2.8vw,2.35rem); letter-spacing: -.045em; line-height: 1.1; margin-bottom: 10px; }
.thalassea-site .escale p { color: var(--text); font-size: .94rem; line-height: 1.6; max-width: 31ch; }
.thalassea-site .navigation-note { margin-top: 31px; color: var(--text); font-size: .84rem; line-height: 1.5; }
.navigation-note a { color: var(--teal); }
.thalassea-site .booking { background: #0a4350; color: white; padding-block: 76px; }
.booking-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.thalassea-site .booking-copy > p { margin-bottom: 22px; max-width: 34rem; line-height: 1.63; }
.thalassea-site .booking-copy .agency-site { font-size: .8rem; margin-top: 11px; margin-bottom: 0; color: #d5e8e5; }
.site-footer { background: var(--night); color: #ebf2ed; }
.footer-inner { min-height: 86px; }
.thalassea-site .footer-copy { font-size: .82rem; color: #bdd4d2; }
@media (max-width: 800px) {
  .wrap { width: min(100% - 44px,1184px); }
  .nav-links { display: none; }
  .hero-copy { padding-block: 95px 105px; }
  .hero { min-height: 500px; }
  .content-section { padding-block: 68px; }
  .boat-grid, .region-head, .booking-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 525px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 70px; gap: 8px; }
  .wordmark { gap: 7px; }
  .header-logo img, .footer-logo img { width: 37px; height: 37px; }
  .thalassea-site .brand-name { font-size: 1.05rem; }
  .thalassea-site .header-booking .wp-block-button__link { font-size: .75rem; padding-inline: .64rem; }
  .hero { min-height: 480px; }
  .thalassea-site .hero h1 { font-size: clamp(3.45rem, 13vw, 5.3rem); }
  .stat-grid { grid-template-columns: repeat(2,1fr); row-gap: 17px; }
  .stat:nth-child(3) { border: none; padding-left: 0; }
  .region-cards { grid-template-columns: 1fr; gap: 22px; }
  .thalassea-site .escale p { max-width: none; }
  .footer-inner { flex-wrap: wrap; row-gap: 9px; padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 360px) {
  .thalassea-site .brand-name { font-size: .94rem; }
  .header-logo img { width: 32px; height: 32px; }
  .thalassea-site .header-booking .wp-block-button__link { font-size: .7rem; padding-inline: .52rem; }
}

.thalassea-site .photo-gallery { background: #eaf0eb; }
.photo-gallery .section-title { max-width: none; }
.gallery-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px, .3fr); align-items: start; gap: 24px; margin-top: 36px; }
.gallery-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
.thalassea-site .gallery-image { min-width: 0; }
.gallery-image a { display: block; overflow: hidden; border-radius: 4px; background: white; cursor: zoom-in; }
.gallery-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-plan img { aspect-ratio: 3 / 4; object-fit: contain; padding: 8px 12px; }
.thalassea-site .gallery-image figcaption { margin: 7px 0 0; color: var(--text); font: 600 .84rem/1.42 var(--sans); text-align: left; }
.photo-dialog { max-width: min(940px, calc(100% - 26px)); max-height: 94vh; padding: 42px 15px 14px; color: white; background: var(--night); border: 0; border-radius: 8px; }
.photo-dialog::backdrop { background: #03151de0; }
.photo-dialog img { display: block; max-width: 100%; max-height: 76vh; margin: auto; object-fit: contain; }
.photo-dialog p { margin: 8px 0 0; font: .875rem/1.4 var(--sans); color: #dce9e5; }
.photo-dialog button { position: absolute; inset: 6px 9px auto auto; min-height: 30px; color: white; background: transparent; border: 1px solid #92a9a7; border-radius: 3px; padding: 3px 9px; cursor: pointer; }
@media (max-width: 950px) {
  .gallery-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 525px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: var(--night); }
  .hero .hero-media { position: relative; z-index: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .hero .hero-media img { object-position: center 58%; }
  .hero::after { display: none; }
  .hero-copy { padding-block: 30px 39px; }
  .thalassea-site .hero h1 { margin-block: 15px 17px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .gallery-plan { width: min(64%, 260px); margin-inline: auto !important; }
  .thalassea-site .gallery-image figcaption { font-size: .75rem; }
}

.thalassea-site .trip-guide { background: var(--paper); }
.trip-guide .section-title { max-width: 18ch; }
.trip-guide .region-head { margin-bottom: 30px; }
.map-figure a { display: block; overflow: hidden; border: 1px solid #b8d0c9; border-radius: 5px; cursor: zoom-in; }
.map-figure img { width: 100%; height: auto; }
.thalassea-site .map-figure figcaption { margin: 9px 0 0; color: var(--text); font-size: .82rem; }
.thalassea-site .route-heading { font-size: clamp(1.85rem,3.7vw,3rem); line-height: 1.12; margin-block: 46px 16px; letter-spacing: -.035em; }
.tourist-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.tourist-card { background: white; border: 1px solid #d6ded3; border-radius: 5px; padding: 20px; }
.tourist-card.base-stop { border-color: #bfa759; background: #fff9e8; }
.thalassea-site .tourist-card h3 { margin: 8px 0; font-size: clamp(1.34rem,2vw,1.7rem); line-height: 1.12; }
.thalassea-site .tourist-card p, .thalassea-site .route-note p { color: var(--text); line-height: 1.55; font-size: .89rem; }
.thalassea-site .tourist-card .escale-kicker { color: var(--teal); font-size: .71rem; font-weight: 700; }
.thalassea-site .tourist-card .escale-info { margin-top: 12px; font-weight: 600; }
.escale-info a, .route-note a { color: var(--teal); }
.route-note { margin-top: 25px; padding: 20px; border-left: 3px solid #47958d; background: #eaf0eb; }
.thalassea-site .route-note h3 { font-size: 1.38rem; margin-bottom: 8px; }
.thalassea-site .route-note p + p { margin-top: 5px; }
@media (max-width: 800px) { .tourist-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 525px) { .tourist-grid { grid-template-columns: 1fr; } }

.thalassea-site .contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 7vw, 100px); align-items: start; }
.thalassea-site .contact .section-title { margin-top: 0; }
.thalassea-site .contact-intro { font-size: 1.06rem; line-height: 1.6; color: var(--text); margin: 18px 0 10px; }
.contact-email a { color: var(--teal); overflow-wrap: anywhere; }
.contact-fields { min-width: 0; }
.contact-form { display: grid; gap: 17px; }
.contact-field { display: grid; gap: 6px; }
.contact-field label { font-size: .87rem; font-weight: 700; }
.contact-field :is(input,textarea) { width: 100%; min-width: 0; border: 1px solid #809590; border-radius: 4px; padding: 11px 12px; background: white; color: var(--night); font: 1rem/1.45 var(--sans); }
.contact-field textarea { resize: vertical; min-height: 118px; }
.contact-field :is(input,textarea):focus-visible, .contact-form button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form button { justify-self: start; cursor: pointer; }
.thalassea-site .contact-form button:disabled { cursor: default; opacity: .65; }
.thalassea-site .contact-notice { background: #e4eeea; border-left: 3px solid #47958d; color: var(--night); font-size: .9rem; line-height: 1.5; padding: 10px 13px; margin: 0 0 17px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
