/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}


/* Styles pour l'uniformisation des dimensions */
.portfolio-box {
    height: 400px; /* Hauteur fixe */
    display: flex;
    flex-direction: column;
}

.portfolio-img-container {
    height: 250px;
    overflow: hidden;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.portfolio-layer {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Conserve les animations existantes */
.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

/* Media Queries existants à conserver */
@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 35vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 35vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.skills h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.skill-container {
    margin-bottom: 3rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill span {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.progress {
    height: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.progress::after {
    content: attr(data-width);
    position: absolute;
    right: 0;
    top: -2.5rem;
    font-size: 1.2rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.portfolio {
    background: var(--second-bg-color);
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}



/* start footer  */


/* Footer - Structure Principale */
.footer {
    background: linear-gradient(135deg, var(--second-bg-color) 0%, var(--bg-color) 100%);
    color: var(--text-color);
    padding: 5rem 9% 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col {
    margin-bottom: 3rem;
}

/* Éléments d'identité */
.footer-logo {
    margin-bottom: 2rem;
}

.logo-name {
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    color: var(--main-color);
}

.logo-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-mission {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-certifications {
    margin-top: 2rem;
}

.footer-certifications span {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.certification-badges img {
    height: 40px;
    margin-right: 1rem;
    filter: grayscale(100%) brightness(2);
    transition: filter 0.3s ease;
}

.certification-badges img:hover {
    filter: grayscale(0) brightness(1);
}

/* Navigation & Services */
.footer-title {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--main-color);
}

.footer-nav li, .footer-services li {
    margin-bottom: 1.2rem;
    list-style: none;
}

.footer-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--main-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--main-color);
    padding-left: 2rem;
}

.footer-link:hover::before {
    opacity: 1;
}

.footer-services li {
    font-size: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.footer-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color);
}

/* Contact */
.footer-contact {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item i {
    color: var(--main-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.btn-footer {
    background: var(--main-color);
    color: var(--bg-color);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.btn-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.3);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* Footer Bar */
.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bar p {
    font-size: 1.4rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-color);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--main-color);
}

.footer-legal span {
    opacity: 0.3;
}

.back-to-top {
    width: 45px;
    height: 45px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-bar-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link {
        padding-left: 0;
    }
    
    .footer-link:hover {
        padding-left: 1rem;
    }
    
    .footer-services li {
        padding-left: 0;
    }
    
    .footer-services li::before {
        display: none;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Animation pour l'année dynamique */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#current-year {
    animation: fadeIn 1s ease-in-out;
}

/* end footer  */



.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    
    
    section {
        padding: 10rem 3% 2rem;
    }
    
    .services {
        padding-bottom: 7rem;
    }
    
    .portfolio {
        padding-bottom: 7rem;
    }
    
    .contact {
        min-height: auto;
    }
    
    .footer {
        padding: 2rem 3%;
    }
}

/* Ajouter cette media query pour gérer l'affichage sur 2 colonnes à partir de 768px */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Et sur 1 colonne en dessous de 617px comme existant déjà */

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    
    .home {
        flex-direction: column;
    }
    
    .home-content h3 {
        font-size: 2.6rem;
    }
    
    .home-content h1 {
        font-size: 5rem;
    }
    
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    
    .about {
        flex-direction: column-reverse;
    }
    
    .about img {
        width: 70vw;
        margin-top: 4rem;
    }
    
    .services h2 {
        margin-bottom: 3rem;
    }
    
    .portfolio h2 {
        margin-bottom: 3rem;
    }
    
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }
    
    .about-img img {
        width: 90vw;
    }
    
    .footer {
        flex-direction: column-reverse;
    }
    
    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}


/*  STRATEGIE PAGE */

/* Hero Section Stratégie Digitale */
.digital-strategy-hero {
    background: linear-gradient(rgba(31, 36, 45, 0.9), rgba(31, 36, 45, 0.9)), 
                url('../images/hero-strategie.jpg') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 9%;
    color: var(--text-color);
    text-align: left;
}

.digital-strategy-hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.digital-strategy-hero h3 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.digital-strategy-hero p {
    font-size: 1.8rem;
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Service Details */
.service-details {
    padding: 10rem 9% 5rem;
    background: var(--second-bg-color);
}

.service-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.3);
}

.service-content {
    flex: 1;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--second-bg-color);
    font-size: 2rem;
}

.step h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 10rem 9%;
    background: var(--bg-color);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.benefit-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.benefit-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.1);
}

.benefit-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.benefit-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.benefit-box p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Case Studies */
.case-studies {
    padding: 10rem 9%;
    background: var(--second-bg-color);
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: 5rem;
}

.case-card {
    background: var(--bg-color);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
}

.case-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-content {
    padding: 3rem;
}

.case-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.case-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-case {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--main-color);
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-case:hover {
    gap: 1.5rem;
}

/* CTA Section */
.cta-strategy {
    padding: 8rem 9%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('couvcta.jpg') no-repeat center center/cover;
    text-align: center;
    color: var(--text-color);
    min-height: 20vh;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
    border-radius: 5rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .service-container {
        flex-direction: column;
    }
    
    .approach-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .digital-strategy-hero h1 {
        font-size: 4rem;
    }
    
    .digital-strategy-hero h3 {
        font-size: 2rem;
    }
    
    .cases-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .digital-strategy-hero {
        text-align: center;
    }
    
    .digital-strategy-hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-content h2 {
        font-size: 2.8rem;
    }
    
    .cta-content p {
        font-size: 1.6rem;
    }
}