/* Reset minimal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #15171d 0, #050608 55%, #020205 100%);
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

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

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

.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section-dark {
  background: radial-gradient(circle at top, #11131a 0, #050609 50%, #040306 100%);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.9), rgba(5, 6, 10, 0.75), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  transition: padding 0.3s ease;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mark {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-mark:hover {
  opacity: 0.8;
}

.logo-tagline {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: font-size 0.3s ease, opacity 0.3s ease;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: font-size 0.3s ease, gap 0.3s ease;
}

.main-nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

.main-nav a:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.9em;
  background: rgba(255, 255, 255, 0.25);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #f5f5f5, #a7ffe7);
  transition: width 0.22s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 7rem;
  padding-bottom: 7rem;
  overflow: hidden;
}

.hero-logo {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.hero-logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: brightness(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.06) 0, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(134, 255, 208, 0.08) 0, transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(40, 54, 85, 0.9) 0, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 2.5rem 1rem;
  align-items: start;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2.25rem;
}

.hero-actions {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-self: start;
  justify-content: center;
  margin-top: 2rem; /* Espace supplémentaire par rapport à la citation */
}

.hero-quote {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.95rem;
  max-width: 32rem;
  opacity: 0.8;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 1.2rem;
  margin: 0 auto;
  text-align: left;
}

.hero-quote-author {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* Scroll indicator */
.hero-scroll-indicator {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  opacity: 0.7;
  align-self: center;
  justify-self: center;
  padding-left: 1rem;
}

.scroll-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.7rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  background: transparent;
  color: #f5f5f5;
}

