@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/quicksand-400.woff2") format("woff2");
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/fonts/quicksand-500.woff2") format("woff2");
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../assets/fonts/quicksand-600.woff2") format("woff2");
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../assets/fonts/quicksand-700.woff2") format("woff2");
}

:root {
    --green-light: #3bb777;
    --green-dark: #229857;
    --yellow-light: #fad841;
    --yellow-dark: #faac28;
    --gray: #454849;
    --cream: #fbf9f2;
}

body {
    font-family: "Quicksand", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--gray);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn {
    font-weight: 700;
}

a {
    color: var(--green-dark);
}

a:hover {
    color: var(--green-light);
}

/* ---------- Navbar ---------- */
.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--gray) !important;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-link {
    color: var(--gray) !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-dark) !important;
}

/* ---------- Decorative shapes ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

.decor-shape {
    position: absolute;
    border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
    opacity: 0.16;
    animation: float 9s ease-in-out infinite;
}

.decor-shape--1 {
    width: 260px;
    height: 260px;
    top: -70px;
    left: -80px;
    background: var(--yellow-light);
}

.decor-shape--2 {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 6%;
    background: var(--yellow-dark);
    animation-duration: 7s;
    animation-delay: 0.5s;
    animation-direction: reverse;
}

.decor-shape--3 {
    width: 130px;
    height: 130px;
    top: 18%;
    right: 16%;
    background: #ffffff;
    opacity: 0.12;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

.decor-shape--4 {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
    background: var(--yellow-light);
    animation-duration: 10s;
}

.decor-shape--5 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: 8%;
    background: #ffffff;
    opacity: 0.1;
    animation-duration: 8s;
    animation-delay: 1s;
    animation-direction: reverse;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: #fff;
    padding: 6rem 1rem 5rem;
    text-align: center;
}

.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

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

.hero img.logo-hero {
    height: 180px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .hero img.logo-hero {
        height: 220px;
    }
}

.hero img.logo-hero:hover,
.navbar-brand:hover img {
    animation: logo-bounce 0.6s ease;
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-8px) rotate(-8deg); }
    60% { transform: translateY(0) rotate(6deg); }
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p.tagline {
    font-size: 1.35rem;
    font-weight: 300;
    max-width: 640px;
    margin: 1rem auto 2rem;
}

.btn-accent {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--gray);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--yellow-light);
    border-color: var(--yellow-light);
    color: var(--gray);
}

.btn-pulse {
    animation: pulse-glow 2.2s ease-in-out infinite;
}

.btn-pulse:hover {
    animation: none;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 172, 40, 0.55); }
    50% { box-shadow: 0 0 0 12px rgba(250, 172, 40, 0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .decor-shape,
    .btn-pulse,
    .hero img.logo-hero:hover,
    .navbar-brand:hover img {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Sections ---------- */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    opacity: 0.75;
    margin-bottom: 3rem;
}

.group-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--green-dark);
    margin-bottom: 2rem;
}

.group-title:not(:first-of-type) {
    margin-top: 3rem;
}

.bg-soft {
    background-color: var(--cream);
}

/* ---------- Bitten edges (simple round bites) ---------- */
.bite-mark {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.22));
}

.bite-mark--cream {
    background-color: var(--cream);
}

.bite-mark--gray {
    background-color: var(--gray);
}

/* hero bottom edge */
.bite-1 {
    left: 8%;
    width: 34px;
    height: 34px;
    bottom: -17px;
}

.bite-2 {
    left: 45%;
    width: 56px;
    height: 56px;
    bottom: -28px;
}

.bite-3 {
    left: 85%;
    width: 26px;
    height: 26px;
    bottom: -13px;
}

/* contact top edge */
.bite-4 {
    left: 18%;
    width: 44px;
    height: 44px;
    top: -22px;
}

.bite-5 {
    left: 58%;
    width: 24px;
    height: 24px;
    top: -12px;
}

.bite-6 {
    left: 84%;
    width: 36px;
    height: 36px;
    top: -18px;
}

/* contact bottom edge */
.bite-7 {
    left: 6%;
    width: 28px;
    height: 28px;
    bottom: -14px;
}

.bite-8 {
    left: 46%;
    width: 60px;
    height: 60px;
    bottom: -30px;
}

.bite-9 {
    left: 82%;
    width: 32px;
    height: 32px;
    bottom: -16px;
}

/* ---------- À propos ---------- */
.about-portrait {
    text-align: center;
}

.about-photo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 12px 30px rgba(34, 152, 87, 0.35);
}

.about-name {
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.15rem;
}

.about-role {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 0;
}

.about-text p {
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.about-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.about-chip {
    background-color: var(--cream);
    border: 1px solid rgba(34, 152, 87, 0.35);
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

/* ---------- Project cards ---------- */
.project-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background-color: var(--green-light);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-icon.app {
    background-color: var(--yellow-dark);
}

.project-icon--logo {
    background-color: var(--green-dark);
    overflow: hidden;
}

.project-icon--logo img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
}

.project-card .card-title {
    text-align: center;
}

.project-card .stretched-link-btn {
    margin-top: auto;
}

.services-cta {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--gray);
}

/* ---------- Contact ---------- */
.contact-info {
    color: #fff;
}

.contact-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
}

.contact-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section .section-subtitle {
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.contact-section .form-control {
    border-radius: 10px;
    border: 1px solid #d5d5d5;
    background-color: #fbf9f2;
    padding: 0.75rem 1rem;
}

.contact-section .form-control:focus {
    border-color: var(--green-light);
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(59, 183, 119, 0.25);
}

.contact-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ---------- Legal page ---------- */
.legal-page {
    padding-top: 8rem;
}

.legal-page .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    line-height: 1.7;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--gray);
    color: #f1f1f1;
    padding: 2.5rem 0;
}

footer a {
    color: var(--yellow-light);
}

footer a:hover {
    color: var(--yellow-dark);
}

footer .footer-logo {
    height: 32px;
    width: auto;
    margin-right: 0.5rem;
}

footer .footer-loc {
    opacity: 0.75;
    font-size: 0.9rem;
}

/* ---------- Réseaux sociaux ---------- */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.social-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 110px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-badge:hover {
    color: var(--green-dark);
}

.social-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon svg {
    fill: currentColor;
}

.social-badge:hover .social-icon {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.social-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}
