/* ============================================================
   home.css — Blankette
   Styles exclusifs à la page d'accueil (index.html).
   Chargé uniquement sur la route index.
   ============================================================ */

/* ---------------------------
   Hero
--------------------------- */
.hero {
    position: relative;
    padding: 96px 0 84px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    left: -200px;
    top: -180px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--orange);
    border: 5px solid var(--black);
    z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--petrol);
  border: 5px solid var(--black);
  z-index: -1;
}

/* Pleine largeur — pas de grille */
.hero .hero-content {
    position: relative;
    max-width: 1200px;
}

.hero .hero-content h1 {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.hero-text {
    font-size: 1.16rem;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero .hero-content {
    animation: spy-slide-in 0.55s ease both;
}


.hero-card {
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    background:
        linear-gradient(145deg, rgba(17, 16, 13, 0.08), transparent 40%),
        var(--card);
    border: 5px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 190px;
    height: 190px;
    background: var(--orange);
    border: 5px solid var(--black);
    border-radius: 50%;
}

.hero-card::after {
    content: "";
    position: absolute;
    left: -30px;
    top: 32px;
    width: 130%;
    height: 44px;
    background: rgba(17, 16, 13, 0.92);
    transform: rotate(-11deg);
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-content,
.hero-card {
    animation: spy-slide-in 0.55s ease both;
}

/* ---------------------------
   Pastilles décoratives — section réalisations
--------------------------- */

.hero-projects {
    position: relative;
    overflow: hidden;
}

.hero-projects::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 400px;
    bottom: unset;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--petrol);
    border: 5px solid var(--black);
    opacity: 0.55;
    z-index: 0;
}

.hero-projects::after {
    content: "";
    position: absolute;
    right: 320px;
    top: 50px;
    left: unset;
    bottom: unset;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--orange);
    border: 5px solid var(--black);
    opacity: 0.6;
    z-index: 0;
}

.hero-projects .container {
    position: relative;
    z-index: 1;
}


.hero-projects .deco-circle {
    position: absolute;
    right: 200px;
    bottom: 10px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--ochre);
    border: 5px solid var(--black);
    opacity: 0.7;
    z-index: 0;
}


/* ---------------------------
   Responsive home
--------------------------- */

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

@media (max-width: 640px) {
    .hero {
        padding-top: 62px;
    }

    .hero::before {
        width: 260px;
        height: 260px;
        left: -150px;
    }

    .cta {
        padding: 34px 22px;
        box-shadow: 5px 5px 0 var(--black);
    }
}