/* ---------- RESET DE BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #020617;
}

/* Conteneur principal */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ---------- HEADER & NAV ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
}

/* Nav desktop */
.nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  text-decoration: none;
  color: #cbd5f5; /* couleur bleue-gris */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #6366f1); /* couleur bleu clair, violet */
  transition: width 0.25s ease;
}

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

/* Burger (mobile) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #e5e7eb; /* couleur grise */
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #e5e7eb; /* couleur grise pour le titre */
  padding-top: 4.5rem; /* pour ne pas passer sous le header */
  overflow: hidden;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%); /* couleur noire, noire intense */
}

@media all and (orientation: portrait) {

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("http://criollo-afecc.com/accueil_portrait2.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}
}

@media all and (orientation:landscape) {

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("http://criollo-afecc.com/accueil_landscape2.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}
}

/* Gradient animé pour un effet moderne */
.hero-gradient {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 0% 0%, #6d071a 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #6d071a 0, transparent 55%),
    radial-gradient(circle at 10% 80%, #6d071a 0, transparent 50%); /* couleur marron, transparence */
  opacity: 0.45;
  filter: blur(20px);
  animation: gradientMove 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gradientMove {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-5%, 5%, 0) scale(1.1);
  }
  100% {
    transform: translate3d(5%, -5%, 0) scale(1.08);
  }
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 4rem;
}

/* Texte hero */
.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 35rem;
  color: #cbd5f5;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #000000;
}

/* Visuels hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: absolute;
  max-width: 230px;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #020617, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

.hero-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: #e5e7eb;
}

.hero-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.hero-card:nth-child(1) {
  top: 0;
  right: 10%;
}

.hero-card:nth-child(2) {
  bottom: 0;
  left: 5%;
}

.hero-card:nth-child(3) {
 top: 50%;
  left: -25%;
}


/* Effet flottant */
.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card.delay-1 {
  animation-delay: 2s;
}

.floating-card.delay-2 {
  animation-delay: 4s;
}


@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-10px) translateZ(0);
  }
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-circle {
  width: 24px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}

.scroll-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 8px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

/* ---------- SECTIONS ---------- */

.section {
  padding-block: 5rem;
  min-height: 100vh;
}

.section-light {
  background: #0f172a;
  color: #e5e7eb;
}

.section-dark {
  background: #020617;
  color: #e5e7eb;
}

.section-accent {
  background: radial-gradient(circle at top left, #EBD3D9 0, #020617 55%); /* couleur marron tres clair pour cote gauche contact, noire */
  color: #e5e7eb;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.section-col {
  min-width: 0;
}

.section-title {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  margin: 0 0 0.75rem;
}

.section-intro {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: #cbd5f5; /* couleur sous-titre eleveur */
}

.section-title.center,
.section-intro.center {
  text-align: center;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-item {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #020617, #0b1120);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.result-race {
  color: #ffffff;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #020617, #0b1120);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Cards services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, #0b1120 0, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.card-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #38bdf8;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
  border-color: #38bdf8;
}

/* Contact */
.contact-infos {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: #cbd5f5; /* couleur texte mail, telphone, adresse */  
}

.contact-infos li + li {
  margin-top: 0.3rem;
}

.contact-form {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(16px);
}

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

.form-row label {
  font-size: 0.85rem;
  color: #e5e7eb; /* couleur texte label formulaire */
}

.form-row input,
.form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.7rem 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb; /* couleur texte ecriture formulaire */
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #e5e7eb; /* couleur texte placeholder formulaire */
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

/* ---------- BOUTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1120;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.8);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
  border-color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.full-width {
  width: 100%;
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
  color: #94a3b8;
  padding-block: 1.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.back-to-top {
  color: #e5e7eb;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- EFFET REVEAL SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
  }

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

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

@media (max-width: 768px) {
  /* Header */
  .nav {
    position: fixed;
    inset-inline: 0;
    top: 3.5rem;
    background: rgba(15, 23, 42, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.open {
    max-height: 220px;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.75rem;
  }

  .burger {
    display: block;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-visual {
    min-height: 260px;
    margin-top: 1.5rem;
  }

  .hero-card {
    position: absolute;
  }

  .section-two-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .header-inner {
    padding-block: 0.5rem;
  }

  .hero {
    padding-top: 3.75rem;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    min-height: 220px;
  }
}
