/* Portfolio Pedraw — copie statique du site Framer pedraw.framer.website */
:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --pill: rgba(255, 255, 255, 0.16);
  --gut: 20px;   /* marge sur les côtés */
  --gap: 20px;   /* espace entre les 2 colonnes */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1920px; margin: 0 auto; padding: 0 var(--gut); }

/* Grille 2 colonnes : vide à gauche, contenu à droite */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cols > .right { grid-column: 2; }

.txt { font-size: 20px; line-height: 24px; font-weight: 400; }
.txt p { min-height: 24px; }
.label { font-size: 16px; line-height: 16px; font-weight: 500; }
.op7 { color: var(--dim); }

/* ---------- Grand titre PED®AW ---------- */
.mega {
  /* Comme l'original : le mot remplit toute la largeur (largeur - 16px) */
  font-size: calc((100vw - 16px) * 0.2843);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.0418em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* ® du logo, à la hauteur des capitales */
.mega .r { display: inline-block; height: 0.74em; width: auto; vertical-align: 0; margin: 0 0.03em 0 0.02em; border-radius: 50%; aspect-ratio: 1; object-fit: cover; filter: contrast(1.3); /* gris #1D1D1B → noir pur comme le fond ; image entière : marge blanche = anneau blanc autour du rond noir */ }
.top-title { padding: 8px; }
.top-title .mega { margin-left: -0.01em; }

/* ---------- Menu ---------- */
.nav { position: sticky; top: 20px; z-index: 50; }
.nav.fixed { position: fixed; left: 0; right: 0; top: 20px; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--pill);
  border-radius: 60px;
  font-size: 16px; line-height: 16px; font-weight: 500;
  transition: border-color 0.3s var(--ease);
}
.pill:hover, .pill.current { border-color: var(--fg); }

