/* ==========================================================================
   Sitôtfait – Base styles
   Stack: HTML/CSS/JS/PHP (includes)
   Palette: brand #B1FF53, ink #1B1918, ivory #F9F4F2
   ========================================================================== */

/* ------------------------------
   Variables & Font-face
-------------------------------- */
:root {
  --brand: #B1FF53;
  --ink:   #1B1918;
  --ivory: #F9F4F2;
}

@font-face {
  font-family: 'Nudista Trial Black';
  src: url('../fonts/nudistatrial-black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nudista Trial Black';
  src: url('../fonts/nudistatrial-blackitalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------
   Reset & Base
-------------------------------- */
* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
        Noto Sans, Helvetica, Arial, sans-serif;
  height: 100%;
  
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x : hidden
}

.home-page {
  height: 100vh;
  overflow: hidden;
}

.home-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin-inline: auto;
  max-width: 1120px;
  padding: 0 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img { height: 70px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 2px 0 0 var(--ink);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav a {
  font-size: x-large;
  font-weight: 700;
  opacity: 0.9;
}

.nav a.active,
.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 0 0 var(--ink);
}

.nav-cta {
  display: inline-flex;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  flex: 1 0 auto;
  overflow: hidden;
  background: var(--ink);
  padding: 64px 0;
  display: flex;
  gap: 100px;
  flex-direction: column;
  align-items: center; /* optionnel : verticalement centré */
  justify-content: center;
  position: relative;              /* Pour que le background soit calé sur le main */
  min-height: 70vh;
}

.home-page .hero {
  flex: 1;
  min-height: 0;
  padding: 48px 0;
  justify-content: center;
}

.hero2 {
  overflow: hidden;
  background: var(--ink);
  padding: 0 0 10% 0;
  flex: 1 0 auto;
  display: flex;
  align-items: center; /* optionnel : verticalement centré */
  justify-content: center;
  position: relative;              /* Pour que le background soit calé sur le main */
  min-height: 70vh;
}

.hero > :not(.shape-cloud),
.hero2 > :not(.shape-cloud) {
  position: relative;
  z-index: 4;                      /* le contenu passe devant */
}

.shape-cloud {
  position: absolute;
  max-width: 1050px;
  pointer-events: none;
  z-index: 1;
}

.shape-cloud--hero {
  left: 48%;
  top: 34%;
}

.shape-cloud--hero2 {
  left: 140%;
  top: -555px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.h1 {
  margin: 0 0 12px;
  font-family: 'Nudista Trial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1.05;
  color: #B1FF53;
}

.lead  { max-width: 560px; font-size: 20px; opacity: 0.95; }

.btns {
    display : flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 42px;
    flex-direction: column;
    padding-right: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--ivory);
  border-radius: 12px;
  font-weight: 700;
}

.btn.primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--ivory);
  box-shadow: 0 2px 0 0 var(--ivory);
}

.btn.outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(249, 244, 242, 0.5);
}

.btn.port {
  background: black;
  color: var(--ivory);
  border-color: rgba(249, 244, 242, 1);
}

.hero-card {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 32px 32px 0;
  border: 5px solid var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.photo-frame {
  position: relative;
  width: 110%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.photo-frame img {
  width: 110%;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.badge {
  position: relative;
  align-self: stretch;
  margin: 0 -32px;
  padding: 18px 24px 22px;
  background: var(--ivory);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  text-align: left;
  z-index: 1;
  box-shadow: inset 0 0 0 4px var(--ivory);
}

.badge strong {
  display: block;
}

.badge div {
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================================================
   Section intro
   ========================================================================== */
.section { padding: 72px 0; z-index: 1;}

.h2 {
  margin: 0 0 12px;
  font-family: 'Nudista Trial Black', system-ui, sans-serif;
  font-size: 44px;
  color: #B1FF53;
}

/* ==========================================================================
   Offers (cartes)
   ========================================================================== */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 20px;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 39px;
  font-weight: 900;
  text-align: center;
}

.card .price {
  font-size: 35px;
  font-weight: 900;
  text-align: center;
  color: #B1FF53;
  -webkit-text-stroke: 2px #000000;
}

.card ul {
  text-align: center;
  padding: 0;
}

.craft-flow {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--ink);
  background: radial-gradient(circle at 10% 20%, rgba(177, 255, 83, 0.24), transparent 30%),
              radial-gradient(circle at 90% 30%, rgba(27, 25, 24, 0.05), transparent 32%),
              #f5f7ef;
  position: relative;
  overflow: hidden;
}

.craft-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(177, 255, 83, 0.05), rgba(27, 25, 24, 0.08), rgba(177, 255, 83, 0.05));
  background-size: 200% 200%;
  animation: flowGlow 12s ease-in-out infinite;
  pointer-events: none;
}

.flow-title {
  position: relative;
  margin: 0 0 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.flow-track {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  z-index: 1;
}

.flow-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 16px;
  right: 16px;
  height: 3px;
  filter: drop-shadow(0 0 10px rgba(177, 255, 83, 0.3));
  animation: pulseLine 6s ease-in-out infinite;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  position: relative;
  padding: 10px 10px 10px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 25px rgba(27, 25, 24, 0.06);
  align-items: center;
}

.flow-dot {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 17px;
  box-shadow: 0 0 0 0 rgba(177, 255, 83, 0.6);
  animation: pulseDot 2.8s ease-in-out infinite;
}

.flow-step-title {
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 16px;
}

