/* styles.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b2a2a;
  background: #ebe4dd;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(235, 228, 221, 0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(95, 92, 91, 0.15);
  box-shadow: 0 4px 24px rgba(43, 42, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* LOGO */

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #2b2a2a;
  text-decoration: none;
}

.logo-star {
  display: inline-block;
  color: #5f5c5b;
  font-size: 1rem;
  animation: starSpin 4s linear infinite;
}

/* NAV LINKS */

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
  color: #2b2a2a;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  transition: color 0.25s ease;
}

/* Fond qui glisse au hover */
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(95, 92, 91, 0.1);
  border-radius: 6px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: #2b2a2a;
}

/* Trait animé sous le texte */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.85rem;
  width: calc(100% - 1.7rem);
  height: 1.5px;
  background: #5f5c5b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease 0.1s;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* BOUTON CONTACT */

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ebe4dd;
  text-decoration: none;
  background: #2b2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* Fond qui remonte au hover */
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #5f5c5b;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 6px;
}

.nav-cta:hover::before {
  transform: translateY(0);
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

/* HERO */

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background-color: #ebe4dd;
  border-bottom: 1px solid rgba(95, 92, 91, 0.2);
}

.hero-inner {
  padding: 4rem 1.5rem;
}

.hero-tagline {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  color: #5f5c5b;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero-text {
  max-width: 480px;
  color: #5f5c5b;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Bouton primaire — effet bulles */
.btn-primary {
  position: relative;
  border: none;
  background-color: #2b2a2a;
  color: #ebe4dd;
  overflow: visible;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary:before,
.btn-primary:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1000;
  background-repeat: no-repeat;
}

.btn-primary:hover:before {
  top: -70%;
  background-image: radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #5f5c5b 20%, transparent 30%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #5f5c5b 15%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
  background-position: 50% 120%;
  animation: topBubbles 0.6s ease;
}

@keyframes topBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

.btn-primary:hover::after {
  bottom: -70%;
  background-image: radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #5f5c5b 15%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%),
    radial-gradient(circle, #5f5c5b 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
  background-position: 50% 0%;
  animation: bottomBubbles 0.6s ease;
}

@keyframes bottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
  }
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
  }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

/* Bouton outline — style sobre */
.btn-outline {
  background: transparent;
  color: #2b2a2a;
  border: 1.5px solid #5f5c5b;
  border-radius: 999px;
}

.btn-outline:hover {
  background: #2b2a2a;
  color: #ebe4dd;
  border-color: #2b2a2a;
}

.btn-cross {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid #2b2a2a;
  color: #2b2a2a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}

.btn-cross::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% - 12px);
  background-color: #ebe4dd;
  transition: transform 0.3s ease-in-out;
  transform: scaleY(1);
}

.btn-cross:hover::before {
  transform: scaleY(0);
}

.btn-cross::after {
  content: '';
  position: absolute;
  left: 6px;
  top: -2px;
  height: calc(100% + 4px);
  width: calc(100% - 12px);
  background-color: #ebe4dd;
  transition: transform 0.3s ease-in-out;
  transform: scaleX(1);
  transition-delay: 0.3s;
}

.btn-cross:hover::after {
  transform: scaleX(0);
}

.btn-cross span {
  position: relative;
  z-index: 3;
}

/* Utilitaires */
.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  text-decoration: underline;
}

.btn-3d {
  transform: rotate(-15deg) skew(15deg);
  transform-style: preserve-3d;
  position: relative;
  display: inline-block;
  width: 180px;
  height: 38px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  margin-top: 2.5rem;
}

.btn-3d::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -4px;
  width: 100%;
  height: 8px;
  background: #5f5c5b;
  transform: skewX(-41deg);
}

.btn-3d::after {
  content: '';
  position: absolute;
  top: 4px;
  left: -7px;
  width: 7px;
  height: 100%;
  background: #5f5c5b;
  transform: skewY(-49deg);
}

.btn-3d span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2b2a2a;
  color: #ebe4dd;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 1.1s ease-out;
}