/* ---------- Accueil : intro ---------- */
.intro { padding: 44px 0 120px; }
.hello { display: flex; align-items: center; gap: 12px; align-self: start; font-size: 20px; line-height: 24px; }
.hello img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.accroche { font-size: clamp(30px, 2.9vw, 54px); line-height: 1.1; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.offre { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 72px; }
.offre li { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 14px; }
.offre h2 { font-size: 20px; line-height: 24px; font-weight: 600; margin-bottom: 6px; }
.offre p { font-size: 16px; line-height: 20px; color: var(--dim); max-width: 30ch; }
@media (max-width: 809.98px) { .offre { grid-template-columns: 1fr 1fr; row-gap: 32px; margin-top: 56px; } }

/* ---------- Cartes projets ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: 60px; }
.card { display: block; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 12px; }
.card-head h3 { font-size: 20px; line-height: 24px; font-weight: 400; }
.tags { display: flex; gap: 4px; flex-shrink: 0; }
.tag {
  background: var(--fg); color: var(--bg);
  border-radius: 2px; padding: 3px 14px;
  font-size: 16px; line-height: 16px; font-weight: 500;
  white-space: nowrap;
}
.thumb { position: relative; overflow: hidden; aspect-ratio: 690 / 512; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .thumb img { transform: scale(1.07); }
.see {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 6px 16px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 16px; line-height: 16px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover .see { opacity: 1; }


/* ---------- À propos ---------- */
.about { padding-top: 100px; }
.about-text { position: relative; }
.about-text h2 { position: absolute; left: 0; top: 0; }
.about-text .only-big p:first-child { white-space: pre-wrap; }
.about-imgs { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; }
.about-imgs .me { width: calc(50% - 10px); aspect-ratio: 335 / 413; object-fit: cover; }
.about-imgs .logo { width: calc(50% - 10px); aspect-ratio: 335 / 251; object-fit: contain; filter: invert(1); /* logo noir → blanc sur fond noir */ }
.only-small { display: none; }

/* ---------- Ce que je fais / Expériences ---------- */
.block { padding-top: 100px; }
.block .inner { border-top: 1px solid var(--line); padding-top: 20px; }
.services li {
  list-style: none; position: relative; overflow: hidden;
  padding-bottom: 12px;
}
.services li::after, .xp li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--line);
}
.services h4 {
  font-size: 40px; line-height: 40px; font-weight: 400;
  letter-spacing: -1.3px; text-transform: uppercase; padding-right: 16px;
}
.services li.dim h4 { color: rgba(255, 255, 255, 0.6); }
.dot {
  position: absolute; right: 2px; top: 50%; width: 4px; height: 4px;
  background: var(--dim); transform: translateY(-50%) rotate(45deg);
}
.services li .dot { top: 18px; }
.xp { display: flex; flex-direction: column; gap: 12px; }
.xp li {
  list-style: none; position: relative; padding-bottom: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* ---------- Contact ---------- */
.cta { padding: 200px 0; }
.cta .txt { max-width: 460px; }
.buttons { display: flex; gap: 8px; margin-top: 36px; align-items: center; }
.btn-mail {
  background: var(--fg); color: var(--bg);
  border-radius: 70px; padding: 10px 20px;
  font-size: 16px; line-height: 16px; font-weight: 500;
  transition: opacity 0.3s;
}
.btn-mail:hover { opacity: 0.85; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; color: var(--fg); cursor: pointer;
  border-radius: 100px; padding: 10px 20px;
  font: 500 16px/16px "Roboto Condensed", sans-serif;
}
.btn-copy svg { width: 14px; height: 14px; }

/* ---------- Pied de page ---------- */
.footer { overflow: hidden; }
.social { display: flex; justify-content: space-between; }
.social a { position: relative; padding: 3px; display: inline-flex; gap: 2px; font-size: 16px; line-height: 16px; font-weight: 500; }
.social a::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 1px;
  background: var(--fg); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.social a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer .mega { font-size: calc((100vw + 20px) * 0.2843); margin: 36px 0 0 -10px; height: calc((100vw + 20px) * 0.2843 * 0.78); overflow: hidden; }

/* ---------- Page Travaux ---------- */
.page-title { padding: 232px 0 100px; }
.page-title h1 { font-size: 88px; line-height: 88px; font-weight: 500; letter-spacing: -2px; text-align: right; max-width: 560px; }

/* ---------- Page projet ---------- */
.p-hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero .cols { position: relative; height: 100%; align-items: center; }
.p-hero h1 { font-size: 88px; line-height: 88px; font-weight: 500; letter-spacing: -2px; }
.p-info { padding-top: 60px; }
.p-info .txt p { white-space: pre-line; }
.deliv { margin-top: 60px; }
.deliv ul { margin-top: 60px; display: flex; flex-direction: column; gap: 12px; }
.deliv li { list-style: none; position: relative; font-size: 16px; line-height: 16px; font-weight: 500; }
.deliv li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--line); }
.meta { display: flex; gap: 8px; margin-top: 40px; }
.meta .tag { display: inline-flex; gap: 8px; padding: 3px 16px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 200px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g1 { aspect-ratio: 690 / 484; }
.gallery .g2 { grid-column: 1 / -1; aspect-ratio: 1400 / 948; }
.gallery .g3 { aspect-ratio: 690 / 467; }
.concept {
  max-width: 812px; margin: 60px auto 0; text-align: center;
  font-size: 40px; line-height: 40px; font-weight: 400; letter-spacing: -0.72px;
}
.next { padding: 340px 0 300px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.next-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; will-change: transform; }
.next h2 { font-size: 16px; line-height: 16px; font-weight: 500; }
.next a { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(380px, 100vw - 64px); }
.next .thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: 2px; }
.next a:hover .thumb img { transform: scale(1.07); }