.flow-step-text {
  margin: 0;
  font-size: 14px;
  color: rgba(27, 25, 24, 0.78);
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(177, 255, 83, 0.6); transform: translateY(0); }
  50%  { box-shadow: 0 0 0 10px rgba(177, 255, 83, 0); transform: translateY(-2px); }
  100% { box-shadow: 0 0 0 0 rgba(177, 255, 83, 0); transform: translateY(0); }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.6; }
  50%     { opacity: 1; }
}

@keyframes flowGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 900px) {
  .flow-track {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .flow-track::before {
    top: 22px;
  }
}

@media (max-width: 640px) {
  .flow-track {
    grid-template-columns: 1fr;
  }

  .flow-track::before {
    display: none;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==========================================================================
   Options
   ========================================================================== */
.options {
  display: grid;
  gap: 16px;
}

.option {
  padding: 20px;
  background: var(--ivory);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
}

.option h4 {
  margin: 0;
  font-size: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
flex-shrink: 0;
}

.site-footer {
  background: var(--ivory);
  color: var(--ink);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.site-footer .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  opacity: 0.85;
}
/* ==========================================================================
   Nouveau footer (style Bootstrap-like)
   ========================================================================== */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  margin: 7px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-copy {
  flex: 1 1 33%;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  flex: 1 1 33%;
  justify-content: flex-end;
  list-style: none;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--ink);
  opacity: 0.8;
  font-size: 14px;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.site-footer {
  background: var(--ivory);
  color: var(--ink);
}

.siret { text-align: right; font-size: 14px; }
.small { font-size: 24px; font-weight: 900; color: #B1FF53; -webkit-text-stroke: 1.2px #000000;}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */
@media (max-width: 1080px) {
  .h1 { font-size: 48px; }
  .h2 { font-size: 36px; }
  .hero { padding: 56px 0; }
}

@media (max-width: 900px) {
  .home-page { height: auto; overflow: visible; }
  .home-page main { min-height: auto; }

  .site-header .bar { align-items: center; }
  .brand img { height: 58px; }

  .nav-toggle { display: inline-flex; }

  .header-actions {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px;
    background: var(--ivory);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
    z-index: 40;
  }

  .header-actions.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  .nav {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .nav a {
    width: 100%;
    padding: 10px 4px;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav a:last-child { border-bottom: none; }

  .nav-cta,
  .cta {
    width: 100%;
    justify-content: center;
  }

  .container { padding: 0 18px; }

  .hero {
    text-align: center;
    padding: 44px 0 32px;
    gap: 48px;
  }

  .grid { justify-items: center; }

  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .lead { font-size: 18px; }

  .btns {
    padding-right: 0;
    align-items: stretch;
  }

  .btn { width: 100%; justify-content: center; }

  .hero-card { width: min(94%, 420px); }
  .photo-frame { width: 100%; }
  .photo-frame img { width: 100%; }
  .badge { text-align: center; }

  .cards,
  .options {
    grid-template-columns: 1fr;
  }

  .shape-cloud {
    top: 60%;
    max-width: 500px;
    transform: translateX(-50%);
  }
}

.contact-layout iframe {
  border-radius: 8px;
}

@media (max-width: 900px) {
  .page-portfolio .shape-cloud,
  .page-offers .shape-cloud,
  .page-contact .shape-cloud,
  .page-equipe .shape-cloud,
  .home-page .shape-cloud {
    display: none;
  }

  #calendar iframe {
    height: 600px;
  }
}

@media (max-width: 640px) {
  #calendar iframe {
    height: 660px;
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 28px; }

  .btns { align-items: stretch; }
  .hero { gap: 40px; min-height: 10vh; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer-copy { flex: unset; }

  .footer-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Media queries
   ========================================================================== */
@media (min-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }

  .cards   { grid-template-columns: repeat(4, 1fr); }
  .options { grid-template-columns: repeat(3, 1fr); }

  .site-footer .row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* PAGE PORTFOLIO */
.portfolio-page {
  background: #050505;
  color: #ffffff;
}

/* HERO */
.portfolio-hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.portfolio-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.portfolio-title {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  color: #c4ff2d; /* vert fluo */
  margin-bottom: 12px;
}

.portfolio-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio-description {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 24px;
  color: #e0e0e0;
}

.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111111;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.portfolio-cta .cta-icon {
  font-size: 0.9rem;
}

/* BLOB VERT À DROITE */
.portfolio-hero-visual {
  position: relative;
  min-height: 260px;
}

.portfolio-blob {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 380px;
  height: 420px;
  background: #c4ff2d;
  border-radius: 60% 40% 50% 60%;
}

/* SECTION PROJETS */
.portfolio-projects {
  padding: 40px 0 80px;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 520px;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.6s ease, filter 0.3s ease;
  transition-delay: var(--reveal-delay, 0ms);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
}

.project-card.is-collapsed {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  max-height: 0;
  filter: blur(1px);
  pointer-events: none;
  visibility: hidden;
}

.project-logo {
  background: #f7f7f7;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  max-width: 120px;
  height: auto;
}

.project-content {
  padding: 14px 18px 18px;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* BOUTON "VOIR PLUS" */
.portfolio-more-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.portfolio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.portfolio-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-toggle .arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.portfolio-toggle[aria-expanded="true"] .arrow {
  transform: rotate(-90deg) translateX(-2px);
}

.portfolio-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #111111;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.portfolio-more .more-icon {
  font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .portfolio-hero-inner {
    grid-template-columns: 1fr;
  }

  .portfolio-hero-visual {
    min-height: 180px;
  }

  .portfolio-blob {
    right: -40px;
    width: 260px;
    height: 280px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
