/* Arrondi des grands blocs (sections grises, visuels des projets, cartes de prix) */
:root { --block-roundness: 18px; }
.grey-bloc { border-radius: var(--block-roundness); corner-shape: squircle; }

/* ==========================================================================
   Mage Studio · Sections de l'accueil
   1. Anneau 3D de logos clients
   2. Témoignages (liste dépliable)
   3. FAQ
   4. Footer
   ========================================================================== */

.mage-section {
  padding: 160px 20px;
}
.mage-section-title {
  margin: 0;
  text-align: center;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
/* Labels de section : pastille à bordure fine, petit losange qui pivote d'un quart de tour par seconde */
@media screen and (max-width: 479px) {
  .mage-section-title { font-size: 28px; }
}
.mage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 12px 5px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  font-size: 12px;
  line-height: 1.4;
  color: #ffffffb3;
}
.mage-eyebrow::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--white);
  transform: rotate(45deg);
  animation: eyebrow-turn 2s infinite;
}
/* Deux pas de 45° par cycle ; 135° équivaut à 45° pour un carré, la boucle ne saute pas */
@keyframes eyebrow-turn {
  0% { transform: rotate(45deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  30%, 50% { transform: rotate(90deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  80%, 100% { transform: rotate(135deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mage-eyebrow::before { animation: none; }
}

/* ---------- 2. Témoignages ---------- */
.mage-testimonials {
  max-width: 640px;
  margin: 0 auto;
}
.mage-testi {
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--dark-grey);
  transition: background .3s;
  corner-shape: squircle;
}
.mage-testi:hover { background: #1a1a1a; }
.mage-testi summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}
.mage-testi summary::-webkit-details-marker { display: none; }
.mage-testi-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
}
.mage-testi-avatar img,
.mage-testi-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mage-testi-who { flex: 1; min-width: 0; }
.mage-testi-name { font-size: 16px; line-height: 1.3; }
.mage-testi-role { font-size: 15px; line-height: 1.3; color: #ffffff80; }
.mage-testi-logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.mage-testi-quote {
  margin: 0;
  padding: 72px 18px 22px;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--white);
}
.mage-testi[open] { background: #1a1a1a; }

/* ---------- 3. FAQ ---------- */
.mage-faq {
  max-width: 600px;
  margin: 64px auto 0;
}
.mage-faq-item {
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--dark-grey);
  corner-shape: squircle;
}
.mage-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 22px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.mage-faq-item summary::-webkit-details-marker { display: none; }
.mage-faq-plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff1f;
  transition: background .3s, transform .4s cubic-bezier(.65, 0, .2, 1);
}
.mage-faq-plus::before,
.mage-faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--white);
}
.mage-faq-plus::after { transform: rotate(90deg); }
.mage-faq-item summary:hover .mage-faq-plus { background: #ffffff33; }
.mage-faq-item[open] .mage-faq-plus { transform: rotate(45deg); }
.mage-faq-item p {
  margin: 0;
  padding: 0 64px 20px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff99;
}

/* ---------- 4. Footer ---------- */
.mage-footer {
  padding: 0 20px 20px;
}
.mage-footer-inner {
  border-radius: var(--block-roundness);
  background: var(--dark-grey);
  overflow: hidden;
  corner-shape: squircle;
}
.mage-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 32px 0;
}
.mage-footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.mage-footer-icon img { width: 100%; height: 100%; display: block; }
.mage-footer-lead { font-size: 16px; line-height: 1.4; }
.mage-footer-sub {
  margin: 6px 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff80;
}
.mage-footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 440px;
  padding: 8px 8px 8px 20px;
  border-radius: 12px;
  background: #ffffff0f;
  color: #ffffff80 !important;
  font-size: 14px;
  text-decoration: none;
  transition: background .3s;
  corner-shape: squircle;
}
.mage-footer-contact:hover { background: #ffffff1a; }
.mage-footer-contact .btn { flex: none; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.mage-footer-col h3 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.mage-footer-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #ffffff80 !important;
  text-decoration: none;
  transition: color .3s;
}
.mage-footer-col a:hover { color: var(--white) !important; }
.mage-footer-copy {
  padding: 64px 32px 0;
  font-size: 14px;
  color: #ffffff66;
}
.mage-footer .footer-bottom { padding: 40px 20px 0; }

@media screen and (max-width: 991px) {
}

@media screen and (max-width: 767px) {
  .mage-section { padding: 112px 20px; }
  .mage-testi-quote { padding-top: 40px; font-size: 18px; }
  .mage-faq-item summary { font-size: 16px; }
  .mage-faq-item p { padding-right: 22px; }
  .mage-footer-grid { grid-template-columns: 1fr 1fr; padding: 32px 20px 0; }
  .mage-footer-grid > :first-child { grid-column: 1 / -1; }
  .mage-footer-copy { padding: 48px 20px 0; }
}


/* ---------- Réalisations (section Projects) ---------- */
.work-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 64px;
}
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}
.work-head-title { text-align: left; }
.work-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.work-item {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 56px;
  padding: 48px 0 72px;
  border-top: 1px solid var(--low-opacity-white);
}
/* Texte du projet : reste en haut de sa colonne, ne suit pas le scroll */
.work-sticky {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-tags li {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #ffffff26;
  font-size: 12px;
  line-height: 1.5;
  color: #ffffffb3;
}
.work-desc,
.work-outcome p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff99;
}
.work-outcome {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--low-opacity-white);
}
.work-label { font-size: 12px; color: var(--white); }

