/* ==========================================================================
   L’Abordage Studio : page d’attente
   ========================================================================== */

/* --- Polices ------------------------------------------------------------- */

@font-face {
  font-family: "Baste";
  src: url("assets/fonts/BasteA-Regular.otf");
  font-display: swap;
}

@font-face {
  font-family: "Sentient";
  src: url("assets/fonts/Sentient-Italic.otf");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Sentient";
  src: url("assets/fonts/Sentient-MediumItalic.otf");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Sentient";
  src: url("assets/fonts/Sentient-BoldItalic.otf");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Greed";
  src: url("assets/fonts/GreedStandard-TRIAL-Medium.otf");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Greed";
  src: url("assets/fonts/GreedStandard-TRIAL-Bold.otf");
  font-weight: 700;
  font-display: swap;
}

/* --- Variables ----------------------------------------------------------- */

:root {
  --cream: #fff9eb;
  --green: #6db093;
  --blue: #aac2e7;
  --lilac: #ccc7ff;
  --yellow: #f4ef66;
  --pink: #f1c4dc;
  --orange: #fb7a4d;
  --brown: #936859;
  --ink: #141210;

  --font-sans: "Greed", system-ui, sans-serif;
  --font-serif: "Sentient", Georgia, serif;
  --font-display: "Baste", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 22px;
  --max-width: 1120px;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  font-kerning: normal;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

/* --- Couleurs de fond ---------------------------------------------------- */

.bg-blue   { background: var(--blue); }
.bg-pink   { background: var(--pink); }
.bg-yellow { background: var(--yellow); }
.bg-lilac  { background: var(--lilac); }
.bg-green  { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-brown  { background: var(--brown); color: var(--cream); }

/* --- Composants ---------------------------------------------------------- */

/* Boutons à contour. La couleur de survol (--hover) est choisie par script.js. */
.btn,
.social a,
.links a {
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover,
.social a:hover {
  background: var(--hover, var(--ink));
  color: var(--ink);
}

/* Pastilles */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chips li {
  padding: 0.3rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: 999px;
}

/* Titres de section dans une pastille à contour */
.pill-title {
  display: inline-block;
  padding: 0.327em 0.636em 0.128em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

/* --- En-tête ------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 2rem 1.15rem 1rem;
  background: var(--cream);
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 3.6rem;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.btn {
  padding: 0.4rem 1.05rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter);
  font-size: 1.125rem;
  color: var(--cream);
  background: var(--brown);
}

.banner em {
  font-weight: 500;
}

.dot {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

/* --- Blocs image / texte (accueil et conviction) -------------------------- */

.hero,
.conviction {
  position: relative;
}

.cover {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.hero .cover {
  right: 0;
}

.conviction .cover {
  left: 0;
}

/* --- Accueil ------------------------------------------------------------- */

/* Au-delà de 1440 px, textes et marges grandissent avec l’écran,
   pour que le bloc garde les mêmes proportions que sur le design. */
.hero {
  display: flex;
  align-items: center;
  min-height: 24.7vw;
  background: var(--green);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 2.2vw, 5rem);
  width: 50%;
  padding: clamp(2rem, 3.33vw, 8rem) clamp(1.5rem, 3.33vw, 8rem) clamp(2rem, 3.33vw, 8rem) clamp(1.5rem, 7.5vw, 16rem);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.78vw, 6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  text-wrap: wrap;
}

.hero h1 em {
  color: var(--cream);
}

.hero .chips li {
  padding: 0.55rem 1.5rem;
  font-size: clamp(1.05rem, 0.9rem + 0.55vw, 1.5rem);
}

/* --- Notre conviction ---------------------------------------------------- */

.conviction {
  background: var(--cream);
}

.conviction-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
  margin-left: 50%;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3.5rem);
}

.quote {
  margin-top: clamp(1.25rem, 2.2vw, 2rem);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: clamp(1.25rem, 2.2vw, 2rem);
}

.note {
  max-width: 40rem;
  padding: 1.25rem 1.75rem;
  font-size: clamp(1.05rem, 0.35rem + 1vw, 1.5rem);
  line-height: 1.35;
  border-radius: var(--radius);
}

/* --- Pour qui ? ---------------------------------------------------------- */

.publics {
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  background: var(--blue);
}

.chip-rows {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: clamp(1.75rem, 3.2vw, 3rem) 0 clamp(1.5rem, 2.6vw, 2.5rem);
}

.chips.big {
  justify-content: space-between;
  gap: 1rem 2rem;
}

.chips.big:nth-child(1) {
  padding-inline: 3.5rem 1.5rem;
}

.chips.big:nth-child(2) {
  padding-inline: 0 1.5rem;
}

.chips.big li {
  padding: 0.55rem 1.5rem;
  font-size: clamp(1.05rem, 0.9rem + 0.55vw, 1.5rem);
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.photos img {
  width: 100%;
  aspect-ratio: 1.09;
  object-fit: cover;
  border-radius: 18px;
}

/* --- Le studio ----------------------------------------------------------- */

.studio {
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}

.studio .pill-title {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

.person {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.35rem 1.6rem;
  border-radius: var(--radius);
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1.4rem;
  object-fit: cover;
  border-radius: 18px;
  filter: grayscale(1);
}

.person h3 {
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.role {
  margin: 0.35rem 0 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.person p:last-of-type {
  max-width: 24rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.4rem;
}

.social a {
  padding: 0.1rem 0.65rem;
  font-size: 0.875rem;
}

/* Partenaires */
.partners {
  max-width: var(--max-width);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 2rem 2rem 0;
  border-top: 1.5px solid var(--ink);
}

.partners p {
  font-size: 0.8125rem;
  font-weight: 700;
}

.partners ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 4.5rem;
  margin-top: 0.75rem;
}

.partners a {
  display: block;
  transition: opacity 0.2s;
}

.partners a:hover {
  opacity: 0.7;
}

.partners img {
  width: auto;
  height: 7.25rem;
}

/* Le logo d’Artenréel est un JPEG à fond blanc : on le fond dans la page. */
.partners .logo-artenreel {
  mix-blend-mode: multiply;
}

/* --- Pied de page -------------------------------------------------------- */

.footer {
  color: var(--cream);
  background: var(--brown);
}

.footer .inner {
  padding: 1.5rem var(--gutter);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.links a {
  padding: 0.4rem 1.2rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  border-color: var(--cream);
}

.links a:hover {
  color: var(--ink);
  background: var(--hover, var(--cream));
  border-color: var(--hover, var(--cream));
}

/* Visible seulement sur mobile, où le bouton de l’en-tête est masqué */
.links-mobile {
  display: none;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.875rem;
  border-top: 1px solid #fff9eb99;
}

/* --- Tablette et mobile -------------------------------------------------- */

@media (max-width: 900px) {
  .hero,
  .conviction {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text,
  .conviction-text {
    width: 100%;
    margin-left: 0;
  }

  .hero-text {
    padding: 3rem var(--gutter);
  }

  .conviction-text {
    padding: 2.5rem var(--gutter) 3rem;
  }

  /* L’image passe sous le texte */
  .cover {
    position: static;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .duo {
    grid-template-columns: 1fr;
  }

  .chips.big:nth-child(n) {
    justify-content: flex-start;
    padding-inline: 0;
  }
}

@media (max-width: 640px) {
  .top {
    padding: 1rem var(--gutter);
  }

  .brand img {
    height: 2.6rem;
  }

  .top nav a:nth-child(-n + 2) {
    display: none;
  }

  .links-mobile {
    display: block;
  }

  .btn {
    padding: 0.3rem 0.85rem;
    font-size: 1rem;
  }

  .photos {
    grid-template-columns: 1fr 1fr;
  }

  .photos img:last-child {
    display: none;
  }

  .partners {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