.btn.primary {
  background: linear-gradient(135deg, #f5f5f5, #a7ffe7);
  color: #050608;
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.full {
  display: block;
  margin: 0 auto;
}

/* Sections */
.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.98rem; /* +10% (base: 1.8rem) */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 0.98rem;
  opacity: 0.85;
  line-height: 1.7;
}

.section-note {
  margin-top: 2.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.85;
  text-align: center;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.8rem;
}

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

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

/* Cards */
.card {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), rgba(16, 18, 26, 0.95));
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.card-ghost {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), rgba(10, 12, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Lists */
.list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.list li {
  position: relative;
  padding-left: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #a7ffe7;
}

/* Timeline */
.timeline {
  margin-top: 3rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 1.7rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-step {
  position: absolute;
  left: -2.2rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #050608;
}

.timeline-content h4 {
  font-size: 0.98rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.timeline-content p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

/* Links / partners */
.links-grid {
  margin-top: 1.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), rgba(8, 10, 16, 0.95));
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 255, 231, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.link-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.link-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.link-desc {
  font-size: 0.9rem;
  opacity: 0.86;
}

.link-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-size: 0.92rem; /* -20% (base: 1.15rem) */
}

.link-subtitle.bleu {
  color: #2dd4bf; /* Bleu canard */
}

.link-subtitle.orange {
  color: #fdba74; /* Orange pêche */
}

.link-subtitle.violet {
  color: #FF29A2; /* Prune */
}

/* Atelier section */
.atelier-section-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.atelier-logo {
  flex-shrink: 0;
}

.atelier-logo-img {
  max-width: 186px;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: brightness(1.1) contrast(1.05);
}

/* Company block */
.company-card {
  font-size: 0.88rem;
  flex: 1;
}

.company-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.company-list li {
  margin-bottom: 0.4rem;
  opacity: 0.9;
  display: flex;
  align-items: baseline;
}

.company-list span:first-child {
  flex-shrink: 0;
  min-width: 12rem;
  opacity: 0.75;
}

.company-description {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact */
.contact-form-wrapper {
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-grid {
  margin-top: 1.5rem;
}

.contact-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-line {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.76;
  margin-bottom: 0.2rem;
}

.contact-line a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.contact-form {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), rgba(6, 8, 12, 0.96));
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.form-row input,
.form-row textarea {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 10, 0.95);
  padding: 0.7rem 0.9rem;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-row textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(167, 255, 231, 0.9);
  box-shadow: 0 0 0 1px rgba(167, 255, 231, 0.4);
  background: #050608;
}

.form-note {
  font-size: 0.75rem;
  opacity: 0.78;
  margin-top: 0.6rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 1.5rem 1.4rem;
  background: #020304;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 880px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 1.5rem; /* Bandeau réduit dès le début */
  }

  .logo-tagline {
    font-size: 0.45rem; /* Réduit dès le début */
    opacity: 0.6;
  }

  .main-nav {
    flex-wrap: nowrap; /* Forcer une seule ligne */
    justify-content: flex-start;
    gap: 0.5rem; /* Espacement réduit pour tenir sur une ligne */
    font-size: 0.47rem; /* Taille réduite dès le début */
  }

  .main-nav a:not(:first-child)::before {
    left: -0.30rem;
    background: rgba(255, 255, 255, 0.45);
  }

  /* Retirer la barre avant "SAVOIR-FAIRE" sur tablette car "Accueil" est toujours présent */

  .hero {
    padding-top: 6rem;
    padding-bottom: 5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 2.5rem; /* Augmentation de l'espace entre les éléments */
    min-height: calc(90vh - 10rem);
  }

  .hero-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-quote {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 1rem; /* Espace supplémentaire sous la citation */
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    align-self: end; /* Aligner le bouton en bas de la grille */
    margin-top: auto; /* Pousser le bouton vers le bas */
  }

  .hero-scroll-indicator {
    display: none;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card,
  .card-ghost,
  .link-card {
    padding: 1.5rem 1.35rem;
  }

  .atelier-section-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .atelier-logo {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .atelier-logo-img {
    max-width: 146px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 4.5rem 1.1rem;
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  /* Header grossi de +30% sur smartphone */
  .header-inner {
    padding: 0.39rem 1.1rem; /* Bandeau +30% (base: 0.3rem) */
  }

  .logo-mark {
    font-size: 1.755rem; /* +30% (base: 1.35rem) */
  }

  .logo-tagline {
    font-size: 0.585rem; /* +30% (base: 0.45rem) */
    opacity: 0.5;
  }

  .main-nav {
    gap: 0.52rem; /* Espacement +30% (base: 0.4rem) */
    font-size: 0.611rem; /* Taille d'origine */
  }

  .main-nav a:not(:first-child)::before {
    left: -0.31rem;
    background: rgba(255, 255, 255, 0.45);
  }

  /* Cacher "Accueil" sur smartphone pour éviter 2 lignes */
  .main-nav a[href="#accueil"] {
    display: none;
  }

  /* Retirer la barre avant "SAVOIR-FAIRE" sur smartphone car il devient visuellement le premier */
  .main-nav a[href="#savoir-faire"]::before {
    display: none;
  }

  .hero-logo-img {
    max-width: 224px;
  }

  .hero-content {
    min-height: calc(100vh - 8rem); /* Utiliser toute la hauteur de l'écran sur smartphone */
    gap: 0.5rem; /* Encore plus réduit pour remonter davantage le bouton */
  }

  .hero-quote {
    margin-bottom: 0; /* Supprimer l'espace supplémentaire pour remonter le bouton */
  }

  .hero-actions {
    align-self: center; /* Centrer verticalement au lieu de coller en bas */
    margin-top: -0.5rem; /* Margin négative pour remonter encore plus */
  }

  .atelier-section-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .atelier-logo {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .atelier-logo-img {
    max-width: 120px;
  }

  /* Optimisation du tableau société sur smartphone */
  .company-list {
    font-size: 0.82rem;
  }

  .company-list span:first-child {
    min-width: 7rem; /* Réduit pour smartphone */
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    width: auto; /* Largeur adaptée au contenu au lieu de 100% */
    max-width: 246px; /* +10% (base: 224px) */
    justify-content: center;
  }

  .btn.full {
    font-size: 0.765rem; /* -15% (base: 0.9rem) */
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.35rem;
  }
}
