/* ===================================================================================================
   0. MAIN GENERAL
   =================================================================================================== */

/* Grille */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #131313, #111111);
    background-size: 30px 30px, 30px 30px, cover;
    background-repeat: repeat, repeat, no-repeat;
    background-position: 0 0, 0 0, 0 0;
    /* border-top: 1px solid var(--accent); */
    overflow: hidden;
}

/* Halos */
.about-halo {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, rgba(204, 11, 13, 0) 55%);
    pointer-events: none;
}

/* Halo 1 */
.about-halo:nth-child(1) {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 20%;
    animation: float-1 25s infinite linear;
    opacity: 0.22;
}

/* Halo 2 */
.about-halo:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 70%;
    animation: float-2 30s infinite linear;
    opacity: 0.18;
}

/* Halo 3 */
.about-halo:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 90%;
    left: 25%;
    animation: float-3 22s infinite linear;
    opacity: 0.25;
}

/* Halo 4 */
.about-halo:nth-child(4) {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 80%;
    animation: float-4 35s infinite linear;
    opacity: 0.17;
}

/* Halo 5 */
.about-halo:nth-child(5) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 60%;
    animation: float-5 28s infinite linear;
    opacity: 0.20;
}


/* Animations pour chaque halo */
@keyframes float-1 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(100px, 50px);
    }

    50% {
        transform: translate(50px, 150px);
    }

    75% {
        transform: translate(-70px, 100px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-120px, -60px);
    }

    50% {
        transform: translate(-60px, -180px);
    }

    75% {
        transform: translate(80px, -120px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(80px, -70px);
    }

    66% {
        transform: translate(-60px, -40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-4 {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-100px, 80px);
    }

    40% {
        transform: translate(-150px, 0px);
    }

    60% {
        transform: translate(-70px, -120px);
    }

    80% {
        transform: translate(50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-5 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-50px, 100px);
    }

    50% {
        transform: translate(-150px, 50px);
    }

    75% {
        transform: translate(-100px, -70px);
    }

    100% {
        transform: translate(0, 0);
    }
}


/* ===================================================================================================
   1. HERO SECTION
   =================================================================================================== */
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.125rem;
    align-items: center;
}

.hero-title {
    margin-top: 10rem;
    /* Ajustement pour mobile */
    font-size: 2.5rem;
    /* Taille de base pour mobile */
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
        margin-top: 5rem;
    }
}

.hero-title h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    transform: translateY(30px);
}

.hero-title span {
    color: var(--accent);
}

.hero-content .subhead {
    margin-bottom: 4rem;
    margin-top: 0 !important;
}

.hero-content .subhead::after {
    display: none;
}

.hero-description-container {
    display: grid;
    grid-template-columns: 1fr;
    order: 2;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-description-container {
        grid-template-columns: repeat(2, 1fr);
        order: 1;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    margin-right: 2rem;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: left;
    }
}


.hero-text p {
    font-size: 1.5rem;
    line-height: 1.6;
}

.hero-accent {
    position: relative;
    font-weight: 600;
    font-size: 4vw;
    margin: 4rem 0;
    color: var(--accent);
    line-height: 1.2;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-accent {
        font-size: 2.2vw;
    }
}

@media (min-width: 1200px) {
    .hero-accent {
        font-size: 1.7rem;
        margin: 0;
    }
}

.hero-accent::after {
    position: absolute;
    content: "";
    width: 10%;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 7px var(--text) inset, -20px 0 10px var(--text);
    top: calc(50% - 3px);
    left: 0;
    transform: translateX(-2000%);
    animation: strike-through 3s ease-in infinite;
}

