/* cdizign.com
   Palette : la mer devant Menton (encre, mer, lagon, écume) et un abricot doux,
   dérivé de l'orange du logo d'origine. Pour changer l'accent : --accent ci-dessous.
   Typo : Bricolage Grotesque (titres, largeur resserrée) + Instrument Sans (texte). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0e2238;
  --sea: #17587a;
  --lagoon: #3d9db3;
  --foam: #e4eef1;
  --mist: #edf3f5;
  --paper: #f7f9fa;
  --white: #fff;
  --accent: #e59a5c;
  --accent-deep: #d98646;
  --text: #1a2a3a;
  --muted: #50627a;
  --rule: rgb(14 34 56 / 0.14);
  --error: #a3271c;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 73.75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 0.625rem;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sea);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

/* ---------- boutons et liens ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.site-header__cta {
  white-space: nowrap;
}

.btn--line {
  background: transparent;
  border-color: rgb(255 255 255 / 0.75);
  color: var(--white);
}

.btn--line:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link {
  font-weight: 600;
}

/* ---------- en-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(247 249 250 / 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  font: 700 1.5rem/1 var(--display);
  font-stretch: 88%;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand__c {
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  padding-bottom: 0.08em;
  border-radius: 0.3em;
  background: var(--accent);
  color: var(--ink);
}

.brand--light {
  color: var(--white);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--foam);
  color: var(--ink);
}

.lang ul {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang a {
  display: block;
  padding: 0.4rem 0.55rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.lang a:hover {
  background: var(--foam);
  color: var(--ink);
}

.lang a[aria-current] {
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 70.99em) {
  :root {
    --header: 6.75rem;
  }

  .site-header__in {
    flex-wrap: wrap;
    padding-block: 0.6rem 0;
  }

  .brand {
    margin-right: auto;
  }

  .main-nav {
    order: 5;
    margin-inline: calc(-1 * var(--gutter));
    width: calc(100% + 2 * var(--gutter));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    padding: 0 calc(var(--gutter) - 0.7rem) 0.35rem;
    width: max-content;
  }
}

@media (max-width: 26em) {
  .site-header__cta {
    display: none;
  }
}

/* ---------- accueil : bannière ---------- */
/* Pour changer la photo : remplacer assets/img/banniere.webp (1600 px de large)
   et banniere-800.webp (800 px). Le voile bleu garde le texte lisible. */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(31rem, 76vh, 46rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--foam);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(14 34 56 / 0.9) 0%, rgb(14 34 56 / 0.72) 42%, rgb(14 34 56 / 0.22) 100%);
}

.hero__in {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 12.5ch;
  font-size: clamp(2.9rem, 1rem + 7.4vw, 6.125rem);
  font-stretch: 76%;
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero__lead {
  max-width: 35rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .btn--ghost {
  border-color: rgb(255 255 255 / 0.75);
  color: var(--white);
}

.hero .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.hero :focus-visible {
  outline-color: var(--accent);
}

.hero__prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.hero__prices dt {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero__prices dd {
  margin-top: 0.15rem;
  font: 700 clamp(1.5rem, 1rem + 2vw, 2.375rem) / 1.1 var(--display);
  font-stretch: 80%;
  color: var(--ink);
}

@media (max-width: 47.99em) {
  .hero::after {
    background: rgb(14 34 56 / 0.76);
  }

  .hero__prices {
    grid-template-columns: 1fr;
    padding-block: 0.5rem;
  }

  .hero__prices > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.8rem;
    border-top: 1px solid var(--rule);
  }

  .hero__prices > div:first-child {
    border-top: 0;
  }

  .hero__prices dd {
    margin: 0;
    font-size: 1.375rem;
    white-space: nowrap;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section);
}

.split__head p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 62em) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .split__head {
    position: sticky;
    top: calc(var(--header) + 2.5rem);
  }
}

/* ---------- services ---------- */

.services {
  border-top: 1px solid var(--rule);
}

.service {
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}

@media (min-width: 40em) {
  .service {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.ticks {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 1rem;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.48em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--sea);
  border-bottom: 2px solid var(--sea);
  rotate: -45deg;
}

.also {
  margin-top: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--foam);
}

.also__title {
  font-size: 1.375rem;
}

.also__list {
  display: grid;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}

@media (min-width: 40em) {
  .also__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.also__list h4 {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--ink);
}

.also__list p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- titre de section sur une ligne : titre à gauche, introduction à droite ---------- */