/* ---------- Animations d'apparition ---------- */
.js .rise { opacity: 0; transform: translateY(40px); }
.js .drop { opacity: 0; transform: translateY(-50px); }
.js .rise.in, .js .drop.in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .services li h4, .js .services li .dot { transform: translateY(52px); transition: transform 0.8s var(--ease); }
.js .services li::after, .js .xp li::after { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.js .services li.in h4, .js .services li.in .dot { transform: none; }
.js .services li.in .dot { transform: translateY(-50%) rotate(45deg); }
.js .services li.in::after, .js .xp li.in::after { transform: none; }
.js .xp li > * { opacity: 0; transition: opacity 0.8s var(--ease); }
.js .xp li.in > * { opacity: 1; }
.js .xp li.in > .op7 { opacity: 1; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1199.98px) {
  .only-big { display: none; }
  .only-small { display: block; }
  .about-imgs .logo { display: none; }
  .about-imgs .me { width: 100%; max-width: 335px; }
}
@media (max-width: 809.98px) {
  :root { --gut: 12px; }
  .cols { grid-template-columns: 1fr; }
  .cols > .right { grid-column: 1; }
  .pill { padding: 4px 4px; border-color: transparent; }
  .pill.current { border-color: var(--pill); padding: 4px 8px; }
  .intro { padding: 56px 0 80px; }
  .works { grid-template-columns: 1fr; }
  .card-head h3 { flex: 1; }
  .thumb { aspect-ratio: 351 / 260; }
  .about-text h2 { position: static; margin-bottom: 0; }
  .block .inner { display: flex; flex-direction: column; gap: 80px; }
  .xp li { grid-template-columns: 1fr 1fr; }
  .xp li > :nth-child(1) { grid-row: 2; grid-column: 1; }
  .xp li > :nth-child(2) { grid-row: 1; grid-column: 1; }
  .xp li > :nth-child(3) { grid-row: 2; grid-column: 2; }
  .cta { padding: 120px 0; }
  .page-title h1, .p-hero h1 { font-size: 56px; line-height: 56px; text-align: left; }
  .page-title { padding-top: 160px; }
  .p-hero .cols { padding: 0 20px; }
  .gallery { grid-template-columns: 1fr; padding-top: 100px; }
  .gallery .g2 { grid-column: 1; }
  .concept { font-size: 28px; line-height: 30px; }
  .meta { gap: 8px; flex-wrap: wrap; }
  .next { padding: 160px 0 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .drop { opacity: 1; transform: none; }
}

/* ---------- Vidéo d'intro (page d'accueil) ---------- */
.intro-video {
  position: fixed; inset: 0; z-index: 100; background: #000;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.intro-video video { width: 100%; height: 100%; object-fit: cover; }
/* Téléphone : aucun bouton du lecteur (lecture, avance de 10 s, plein écran…) par-dessus la vidéo */
.intro-video video { pointer-events: none; }
.intro-video video::-webkit-media-controls,
.intro-video video::-webkit-media-controls-panel,
.intro-video video::-webkit-media-controls-overlay-play-button,
.intro-video video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
/* Téléphone : la vidéo verticale est montrée en entier (bandes noires si l'écran est plus allongé) */
@media (orientation: portrait) { .intro-video video { object-fit: contain; } }
/* Voile noir + flou : commence à 3 s (classe .dim) et est complet vers 5 s */
.intro-video::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: background 2s ease-in-out, backdrop-filter 2s ease-in-out, -webkit-backdrop-filter 2s ease-in-out, opacity 0.8s ease;
}
.intro-video.dim::after { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Grand titre PED®AW : monte du bas quand le voile est complet */
.intro-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 8px; overflow: hidden; }
.intro-title .mega { margin-left: -0.01em; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.intro-title .mega .r { filter: none; } /* R au fond transparent, comme l'intérieur du P */
.intro-video.dim .intro-title .mega { transform: none; transition-delay: 1.6s; }
/* Au défilement : la vidéo s'efface et le titre glisse jusqu'à sa place en haut de la page */
.intro-video.out { background: transparent; pointer-events: none; }
.intro-video.out video, .intro-video.out::after { opacity: 0; }
.intro-video video { transition: opacity 0.8s ease; }
.intro-video.out .intro-title { overflow: visible; }
.intro-video.out .intro-title .mega { transition: transform 1s var(--ease); transition-delay: 0s; }
html.intro-lock, html.intro-lock body { overflow: hidden; }
/* Pages projet : voile léger sans flou pour garder le mouvement visible, titre plus tôt */
.intro-video.light.dim::after { background: rgba(0, 0, 0, 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; }
.intro-video.light.dim .intro-title .mega { transition-delay: 0.2s; }
