/* ================================================= */
/* === VARIABLES GLOBALES : PALETTE "SOLEIL DE 18H30" === */
/* ================================================= */
:root {
  --blanc-ivoire: #FFF5E1;
  --bloom-ivoire: #2B2A2E;
  --verttige-sauge: #5C2E35;
  --bleu-ivoire: rgba(43, 42, 46, 0.3);
  --vert-sauge: #5C2E35;
  --brun-olive: #4A4644;
  --noir-profond: #0B0C1D;
  --or: #D95D39;
  --argent: #FFF5E1;
  --argile-rose: #F0A27B;
  --bleu-brume: rgba(11, 12, 29, 0.1);
  --brun-sombre: #2B2A2E;
  
  /* Dégradés supplémentaires */
  --degrade-rayons: linear-gradient(45deg, #D95D39, #F0A27B);
  --degrade-principal: linear-gradient(135deg, #2B2A2E, #5C2E35);
  --ombre-douce: 0 8px 32px rgba(0, 0, 0, 0.3);
  --lueur-doree: 0 0 20px rgba(255, 245, 225, 0.3);
}

/* ================================================= */
/* === RÉINITIALISATION & STYLES DE BASE === */
/* ================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--blanc-ivoire);
  color: var(--brun-olive);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================================= */
/* === ACTE 1 : LE MANIFESTE (#method-hero) === */
/* ================================================= */
#method-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background: var(--degrade-principal);
}

.background-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bleu-ivoire) 1px, transparent 1px),
    linear-gradient(90deg, var(--bleu-ivoire) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  animation: moveBackground 100s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 1000px;
  }
}

.hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--argent);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  text-shadow: var(--lueur-doree);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--argent);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================= */
/* === ACTE 2 : LES PILIERS DE LA CRÉATION (#process-steps) === */
/* ================================================= */
#process-steps {
  position: relative;
}

.step-container {
  padding: 4rem 1.5rem;
  position: relative;
}

.step-one, .step-three {
  background-color: var(--blanc-ivoire);
}

.step-two, .step-four {
  background: var(--degrade-principal);
  color: var(--blanc-ivoire);
}

.step-two h2, .step-four h2,
.step-two p, .step-four p {
  color: var(--argent);
}

.step-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.step-text {
  position: relative;
  padding: 2rem 0;
}

.step-number {
  font-size: 8rem;
  font-weight: 700;
  position: absolute;
  top: -1.5rem;
  right: 0;
  z-index: 0;
  line-height: 1;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.step-one .step-number, 
.step-three .step-number {
  color: var(--brun-sombre);
}

.step-two .step-number, 
.step-four .step-number {
  color: var(--argent);
}

.step-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-text p {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.step-visual {
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--argile-rose);
}

/* Transition entre les étapes */
.step-container:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 80%;
  background: var(--degrade-rayons);
}

/* ================================================= */
/* === ACTE 3 : LA BOÎTE À OUTILS DE L'ARTISAN (#tool-showcase) === */
/* ================================================= */
#tool-showcase {
  background-color: var(--bloom-ivoire);
  padding: 4rem 1.5rem;
  color: var(--or);
}

.tools-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tools-container h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--argent);
  position: relative;
  display: inline-block;
}

.tools-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: var(--argile-rose);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.tool-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--argent);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.tool-card img {
  max-width: 80%;
  max-height: 80%;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.tool-card:hover {
  border-color: var(--or);
  transform: perspective(1000px) rotateY(5deg);
  box-shadow: var(--ombre-douce);
}

.tool-card:hover img {
  transform: scale(1.1);
}

.tool-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: var(--noir-profond);
  color: var(--blanc-ivoire);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  width: 220px;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: var(--ombre-douce);
  pointer-events: none;
  border: 1px solid var(--argile-rose);
}

.tool-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--noir-profond) transparent transparent transparent;
}

.tool-card:hover .tool-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ================================================= */
/* === ACTE 4 : LA PREMIÈRE PIERRE (#method-cta) === */
/* ================================================= */
#method-cta {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background: var(--degrade-principal);
}

#blueprint-background-footer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bleu-brume) 1px, transparent 1px),
    linear-gradient(90deg, var(--bleu-brume) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  animation: moveBackground 100s linear infinite;
}

.cta-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--argent);
  margin-bottom: 1.5rem;
  text-shadow: var(--lueur-doree);
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--argent);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--argile-rose);
  color: var(--noir-profond);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--ombre-douce);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--degrade-rayons);
  transition: width 0.5s ease;
  z-index: -1;
}

.cta-button:hover {
  color: var(--noir-profond);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 116, 0.3);
}

.cta-button:hover::before {
  width: 100%;
}

/* ================================================= */
/* === RESPONSIVE : TABLETTE & DESKTOP === */
/* ================================================= */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .step-text h2 {
    font-size: 2.2rem;
  }
  
  .step-text p {
    font-size: 1.15rem;
  }
  
  .cta-content h2 {
    font-size: 3rem;
  }
  
  .cta-content p {
    font-size: 1.3rem;
  }
}

@media (min-width: 992px) {
  /* Acte 1 */
  #method-hero {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  /* Acte 2 - Disposition desktop */
  .step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .step-one .step-grid,
  .step-three .step-grid {
    grid-template-areas: "text visual";
  }
  
  .step-two .step-grid,
  .step-four .step-grid {
    grid-template-areas: "visual text";
  }
  
  .step-text {
    grid-area: text;
    padding: 0;
  }
  
  .step-visual {
    grid-area: visual;
    height: 400px;
    margin: 0;
  }
  
  .step-number {
    font-size: 12rem;
    top: -3rem;
    right: -2rem;
  }
  
  /* Acte 3 */
  .tools-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
  
  /* Acte 4 */
  #method-cta {
    min-height: 70vh;
  }
}

@media (min-width: 1200px) {
  .step-number {
    font-size: 15rem;
    top: -4rem;
    right: -3rem;
  }
}