.head-row {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.head-row p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

@media (min-width: 60em) {
  .head-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    align-items: end;
  }
}

/* ---------- tarifs : trois formules côte à côte ---------- */

.offers {
  background: var(--ink);
  color: var(--foam);
}

.offers h2,
.offers h3 {
  color: var(--white);
}

.offers .head-row p {
  color: rgb(228 238 241 / 0.82);
}

.offers :focus-visible {
  outline-color: var(--accent);
}

.offers__grid {
  display: grid;
  border-top: 1px solid rgb(228 238 241 / 0.18);
}

.offer {
  display: flex;
  flex-direction: column;
  padding-block: 2.25rem;
  border-bottom: 1px solid rgb(228 238 241 / 0.18);
}

@media (min-width: 60em) {
  .offers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }

  .offer {
    padding: 0.5rem clamp(1.5rem, 3vw, 2.75rem);
    border-bottom: 0;
    border-left: 1px solid rgb(228 238 241 / 0.18);
  }

  .offer:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .offer:last-child {
    padding-right: 0;
  }
}

.offer h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
}

.offer__price {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  align-items: baseline;
  gap: 0.45rem;
  min-height: clamp(3.4rem, 5.6vw, 4.75rem);
  margin-top: 1rem;
  line-height: 1;
  color: var(--accent);
}

.offer__from {
  color: rgb(228 238 241 / 0.78);
  font-size: 1rem;
  font-weight: 500;
}

.offer__num {
  font: 750 clamp(3.4rem, 5.6vw, 4.75rem) / 1 var(--display);
  font-stretch: 86%;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.offer__num--quote {
  font-size: clamp(2.6rem, 4.3vw, 3.5rem);
}

.offer__lead {
  min-height: 3.2em;
  margin: 1.1rem 0 1.6rem;
  color: rgb(228 238 241 / 0.86);
}

.offer__label {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
}

.offer__list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.offer__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #e7f1f3;
}

.offer__list .ico {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.22em;
  color: var(--accent);
  stroke-width: 2.4;
}

.offer__cta {
  align-self: flex-start;
  margin-top: auto;
}

.offers__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(228 238 241 / 0.18);
  color: rgb(228 238 241 / 0.78);
  font-size: 0.9375rem;
}

.offers__foot p:first-child {
  color: var(--white);
  font-weight: 500;
}

/* ---------- réalisations ---------- */

.work {
  background: var(--mist);
}

.work__name {
  font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.25rem);
}

.work__place {
  margin: 0.35rem 0 1rem;
  color: var(--sea);
  font-weight: 600;
}

.feature p,
.site p,
.report p {
  max-width: 56ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1.5rem;
}

.tags li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 99rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.work__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

.work__link:hover {
  color: var(--sea);
}

.work__link .ico {
  width: 1.125rem;
  height: 1.125rem;
}

/* JustNow : trois écrans en éventail */

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 1px solid var(--rule);
  border-radius: 1.375rem;
  background: var(--white);
}

@media (min-width: 60em) {
  .feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.feature__phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  max-width: 37.5rem;
  margin-inline: auto;
  padding-inline: 4%;
}

.phone {
  overflow: hidden;
  border: 0.35rem solid var(--ink);
  border-radius: 1.4rem;
  background: var(--ink);
  box-shadow: 0 1.5rem 2.5rem -1.25rem rgb(14 34 56 / 0.55);
}

.phone img {
  width: 100%;
}

.phone:nth-child(1) {
  transform: translateX(14%) rotate(-6deg) scale(0.9);
}

.phone:nth-child(2) {
  position: relative;
  z-index: 1;
}

.phone:nth-child(3) {
  transform: translateX(-14%) rotate(6deg) scale(0.9);
}

/* Sites : deux fenêtres de navigateur côte à côte */