.work-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.work-shot {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  corner-shape: squircle;
  overflow: hidden;
  background: var(--dark-grey);
}
.work-shot.is-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.work-shots-4 .work-shot:not(.is-main) { aspect-ratio: 1; }
.work-shots-4 { grid-template-columns: 1fr 1fr 1fr; }
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media screen and (max-width: 991px) {
  .work-item { grid-template-columns: 1fr; gap: 28px; }
  .work-sticky { position: static; }
}
@media screen and (max-width: 767px) {
  .work-head { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 32px; }
  .work-title { font-size: 20px; }
  .work-item { padding: 32px 0 48px; }
  .work-shots, .work-shots-4 { grid-template-columns: 1fr 1fr; }
  .work-shots-4 .work-shot:not(.is-main) { aspect-ratio: 4 / 3; }
}

/* Bascule Grid / List */
.work-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-toggle button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff59;
  cursor: pointer;
  transition: color .3s;
}
.work-toggle button:hover { color: #ffffffa6; }
.work-toggle button.is-active { color: var(--white); }
.work-section[data-current="grid"] .work-list,
.work-section[data-current="list"] .work-grid { display: none; }

/* Vue liste : bouton vers le site */
.work-btn { align-self: flex-start; padding: 10px 16px; }

/* Vue grille : deux projets par ligne, tailles alternées */
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 8px;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--white) !important;
  text-decoration: none;
}
.work-card.is-wide { grid-column: span 3; }
.work-card.is-narrow { grid-column: span 2; }
.work-card.is-full { grid-column: 1 / -1; }
/* Emplacement libre : invite à réserver un appel */
a.work-card.is-empty { color: var(--white); text-decoration: none; }
.work-card.is-empty .work-card-media { background: none; box-shadow: inset 0 0 0 1px var(--low-opacity-white); transition: background .4s; }
.work-card.is-empty:hover .work-card-media { background: var(--dark-grey); }
.work-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.work-empty-text { font-size: 14px; color: #ffffff80; }
.work-card-media.is-video { cursor: default; }
.work-card-media video {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 48px);
  transform: translate(-50%, -50%);
  border-radius: 4px;
  corner-shape: squircle;
}
.work-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card-media {
  margin: 0;
  height: clamp(260px, 32vw, 500px);
  border-radius: var(--block-roundness);
  overflow: hidden;
  background: var(--dark-grey);
  corner-shape: squircle;
}
.work-card-media { position: relative; cursor: zoom-in; }
/* L'image garde ses proportions : l'arrondi s'applique bien à ses bords visibles */
.work-card-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 48px);
  transform: translate(-50%, -50%);
  border-radius: 4px;
  corner-shape: squircle;
  display: block;
  visibility: hidden;
}
.work-card-media img.is-active { visibility: visible; }
/* Barre de progression façon « stories », visible pendant le défilement */
.work-progress {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 999px;
  background: #00000066;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .2s;
}
.work-card.is-playing .work-progress { opacity: 1; }
.work-progress span {
  flex: none;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  overflow: hidden;
  background: #ffffff40;
}
.work-progress i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.work-card-title { font-size: 14px; line-height: 1.5; color: var(--white) !important; text-decoration: none; }
a.work-card-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff59; }
.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff73;
}
.work-dot {
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: #ffffff59;
}