.btn-3d:hover span {
  z-index: 1000;
  transition: .3s;
  color: #ebe4dd;
}

.btn-3d:hover span:nth-child(5) {
  transform: translate(30px, -30px);
  opacity: 1;
  background: #2b2a2a;
}

.btn-3d:hover span:nth-child(4) {
  transform: translate(22px, -22px);
  opacity: .8;
}

.btn-3d:hover span:nth-child(3) {
  transform: translate(15px, -15px);
  opacity: .6;
}

.btn-3d:hover span:nth-child(2) {
  transform: translate(8px, -8px);
  opacity: .4;
}

.btn-3d:hover span:nth-child(1) {
  transform: translate(0px, 0px);
  opacity: .2;
}

.btn-3d:active span:nth-child(5) { transform: translate(15px, -15px); }
.btn-3d:active span:nth-child(4) { transform: translate(11px, -11px); }
.btn-3d:active span:nth-child(3) { transform: translate(7px, -7px); }
.btn-3d:active span:nth-child(2) { transform: translate(3px, -3px); }
.btn-3d:active span:nth-child(1) { transform: translate(0px, 0px); }

/* SECTIONS */

.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.image-placeholder {
  text-align: center;
}

.mon-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* AGENCE */

.section-agence {
  overflow: hidden;
}

.agence-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agence-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f5c5b;
  background: rgba(95, 92, 91, 0.1);
  border: 1px solid rgba(95, 92, 91, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  width: fit-content;
  animation: fadeSlideDown 0.6s ease both;
}

.agence-content h2 {
  margin: 0;
  animation: fadeSlideDown 0.6s 0.1s ease both;
}

.agence-content p {
  color: #5f5c5b;
  line-height: 1.7;
  margin: 0;
  animation: fadeSlideDown 0.6s 0.2s ease both;
}

.agence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: fadeSlideDown 0.6s 0.3s ease both;
}

.tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #2b2a2a;
  color: #ebe4dd;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: default;
}

.tag:hover {
  transform: translateY(-2px);
  background: #5f5c5b;
}

.agence-content .btn-link {
  animation: fadeSlideDown 0.6s 0.4s ease both;
  font-weight: 600;
  color: #2b2a2a;
  transition: letter-spacing 0.2s ease;
}

.agence-content .btn-link:hover {
  letter-spacing: 0.04em;
}

/* Image avec anneau animé */
.image-placeholder {
  text-align: center;
  display: flex;
  justify-content: center;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(#e81cff, #7b2fff, transparent 60%, transparent);
  animation: spinRing 6s linear infinite;
  z-index: 0;
}

.image-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ebe4dd;
}

.mon-image {
  position: relative;
  z-index: 1;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.mon-image:hover {
  transform: scale(1.03);
}

@keyframes spinRing {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* Animations d'entrée */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* EXPERTISES GRID */

.expertises-grid {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
}

.expertises-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 140px;
  flex: 1 1 220px;
  border-radius: 10px;
  color: #ebe4dd;
  cursor: pointer;
  transition: 400ms;
  padding: 1.5rem;
}

.expertises-card.card-1 {
  background-color: #5f5c5b;
}

.expertises-card.card-2 {
  background-color: #afa9a5;
}

.expertises-card.card-3 {
  background-color: #5f5c5b;
}

.expertises-card .tip {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #ebe4dd;
}

.expertises-card .second-text {
  font-size: 0.75em;
  margin: 0;
  color: #ebe4dd;
  opacity: 0.85;
}

.expertises-card:hover {
  transform: scale(1.05);
}

.expertises-grid:hover > .expertises-card:not(:hover) {
  filter: blur(4px);
  transform: scale(0.95);
}

/* PROJETS GRID */

.projets-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "a b"
    "c b";
  gap: 1.5rem;
}

.projets-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  color: #ebe4dd;
  cursor: pointer;
  transition: 400ms;
}

.projets-card.card-a {
  background-color: #5f5c5b;
  grid-area: a;
}

.projets-card.card-b {
  background-color: #afa9a5;
  grid-area: b;
}

.projets-card.card-c {
  background-color: #2b2a2a;
  grid-area: c;
}