.sites {
  display: grid;
  gap: clamp(3rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 60em) {
  .sites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.browser {
  margin-bottom: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  background: var(--white);
  box-shadow: 0 1.5rem 3rem -1.75rem rgb(14 34 56 / 0.45);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  background: #f3f6f7;
}

.browser__bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #c9d4d9;
}

.browser__bar span {
  margin-left: 0.6rem;
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 99rem;
  background: var(--white);
  color: var(--muted);
  font-size: 0.75rem;
}

.browser img {
  width: 100%;
}

/* Audit SEO et performance */

.report {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 2px solid var(--ink);
}

@media (min-width: 60em) {
  .report {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

.report .work__name {
  margin-bottom: 1rem;
}

.report__text p + p {
  margin-top: 1.25rem;
}

.report__scores {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  background: var(--white);
}

.report__scores figcaption {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.report__scores strong {
  color: var(--ink);
  font-weight: 650;
}

.report__scores figcaption span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.report__scores ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 0.75rem;
}

@media (max-width: 30em) {
  .report__scores ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.report__scores li {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.ring {
  position: relative;
  display: block;
  width: min(5.25rem, 100%);
  aspect-ratio: 1;
}

.ring svg {
  width: 100%;
  height: 100%;
}

.ring__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #08663a;
  font: 700 clamp(1.05rem, 3.6vw, 1.4rem) / 1 var(--display);
  font-stretch: 92%;
}

.ring__label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.25;
}

/* ---------- à propos : image de marque en parallaxe ---------- */

.about {
  position: relative;
  overflow: hidden;
  background: #3c403f;
  color: var(--foam);
}

.about__bg {
  position: absolute;
  inset: 0;
}

/* L'image dépasse de 15 % en haut et en bas : main.js la fait glisser dans cette marge. */
.about__bg img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: 30% 50%;
  will-change: transform;
}

.about__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(14 34 56 / 0.05) 0%, rgb(14 34 56 / 0.5) 55%, rgb(14 34 56 / 0.6) 100%);
}

.about__in {
  position: relative;
  display: grid;
}

@media (min-width: 60em) {
  .about__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .about__text {
    grid-column: 2;
  }
}

.about__text {
  max-width: 40rem;
}

.about h2,
.about h3 {
  color: var(--white);
}

.about__text p {
  margin-top: 1.1rem;
  font-size: 1.125rem;
}

.about__text h3 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
}

.about__text h3 + p {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
}

.about__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(228 238 241 / 0.25);
}

.about__author img {
  flex: none;
  width: 5rem;
  height: 5rem;
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  object-fit: cover;
}

.about__author figcaption {
  font-size: 0.9688rem;
  line-height: 1.45;
}

.about__author strong {
  color: var(--white);
  font-size: 1.125rem;
}

@media (max-width: 59.99em) {
  .about__bg::after {
    background: rgb(14 34 56 / 0.48);
  }
}

/* ---------- questions ---------- */

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 1.15rem 2.75rem 1.15rem 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.95rem;
  height: 2px;
  background: var(--sea);
  transition: rotate 0.2s;
}

.faq summary::after {
  rotate: 90deg;
}

.faq details[open] summary::after {
  rotate: 0deg;
}

.faq details p {
  max-width: 40rem;
  padding-bottom: 1.4rem;
}

/* ---------- contact ---------- */

.contact {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.contact__in {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 62em) {
  .contact__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}

.contact__intro {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.form {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
}

.form__row {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 36em) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.9688rem;
  font-weight: 600;
}

.field__opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid rgb(14 34 56 / 0.32);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.field input,
.field textarea {
  scroll-margin-top: 3rem;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field ::placeholder {
  color: #6b7c90;
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--sea);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin-top: 0.35rem;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
}

.trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status:empty {
  display: none;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--foam);
  color: var(--ink);
  font-weight: 600;
}

.form__status[data-state="error"] {
  background: #fbe9e6;
  color: var(--error);
}

.form__privacy,
.form__noscript {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact__direct {
  align-self: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--foam);
}

.contact__direct h3 {
  font-size: 1.5rem;
}

.contact__direct dl {
  display: grid;
  gap: 1.1rem;
  margin-block: 1.25rem;
}

.contact__direct dt {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact__direct dd {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact__direct dd a[href^="tel"] {
  font: 700 1.625rem/1.2 var(--display);
  font-stretch: 80%;
  color: var(--ink);
  text-decoration: none;
}

/* ---------- bandeau de code : un éditeur où le code s'écrit tout seul ---------- */

.codeband {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: #0a1724 radial-gradient(ellipse 70% 90% at 50% 0%, rgb(61 157 179 / 0.18), transparent 70%);
}

.editor {
  max-width: 46rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgb(228 238 241 / 0.12);
  border-radius: 0.875rem;
  background: #0f2133;
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.6);
}

.editor__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgb(228 238 241 / 0.1);
  background: #0c1b2a;
}

.editor__bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgb(228 238 241 / 0.2);
}

.editor__bar i:first-child {
  background: var(--accent);
}

.editor__file,
.editor__code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
}

.editor__file {
  margin-left: 0.75rem;
  color: rgb(228 238 241 / 0.72);
  font-size: 0.8125rem;
}