@keyframes strike-through {
    0% {
        transform: translateX(-200%);
    }

    15% {
        transform: translateX(1000%);
    }

    100% {
        transform: translateX(7000%);
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
    gap: 1.5rem;
}

.img-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0.25rem;
    border: 2px solid var(--accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 1s ease;
    display: block;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Base mobile */
    transition: transform 2s ease;
}

@media (min-width: 768px) {
    .img-container {
        height: auto;
    }

    .img-container:hover {
        transform: rotate(-1deg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

    .img-container:hover img {
        transform: scale(1.05) rotate(2deg);
    }

    .img-container img {
        height: 100%;
        margin: auto 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    /* Ajustement pour mobile */
    color: #d1d5db;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* ===================================================================================================
   2. STORY SECTION
   =================================================================================================== */

.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.story-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    transform: translateY(30px);
}

.story-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-icon,
.story-icon svg {
    width: 45px;
    height: 45px;
    color: var(--accent);
}

.story-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}


/* ===================================================================================================
   3. VALUES SECTION
   =================================================================================================== */

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0.25rem;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
    height: 100%;
}

@media (min-width: 768px) {
    .value-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-color: rgba(204, 11, 13, 0.5);
    }
}

.value-icon {
    margin-bottom: 20px;
}

.value-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--accent);
}

.value-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.approach {
    margin-top: 60px;
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
}

@media (min-width: 1024px) {
    .approach-content {
        grid-template-columns: 1fr 1fr;
    }
}

.value-keywords {
    margin-top: 1rem;
    font-style: italic;
    color: var(--accent);
}

.approach-vision-title {
    color: var(--accent);
}

.approach-list {
    list-style: none;
}

.approach-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.approach-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
}

.vision {
    margin-top: 4rem;
    transform: translateY(30px);
}

.vision h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.vision ul {
    margin-top: 2.5rem;
}


/* ===================================================================================================
   4. EXPERTISE SECTION
   =================================================================================================== */

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.expertise-card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0.25rem;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px) rotate(0deg);
    height: 100%;
}

@media (min-width: 768px) {
    .expertise-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-color: rgba(204, 11, 13, 0.5);
        transform: translateY(-4px) rotate(1.5deg);
    }
}

.expertise-icon {
    margin-bottom: 20px;
}

.expertise .svg-icon {
    width: 50px;
    height: 50px;
    background-color: transparent;
    /* fill: var(--accent); */
}

.expertise-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.expertise-intro {
    margin-bottom: 40px;
    transform: translateY(30px);
}


/* ===================================================================================================
   5. TESTIMONIALS SECTION
   =================================================================================================== */

.testimonials-section {
    background: transparent;
    padding-bottom: 5rem;
}

.testimonials {
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(204, 11, 13, 0.05), transparent 100%);
    z-index: -1;
}

/* Ensure the Testimonials H2 centers on mobile and left-aligns on desktop */
.testimonials-section .section-header {
    text-align: center;
}

@media (min-width: 768px) {
    .testimonials-section .section-header {
        text-align: left;
    }
}

/* Override global inline-block for this title so centering applies reliably */
.testimonials-section .section-header .section-title {
    display: block;
}


/* ===================================================================================================
   5. CTA SECTION
   =================================================================================================== */

.cta-section {
    text-align: center;
    font-size: 2.5rem;
    /* Taille de base pour mobile */
}

@media (min-width: 768px) {
    .cta-section {
        font-size: 4rem;
    }
}

.cta-title {
    position: relative;
    font-size: clamp(2.5rem, 8vw, 3.4rem) !important;
    /* Ajustement pour mobile */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8rem;
}

.cta-title::after {
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

/* Phrase d'accroche */
.cta-accent {
    --cta-accent-size: clamp(2.5rem, 8vw, 3.4rem);
    /* Ajustement pour mobile */
    font-weight: 800;
    font-size: var(--cta-accent-size);
    text-align: center;
    line-height: 1.12;
    letter-spacing: .2px;
    margin: 4rem 0 2rem;
    /* Ajustement pour mobile */
    border: 1px solid var(--accent);
    padding: 1rem 2rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .cta-accent {
        margin: 8rem 0;
    }
}

.cta-section p {
    font-size: 1.1rem;
    /* Ajustement pour mobile */
    max-width: 800px;
}

@media (min-width: 768px) {
    .cta-section p {
        font-size: 1.3rem;
    }
}


/* ===================================================================================================
   RESPONSIVE
   =================================================================================================== */

@media (max-width: 768px) {

    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}