.projets-card .tip {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #ebe4dd;
}

.projets-card .second-text {
  font-size: 0.78em;
  margin: 0;
  color: #ebe4dd;
  opacity: 0.85;
}

.projets-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.projets-grid:hover > .projets-card:not(:hover) {
  filter: blur(4px);
  transform: scale(0.97);
}

/* Responsive */
@media (max-width: 768px) {
  .projets-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c";
  }
}

/* CONTACT FORM */

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 1.5rem;
}

.form-container {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(#2b2a2a, #2b2a2a) padding-box,
              linear-gradient(145deg, transparent 35%, #e81cff, #7b2fff) border-box;
  border: 2px solid transparent;
  padding: 32px 24px;
  font-size: 14px;
  font-family: inherit;
  color: #ebe4dd;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  border-radius: 16px;
  background-size: 200% 100%;
  animation: gradient 5s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.form-container button:active {
  scale: 0.95;
}

.form-container .form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-container .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #5f5c5b;
  font-weight: 600;
  font-size: 12px;
}

.form-container .form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  color: #ebe4dd;
  font-family: inherit;
  background-color: transparent;
  border: 1px solid #5f5c5b;
}

.form-container .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  resize: none;
  color: #ebe4dd;
  height: 96px;
  border: 1px solid #5f5c5b;
  background-color: transparent;
  font-family: inherit;
}

.form-container .form-group input::placeholder {
  opacity: 0.5;
}

.form-container .form-group input:focus {
  outline: none;
  border-color: #e81cff;
}

.form-container .form-group textarea:focus {
  outline: none;
  border-color: #e81cff;
}

.form-container .form-submit-btn {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: flex-start;
  font-family: inherit;
  color: #5f5c5b;
  font-weight: 600;
  width: 40%;
  background: #2b2a2a;
  border: 1px solid #5f5c5b;
  padding: 12px 16px;
  font-size: inherit;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.form-container .form-submit-btn:hover {
  background-color: #ebe4dd;
  border-color: #ebe4dd;
  color: #2b2a2a;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(95, 92, 91, 0.15);
  padding: 1.5rem 0;
  background: #ebe4dd;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  margin-left: 1rem;
  color: #5f5c5b;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #2b2a2a;
}

/* COOKIE BANNER */

.card {
  width: 300px;
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  gap: 13px;
  position: fixed;
  bottom: -300px; /* caché en dessous */
  right: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
  transition: bottom 0.6s ease;
  z-index: 100;
}

.card.visible {
  bottom: 1.5rem;
}

#cookieSvg {
  width: 50px;
}

#cookieSvg g path {
  fill: rgb(97, 81, 81);
}

.cookieHeading {
  font-size: 1.2em;
  font-weight: 800;
  color: rgb(26, 26, 26);
}

.cookieDescription {
  text-align: center;
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(99, 99, 99);
}

.buttonContainer {
  display: flex;
  gap: 20px;
  flex-direction: row;
}

.acceptButton {
  width: 80px;
  height: 30px;
  background-color: #5f5c5b;
  transition-duration: .2s;
  border: none;
  color: rgb(241, 241, 241);
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
}

.declineButton {
  width: 80px;
  height: 30px;
  background-color: rgb(218, 218, 218);
  transition-duration: .2s;
  color: rgb(46, 46, 46);
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
}

.declineButton:hover {
  background-color: #ebebeb;
  transition-duration: .2s;
}

.acceptButton:hover {
  background-color: #5f5c5b;
  transition-duration: .2s;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }
  .main-nav {
    display: none; /* gérer un burger menu plus tard */
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .cookie-banner {
    right: 0.5rem;
    left: 0.5rem;
    margin-right: 0.5rem;
  }
} 

/* CURSOR STAR */

.cursor-star {
  position: fixed;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease, top 0.08s ease;
}

.cursor-star::before {
  content: '✦';
  position: absolute;
  font-size: 14px;
  color: #5f5c5b;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
  from { rotate: 0deg; scale: 1; }
  50%  { scale: 1.4; }
  to   { rotate: 360deg; scale: 1; }
}