/* Hauteur fixe de 10 lignes : la page ne bouge pas pendant la frappe. */
.editor__code {
  height: calc(10 * 1.75em + 2.75rem);
  margin: 0;
  padding: 1.25rem 0.75rem 1.5rem 0;
  overflow: hidden;
  color: #d7e3ea;
  font-size: clamp(0.7rem, 0.6rem + 0.5vw, 1rem);
  line-height: 1.75;
  counter-reset: ln;
}

.cl {
  display: block;
  min-height: 1.75em;
  white-space: pre;
}

.cl::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 2.2em;
  padding-right: 0.8em;
  text-align: right;
  color: rgb(228 238 241 / 0.28);
}

@media (max-width: 22.5em) {
  .editor__code {
    font-size: 0.62rem;
  }
}

@media (min-width: 40em) {
  .editor__code {
    padding-right: 1.25rem;
  }

  .cl::before {
    width: 3.5em;
    padding-right: 1.5em;
  }
}

.t-com {
  color: #7f98ab;
  font-style: italic;
}

.t-str {
  color: #f0b383;
}

.t-kw,
.t-tag {
  color: #7fcfe2;
}

.t-fn,
.t-var {
  color: #f3d58f;
}

.t-num {
  color: #f4a493;
}

.t-attr {
  color: #b4cdeb;
}

.t-type {
  color: #9fe3c9;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.2em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}

/* Pendant la frappe, le curseur reste allumé. */
.is-typing .caret {
  animation: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- pied de page : la mer, puis le bleu profond ---------- */

.ftr {
  position: relative;
  background: var(--paper);
  color: #dbe9ec;
}

.sea {
  position: relative;
  height: clamp(4.5rem, 11vw, 9.5rem);
  margin-top: -1px;
  overflow: hidden;
}

.sea__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  transform-origin: 50% 100%;
}

/* Quatre houles décalées : chaque tracé glisse d'une période complète, la boucle ne se voit pas. */
.sea__swell > use {
  animation: houle 22s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.sea__swell > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 9s;
}

.sea__swell > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 12s;
}

.sea__swell > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 15s;
}

.sea__swell > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 22s;
}

@keyframes houle {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* La mer monte quand on arrive en bas de page (navigateurs compatibles). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sea__svg {
      animation: maree linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    @keyframes maree {
      from {
        transform: scaleY(0.35);
      }

      to {
        transform: scaleY(1);
      }
    }
  }
}

.ftr__body {
  margin-top: -1px;
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: var(--ink);
}

.ftr :focus-visible {
  outline-color: var(--accent);
}

.ftr__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 40em) {
  .ftr__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .ftr__grid {
    grid-template-columns: 1.6fr 1fr 1.3fr 0.9fr;
  }
}

.ftr__brand p {
  max-width: 30ch;
  margin-top: 1.1rem;
  color: var(--white);
  font-size: 1.125rem;
  line-height: 1.45;
}

.ftr__h {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.0625rem;
  font-stretch: 95%;
  font-weight: 650;
  letter-spacing: 0;
}

.ftr ul {
  display: grid;
  gap: 0.55rem;
}

.ftr a {
  color: #dbe9ec;
  text-decoration: none;
}

.ftr a:hover {
  color: var(--white);
  text-decoration: underline;
}

.ftr a[aria-current] {
  color: var(--white);
  font-weight: 600;
}

.ftr .brand--light {
  color: var(--white);
}

.ftr .brand--light:hover {
  text-decoration: none;
}

.ftr__contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ftr__contact .ico {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--lagoon);
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(228 238 241 / 0.16);
  color: #a9c4cb;
  font-size: 0.875rem;
}

.ftr__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.ftr__bottom a {
  color: #c9dde2;
}

.ftr__tm {
  flex-basis: 100%;
  color: #8fb0b8;
  font-size: 0.8125rem;
}

/* ---------- pages de texte (mentions légales, 404) ---------- */

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  font-stretch: 78%;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.75rem;
}

.prose p {
  margin-top: 1rem;
}

/* ---------- préférences de l'utilisateur ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sea__swell > use,
  .caret {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .sea,
  .codeband,
  .hero__media,
  .about__bg,
  .form {
    display: none;
  }

  .hero,
  .hero *,
  .hero::after,
  .about,
  .about *,
  .offers,
  .offers *,
  .ftr__body,
  .ftr__body * {
    background: none !important;
    color: #000 !important;
  }
}
