/*
 * West Tide Studio — l'Atlantique.
 *
 * Une seule famille, Archivo, tenue de deux façons : large et penchée pour
 * les titres (l'écho du « WestTide » du logo), droite pour le texte.
 * Le bleu d'abysse porte les pages ; l'écume est le fond de lecture ; la
 * lumière du phare n'apparaît qu'aux endroits qui demandent le regard.
 */

:root {
  --abysse: #0b2a3c;     /* le large, la nuit */
  --houle: #1f5a73;      /* l'eau en mouvement */
  --ecume: #eaf1f2;      /* fond de lecture */
  --ardoise: #18303b;    /* texte */
  --galet: #4f6772;      /* texte secondaire */
  --phare: #f2b33d;      /* l'accent, rare */
  --trait: #c9d7db;      /* filets sur fond clair */

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ardoise);
  background: var(--ecume);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.05;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--phare);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Titre « WestTide » : large, penché, serré. */
.display {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--abysse);
  color: var(--ecume);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Le logo est noir : on le passe en blanc sur l'abysse. */
.logo-img {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.logo-fallback {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ecume);
}

/* En-tête posé sur le hero de l'accueil : transparent, il laisse voir la houle. */
.site-header--over {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
}

/* ------------------------------------------------------------------ */
/* Accueil — la houle                                                  */
/* ------------------------------------------------------------------ */

.swell-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ecume);
  background:
    radial-gradient(120% 80% at 85% 0%, #17465e 0%, transparent 60%),
    var(--abysse);
}

.swell-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.swell-hero-inner {
  position: relative;
  padding-top: 160px;
  padding-bottom: 96px;
  width: 100%;
}

.swell-hero h1 {
  font-size: clamp(48px, 9vw, 128px);
  max-width: 11ch;
  margin-bottom: 32px;
}

.swell-hero-lead {
  max-width: 40ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: #c4d6dc;
}

.coords {
  position: absolute;
  right: var(--gutter);
  bottom: 96px;
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #8fb0bc;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* L'arrivée : le titre monte de la houle, une seule fois. */
@media (prefers-reduced-motion: no-preference) {
  .swell-hero h1,
  .swell-hero-lead {
    animation: emerge 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .swell-hero-lead {
    animation-delay: 0.25s;
  }
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Accueil — les apps                                                  */
/* ------------------------------------------------------------------ */

.section {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  max-width: 18ch;
  margin-bottom: 56px;
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: 56px 0;
  border-top: 2px solid var(--ardoise);
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
}

.app-feature-mark {
  justify-self: center;
  width: 100%;
  max-width: 200px;
}

.app-feature-mark img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 85%;
}

.app-feature h3 {
  font-size: clamp(40px, 6vw, 80px);
  margin-bottom: 16px;
}

.app-feature p {
  max-width: 46ch;
  font-size: 19px;
  color: var(--galet);
}

.app-feature-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
  font-weight: 600;
  color: var(--ardoise);
}

.app-feature-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--phare);
  box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.3);
}

.app-feature-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--abysse);
  color: var(--ecume);
  font-weight: 600;
  transition: background 0.2s ease;
}

.app-feature:hover .app-feature-cta {
  background: var(--houle);
}

@media (prefers-reduced-motion: no-preference) {
  .app-feature:hover .app-feature-mark img {
    animation: bob 1.6s ease-in-out infinite;
  }
}

@keyframes bob {
  0%, 100% { transform: rotate(0) translateY(0); }
  30% { transform: rotate(-5deg) translateY(-6px); }
  70% { transform: rotate(4deg) translateY(-2px); }
}

/* ------------------------------------------------------------------ */
/* Accueil — le studio                                                 */
/* ------------------------------------------------------------------ */

.studio {
  position: relative;
  background: var(--houle);
  color: var(--ecume);
}

/* La vague qui sépare l'écume de la houle. */
.studio::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 48px;
  background: var(--ecume);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-120 18-240 26-360 14S840 4 720 10 480 40 360 38 120 16 0 24z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-120 18-240 26-360 14S840 4 720 10 480 40 360 38 120 16 0 24z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.studio h2 {
  font-size: clamp(32px, 4.4vw, 56px);
}

.studio p {
  max-width: 52ch;
  color: #d6e4e8;
}

.studio-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(234, 241, 242, 0.3);
}

.studio-facts li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(234, 241, 242, 0.3);
}

.studio-facts b {
  font-weight: 600;
  color: #a9cbd6;
}

/* ------------------------------------------------------------------ */
/* Accueil — contact                                                   */
/* ------------------------------------------------------------------ */

.contact {
  padding: 140px 0;
}

.contact h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 24px;
}

.contact-mail {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(22px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--abysse);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--phare), var(--phare)) 0 100% / 0 0.12em no-repeat;
  transition: background-size 0.35s ease;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  background-size: 100% 0.12em;
}

/* ------------------------------------------------------------------ */
/* Pages légales                                                       */
/* ------------------------------------------------------------------ */

.legal {
  padding: 72px 0 112px;
}

.legal-inner {
  max-width: 760px;
}

.legal .eyebrow {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--houle);
}

.legal h1 {
  font-style: italic;
  font-stretch: 125%;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.legal article {
  margin-bottom: 40px;
}

.legal article h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.legal article h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}

.legal article p,
.legal article ul {
  font-size: 16px;
  line-height: 1.7;
}

.legal article p {
  margin: 0;
}

.legal article p + p,
.legal article ul + p,
.legal article p + ul {
  margin-top: 12px;
}

.legal article ul {
  margin: 0;
  padding-left: 20px;
}

.legal article li + li {
  margin-top: 6px;
}

.legal article a {
  color: var(--houle);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Mentions légales : un texte long, en petits caractères, mais lisible
   (13 px) — la loi demande des informations « facilement accessibles ». */
.legal--dense article {
  margin-bottom: 24px;
}

.legal--dense article h2 {
  font-size: 16px;
}

.legal--dense article p,
.legal--dense article ul {
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */

.site-footer {
  padding: 40px 0;
  background: var(--abysse);
  color: #9fb7c0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.footer-legal,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal a,
.footer-social a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal a:hover,
.footer-social a:hover {
  color: var(--ecume);
}

/* ------------------------------------------------------------------ */
/* Petits écrans                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 820px) {
  .app-feature,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .app-feature-mark {
    max-width: 120px;
    justify-self: start;
  }

  .studio-facts li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 20px var(--gutter) 28px;
    background: var(--abysse);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .contact {
    padding: 96px 0;
  }

  .swell-hero-inner {
    padding-top: 128px;
    padding-bottom: 72px;
  }

  .coords {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
