/* VIZARNE — composants des pages Services, Réalisations, Méthode, Contact */

/* couleur d'accent par élément : data-c="electric|coral|ice|white" */
[data-c="electric"] { --c: var(--electric); --c-ink: var(--white); }
[data-c="coral"]    { --c: var(--coral);    --c-ink: var(--white); }
[data-c="ice"]      { --c: var(--ice);      --c-ink: var(--night); }
[data-c="white"]    { --c: var(--white);    --c-ink: var(--night); }

/* ─── Services : lignes qui se remplissent de couleur ─── */
.svc-list { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(130px, .6fr) minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 32px; align-items: start;
  padding: clamp(36px, 5vw, 64px) 20px;
  border-top: 1px solid var(--line);
  transition: color .5s var(--ease);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-io);
}
.svc:hover { color: var(--c-ink); }
.svc:hover::before { clip-path: inset(0 0 0 0); }
.svc-n { color: var(--c); padding-top: .9em; transition: color .5s; }
.svc:hover .svc-n { color: var(--c-ink); }
.svc-t { font-family: var(--display); font-weight: 700; font-stretch: 78%; font-size: clamp(40px, 5.6vw, 84px); line-height: .92; letter-spacing: -.035em; }
.svc-t .it { font-weight: 400; color: var(--c); transition: color .5s; }
.svc:hover .svc-t .it { color: var(--c-ink); }
.svc-b p { color: var(--muted); max-width: 40ch; transition: color .5s; }
.svc:hover .svc-b p { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 13px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .5s; }
.svc:hover .chips span { border-color: currentColor; }

.incs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.inc { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
.inc svg { width: 26px; height: 26px; stroke: var(--electric); fill: none; stroke-width: 1.5; margin-bottom: 10px; }
.inc:nth-child(2) svg { stroke: var(--coral); }
.inc:nth-child(4) svg { stroke: var(--coral); }
.inc strong { font-family: var(--display); font-weight: 650; font-size: 21px; letter-spacing: -.02em; }
.inc span { color: var(--muted); font-size: 15px; }

/* ─── Bloc d'appel à l'action ─── */
.cta-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.cta-row .h2 { max-width: 13ch; }
.cta-sub { color: var(--muted); margin-bottom: 22px; max-width: 32ch; font-size: 18px; }
.btn-night { background: var(--night); color: var(--white); }
.btn-night:hover { background: var(--white); color: var(--night); }
.blk-electric .btn:hover { background: var(--night); color: var(--white); }

/* ─── Méthode : cartes empilées (sticky) ─── */
.stack { padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 140px); display: grid; gap: 24px; }
.stk {
  position: sticky; top: calc(96px + var(--i) * 26px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: end;
  min-height: min(68vh, 560px); padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; background: var(--c); color: var(--c-ink);
  box-shadow: 0 -20px 60px -30px rgba(8, 19, 32, .7);
}
.stk-n { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(120px, 22vw, 320px); line-height: .78; letter-spacing: -.07em; }
.stk:nth-child(even) .stk-n { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.04em; }
.stk-b .mono { opacity: .7; }
.stk-b h2 { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(40px, 5.4vw, 80px); line-height: .92; letter-spacing: -.035em; margin: 14px 0 16px; }
.stk-b p { font-size: clamp(17px, 1.5vw, 21px); max-width: 32ch; opacity: .85; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--night); position: relative; transition: transform .5s var(--ease), background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--white); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--coral); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 58ch; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); align-items: start; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.mail-addr { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 3.8vw, 54px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; transition: color .3s; }
.mail-addr:hover { color: var(--coral); }
.copy { padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 999px; transition: background-color .3s, color .3s; }
.copy:hover { background: var(--ice); color: var(--night); }
.cinfo { display: grid; gap: 22px; margin-top: 48px; }
.cinfo div { padding-top: 14px; border-top: 1px solid var(--line); }
.cinfo dt { color: var(--muted); margin-bottom: 4px; }
.cform { display: grid; gap: 30px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--deep); border: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fld { display: grid; gap: 6px; position: relative; min-width: 0; }
.fld .mono, .cform legend { color: var(--muted); font-size: 11px; }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 19px; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 8px 0 12px; border-radius: 0; outline: none; resize: vertical; }
.fld::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1.4em - 1px); height: 2px; background: linear-gradient(90deg, var(--coral), var(--electric)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none; }
.fld:focus-within::after { transform: scaleX(1); }
.fld em { font-style: normal; font-size: 12px; color: var(--coral); min-height: 1.2em; }
.fld.err input, .fld.err textarea { border-bottom-color: var(--coral); }
fieldset { border: 0; display: grid; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:hover { border-color: var(--c); }
.choices label:has(input:checked) { background: var(--c); border-color: var(--c); color: var(--c-ink); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-status { color: var(--ice); font-size: 15px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: -10px; }

/* ─── Réalisations ─── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); }
.filters button { padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.filters button[aria-pressed="true"] { background: var(--ice); color: var(--night); border-color: var(--ice); }
.filters button:hover { border-color: var(--coral); }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 40px); padding-bottom: clamp(80px, 10vw, 140px); }
.proj { display: grid; gap: 18px; align-content: start; }
.proj:nth-child(even) { margin-top: clamp(0px, 9vw, 140px); }
.proj[hidden] { display: none; }
.proj-shot { position: relative; border-radius: 22px; overflow: hidden; background: var(--c, var(--deep)); padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) 0; aspect-ratio: 4 / 3.1; }
.proj-shot .bar { display: flex; gap: 6px; align-items: center; height: 26px; padding-inline: 12px; background: rgba(8, 19, 32, .9); border-radius: 10px 10px 0 0; }
.proj-shot .bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(203, 225, 248, .4); }
.proj-shot .bar i:first-child { background: var(--coral); }
.proj-shot img { width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), object-position 4s ease; }
.proj:hover .proj-shot img { transform: scale(1.03); object-position: bottom; }
.proj-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.proj-meta h3 { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -.035em; }
.proj-meta h3 .it { font-weight: 400; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; font-size: 10px; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--coral)); }
.proj p { color: var(--muted); max-width: 52ch; }
.proj-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--c, var(--coral)); transition: gap .4s var(--ease), color .3s; }
.proj-link:hover { gap: 16px; color: var(--c, var(--coral)); }
.proj-note { font-size: 13px; color: var(--muted); }

/* ─── Responsive ─── */
@media (max-width: 1020px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc-n { grid-column: 1 / -1; padding-top: 0; }
  .incs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .svc, .cta-row, .faq-grid, .contact-grid, .stk, .work { grid-template-columns: minmax(0, 1fr); }
  .svc { gap: 16px; padding-inline: 12px; }
  .stk { min-height: 0; gap: 10px; top: calc(80px + var(--i) * 16px); }
  .stk-n { font-size: 120px; }
  .proj:nth-child(even) { margin-top: 0; }
}
@media (max-width: 520px) {
  .incs, .row2 { grid-template-columns: minmax(0, 1fr); }
}