@media screen and (max-width: 767px) {
  .work-head-side { align-items: flex-start; }
  .work-head p { text-align: left; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-card.is-wide, .work-card.is-narrow, .work-card.is-full { grid-column: auto; }
  .work-card-media { height: auto; aspect-ratio: 4 / 3; }
}

/* Visionneuse : image centrée, discrète */
.work-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: zoom-out;
}
.work-lightbox::backdrop { background: #000000d9; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.work-lightbox[open] { display: grid; place-items: center; }
.work-lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.work-lb-figure img {
  display: block;
  max-width: min(72vw, 1100px);
  max-height: 72vh;
  border-radius: 4px;
  corner-shape: squircle;
  cursor: pointer;
}
.work-lb-figure figcaption {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.work-lb-count { color: #ffffff73; font-variant-numeric: tabular-nums; }
.work-lb-close {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
@media screen and (max-width: 767px) {
  .work-lb-figure img { max-width: 90vw; max-height: 70vh; }
}

/* Sections du bas en blocs gris */
.mage-section.is-bloc { padding: 0 20px 20px; }
.mage-bloc {
  padding: 128px 20px;
  border-radius: var(--block-roundness);
  background: var(--dark-grey);
  corner-shape: squircle;
}
.mage-bloc .mage-testi,
.mage-bloc .mage-faq-item { background: #ffffff0d; }
.mage-bloc .mage-testi:hover,
.mage-bloc .mage-testi[open] { background: #ffffff14; }
@media screen and (max-width: 767px) {
  .mage-bloc { padding: 96px 16px; }
}

/* Témoignages + FAQ côte à côte dans un même bloc */
.mage-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.mage-duo { align-items: start; }
.mage-duo .mage-testimonials,
.mage-duo .mage-faq { max-width: none; margin: 0; }
.mage-duo .mage-testi-quote { padding-top: 48px; font-size: 20px; }
@media screen and (max-width: 991px) {
  .mage-duo { grid-template-columns: 1fr; gap: 64px; }
}

/* Témoignages : une citation à la fois */
.mage-tq-card {
  position: relative;
  display: grid;
  min-height: 320px;
  padding: 28px;
  border-radius: 16px;
  background: #ffffff0d;
  corner-shape: squircle;
}
.mage-tq {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s .25s;
}
.mage-tq.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease .25s; }
.mage-tq blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--white);
}
.mage-tq figcaption {
  margin: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 120px;
}
.mage-tq-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff1a;
  font-size: 14px;
  color: #ffffffb3;
  corner-shape: squircle;
}
.mage-tq-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mage-tq-name { font-size: 14px; line-height: 1.3; }
.mage-tq-role { font-size: 14px; line-height: 1.3; color: #ffffff80; }
.mage-tq-progress {
  position: absolute;
  right: 28px;
  bottom: 44px;
  display: flex;
  gap: 4px;
}
.mage-tq-progress button {
  width: 18px;
  height: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mage-tq-progress button::before {
  content: "";
  display: block;
  height: 2px;
  border-radius: 1px;
  background: #ffffff33;
}
.mage-tq-progress i {
  display: block;
  height: 2px;
  margin-top: -2px;
  border-radius: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
@media screen and (max-width: 767px) {
  .mage-tq-card { padding: 22px; min-height: 340px; }
  .mage-tq blockquote { font-size: 20px; }
  .mage-tq figcaption { padding-right: 0; }
  .mage-tq-progress { position: static; grid-area: 2 / 1; margin-top: 20px; }
}

/* ---------- Pricing ---------- */
.price-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}
.price-head .mage-eyebrow { margin-bottom: 16px; }
.price-head-sub {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #ffffff80;
}
.mage-pricing {
  max-width: 1280px;
  margin: 0 auto;
  padding: 160px 20px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  border-radius: var(--block-roundness);
  background: var(--dark-grey);
  corner-shape: squircle;
}
.price-card.is-featured { background: #1c1c1c; }
.price-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}
.price-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff1a;
  font-size: 12px;
  font-weight: 400;
  color: #ffffffcc;
}
.price-desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #ffffff80;
}
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-from { font-size: 14px; color: #ffffff73; }
.price-value {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.price-unit { font-size: 14px; color: #ffffff73; }
.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--low-opacity-white);
  flex: 1;
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #ffffffb3;
}
.price-list li::before {
  content: "";
  flex: none;
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: #ffffff80;
}
.price-btn { text-align: center; }
.price-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.price-extra > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 28px;
  border-radius: var(--block-roundness);
  box-shadow: inset 0 0 0 1px var(--low-opacity-white);
  font-size: 15px;
  color: #ffffff80;
  corner-shape: squircle;
}
.price-extra-label { color: var(--white); }
.price-extra strong { margin-left: auto; font-weight: 500; color: var(--white); white-space: nowrap; }
@media screen and (max-width: 991px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-extra { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767px) {
  .mage-pricing { padding: 112px 20px; }
  .price-extra > div { flex-wrap: wrap; padding: 18px 20px; }
  .price-extra strong { margin-left: 0; width: 100%; }
}
.mage-footer-col .link-soon { display: flex; margin-bottom: 12px; }
