@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #d81159;
    --pink-dark: #8f2d56;
    --yellow: #ffbc42;
    --yellow-light: #ffc75f;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */

.nav-menu a:hover {
    color: var(--pink);
    border-radius: 8px;
}

.btn-contact {
    background: var(--pink);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 17, 89, 0.3);
}

/* Hero Section with Parallax */
.hero {
    margin-top: 0 auto;
    height: 60vh;
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(
        135deg,
        var(--yellow) 0%,
        var(--yellow-light) 100%
    );
    background-attachment: fixed; */
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--gray-900);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--gray-900);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem;
}

.btn-primary {
    background: var(--pink);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(216, 17, 89, 0.3);
}

/* Services Section with Parallax */
.services {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pink);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--pink);
    box-shadow: 0 20px 40px rgba(216, 17, 89, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.3rem;
    color: var(--pink);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Brand Section with Parallax */
.brand-section {
    padding: 12rem 0;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.brand-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-logo {
    font-size: 6rem;
    font-weight: 900;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 0;
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.portfolio-item:hover {
    border-color: var(--pink);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(216, 17, 89, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.portfolio-overlay h3 {
    color: var(--white);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Process Section with Parallax */
.process {
    padding: 10rem 0;
    background: linear-gradient(
        135deg,
        var(--yellow-light) 0%,
        var(--white) 100%
    );
    background-attachment: fixed;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.process-item {
    text-align: center;
    position: relative;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(216, 17, 89, 0.2);
}

.process-item:hover .process-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 10px 30px rgba(216, 17, 89, 0.4);
}

.process-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.process-item h3 {
    color: var(--pink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.process-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* CTA Section with Parallax */
.cta {
    padding: 10rem 0;
    background: linear-gradient(135deg, var(--pink) 0%, var(--white) 100%);
    background-attachment: fixed;
    text-align: center;
    color: var(--pink-dark);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--yellow);
    color: var(--gray-900);
}

.cta .btn-primary:hover {
    background: var(--yellow-light);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--pink);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =====================================*/
/* Responsive */
/* ==================================== */

/* Portrait */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero {
        height: 50vh;
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Portrait */
/* Très Petits smartphones */
@media (min-width: 200px) and (max-width: 319px) and (orientation: portrait) {
    .hero {
        margin-top: 0 auto;
        height: 120vh;
        padding: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .hero-content h1 {
        font-size: 1rem;
    }

    .hero-content .subtitle {
        font-size: 0.8rem;
        color: var(--gray-900);
        opacity: 0.8;
        margin-bottom: 2.5rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.5rem;
    }

    .btn-contact {
        background: var(--pink);
        color: var(--white);
        border: none;
        padding: 0.25rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
}

/* Petits smartphones (ex: iPhone SE, anciens Android) */
@media (min-width: 320px) and (max-width: 359px) and (orientation: portrait) {
    .hero {
        margin-top: 0 auto;
        height: 75vh;
        padding: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
        color: var(--gray-900);
        opacity: 0.8;
        margin-bottom: 2.5rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.5rem;
    }
}
/* Smartphones moyens (ex: iPhone 7/8, Galaxy S9) */
@media (min-width: 360px) and (max-width: 479px) and (orientation: portrait) {
    .hero {
        margin-top: 0 auto;
        height: 50vh;
        padding: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    .hero-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content .subtitle {
        font-size: 1rem;
        color: var(--gray-900);
        opacity: 0.8;
        margin-bottom: 2.5rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.5rem;
    }
}
/* ======================================= */
/*                   Paysage                */
/* ======================================= */
/* très petits smartphones en paysage */
@media (min-width: 200px) and (max-width: 359px) and (orientation: landscape) {
    .hero {
        margin-top: 0 auto;
        height: 120vh;
        padding: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .hero-content h1 {
        font-size: 1rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
        color: var(--gray-900);
        opacity: 0.8;
        margin-bottom: 2.5rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.5rem;
    }

    .btn-contact {
        background: var(--pink);
        color: var(--white);
        border: none;
        padding: 0.25rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
}

/* Petits smartphones en paysage */
@media (min-width: 480px) and (max-width: 719px) and (orientation: landscape) {
    .hero {
        margin-top: 0 auto;
        height: 100vh;
        padding: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* .hero-content h1 {
        font-size: 2rem;
    } */

    .hero-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1rem;
        color: var(--gray-900);
        opacity: 0.8;
        margin-bottom: 2.5rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.5rem;
    }
}

/* Grands smartphones en paysage */
@media (min-width: 720px) and (max-width: 899px) and (orientation: landscape) {
    .hero {
        margin-top: 0 auto;
        height: 100vh;
        padding: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1rem;
        color: var(--gray-900);
        opacity: 0.8;
        margin-bottom: 2.5rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.5rem;
    }
}

/* ====================== */
/* 💻 TABLETTES */
/* ====================== */

/* Portrait */
/* Petites tablettes (ex: Galaxy Tab, Nexus 7) */
@media (min-width: 600px) and (max-width: 767px) and (orientation: portrait) {
}

/* Tablettes moyennes (ex: iPad standard) */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .hero {
        margin-top: 0 auto;
        height: 40vh;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
}

/* Grandes tablettes (ex: iPad Pro 11") */
@media (min-width: 1024px) and (max-width: 1199px) and (orientation: portrait) {
    .hero {
        margin-top: 0 auto;
        height: 30vh;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
}

/* Grandes tablettes en paysage (ex: iPad Pro 12.9") */
@media (min-width: 1200px) and (max-width: 1365px) and (orientation: landscape) {
    .hero {
        margin-top: 0 auto;
        height: 100vh;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
}

/* Portfolio Setion */
.dp-portfolio {
    padding: 6rem 0;
    background: var(--gray-50);
    position: relative;
}

/* Titres de section (si pas déjà définis) */
.dp-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 1rem;
}

.dp-section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Portfolio Item */
.dp-portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dp-portfolio-item:hover {
    border-color: var(--pink);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(216, 17, 89, 0.2);
}

/* Image du portfolio */
.dp-portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dp-portfolio-item:hover .dp-portfolio-img {
    transform: scale(1.15);
}

/* Overlay avec dégradé */
.dp-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(216, 17, 89, 0.95) 0%,
        rgba(255, 188, 66, 0.85) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.dp-portfolio-item:hover .dp-portfolio-overlay {
    opacity: 1;
}

/* Badge catégorie en haut (effet alternatif) */
.dp-portfolio-overlay::before {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s ease;
}

.dp-portfolio-item:hover .dp-portfolio-overlay::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Titre du projet */
.dp-portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.dp-portfolio-item:hover .dp-portfolio-title {
    transform: translateY(0);
    opacity: 1;
}

/* Catégorie du projet */
.dp-portfolio-category {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    position: relative;
    padding-left: 2rem;
}

/* Petit icône avant la catégorie */
.dp-portfolio-category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 2px;
    background: var(--yellow);
}

.dp-portfolio-item:hover .dp-portfolio-category {
    transform: translateY(0);
    opacity: 1;
}

/* Effet de coins arrondis avec animation */
.dp-portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--yellow);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
    pointer-events: none;
}

.dp-portfolio-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Animation d'apparition au scroll */
.dp-portfolio-item {
    opacity: 0;
    transform: translateY(30px);
}

.dp-portfolio-item.animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* Variations pour créer de la diversité */
.dp-portfolio-item:nth-child(even) .dp-portfolio-overlay {
    background: linear-gradient(
        to top,
        rgba(255, 188, 66, 0.95) 0%,
        rgba(216, 17, 89, 0.85) 50%,
        transparent 100%
    );
}

.dp-portfolio-item:nth-child(even) .dp-portfolio-overlay::before {
    background: var(--pink);
}

.dp-portfolio-item:nth-child(even) .dp-portfolio-category::before {
    background: var(--pink);
}

/* Responsive */
@media (max-width: 991px) {
    .dp-portfolio {
        padding: 5rem 0;
    }

    .dp-portfolio-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .dp-portfolio {
        padding: 4rem 0;
    }

    .dp-section-title {
        font-size: 1.75rem;
    }

    .dp-portfolio-title {
        font-size: 1.2rem;
    }

    .dp-portfolio-category {
        font-size: 0.85rem;
    }

    .dp-portfolio-overlay {
        padding: 1.5rem;
    }
}

/* Animation au scroll (si pas déjà défini) */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
