:root {
    --brandColor: #FB9A40;
    --primFontSize: 30px;
    --secFontSize: 20px;
    --primTextColor: #191919;
    --titleFont: 'Anton', sans-serif;
    --cardBg: #e9e9e9;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    text-decoration: none;
    color: var(--primTextColor);
}

/* ---------- HEADER---------- */
header {
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-container img{
    border-radius: 40px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-container h1 {
    color: var(--brandColor);
    font-family: var(--titleFont);
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-size: 18px;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--brandColor);
}

/* ---------- HERO ---------- */
#hero-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 40px 0;
    min-height: 450px;
}

#hero h1 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#hero h1 span {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-family: 'Brunson', var(--titleFont);
    font-weight: normal;
    line-height: 1.1;
}

/* ---------- TÂCHES FLOTTANTES AUTOUR DU TEXTE ---------- */
.task-sample {
    position: absolute;
    pointer-events: none; /* pour ne pas gêner les clics */
    width: 100px;
    height: 34px;
}

.task-sample .task-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    will-change: transform;
    padding: 0 12px;
    white-space: nowrap;
}

/* Positions autour du texte */
.task1 {
    top: 5%;
    left: -10px;
}
.task1 .task-inner {
    background-color: #e9967a;
    --rot: -20deg;
}

.task2 {
    top: 5%;
    right: -10px;
}
.task2 .task-inner {
    background-color: #f0e68c;
    --rot: 20deg;
    color: #333;
}

.task3 {
    top: 85%;
    right: -10px;
}
.task3 .task-inner {
    background-color: #9932cc;
    --rot: 10deg;
}

/* Animation de flottement */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rot));
    }
    50% {
        transform: translateY(-14px) rotate(var(--rot));
    }
}

/* ---------- BOUTONS ---------- */
.btn-try {
    background-color: var(--brandColor);
    width: 180px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(251, 154, 64, 0.4);
    user-select: none;
}

.btn-try:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(251, 154, 64, 0.5);
}

.btn-try:active {
    transform: scale(0.95);
}

.btn-try a {
    font-size: var(--secFontSize);
    font-family: var(--titleFont);
    color: #fff;
}

/* Animation clic */
.btn-try.clicked {
    animation: clickPop 0.3s ease;
}

@keyframes clickPop {
    0% {
        transform: scale(0.9);
    }
    40% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ---------- DIVIDER ---------- */
#divider {
    background-color: var(--primTextColor);
    height: 60px;
    width: 100%;
}

/* ---------- SECTIONS ---------- */
section {
    padding: 40px 20px;
    height: 70vh;
}

.section-title p {
    font-size: clamp(1.6rem, 4vw, var(--primFontSize));
    font-family: var(--titleFont);
    margin-bottom: 20px;
}

/* ---------- PROBLEM / SOLUTION ---------- */
#pb-section,
#solution-section {
    min-height: 70vh;
}

#pb-box,
#solution-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
}

#pb-img,
#solution-img {
    width: 350px;
    max-width: 90%;
    height: 350px;
    background-color: #d6d6d6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

#pb-img img,
#solution-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#pb-text,
#solution-text {
    max-width: 400px;
    font-size: 1.2rem;
    line-height: 1.6;
}

#solution-section {
    background-color: #FB9A40;
}
#solution-section div p{
    color: #fff;
}

#solution-section #solution-text p {
    color: #fff;
}

/* ---------- CARDS ---------- */
#explaination-section{
    height: auto;
}
#grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.card {
    width: 250px;
    background-color: var(--cardBg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 18px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card .card-title {
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-align: center;
}

.card .card-body {
    color: #656565;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- CTA ---------- */
#cta-section {
    min-height: 70vh;
    background-color: var(--primTextColor);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#cta-section div h1 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#cta-section div h1 span {
    color: #fff;
    font-size: clamp(2.8rem, 8vw, 4.8rem);
    font-family: 'Brunson', var(--titleFont);
}

#cta-section .btn-try {
    margin: 30px auto 0;
}

/* ---------- PARALLAX IMAGES ---------- */
.parallax-img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .task1 {
        left: -5px;
    }
    .task2 {
        right: -5px;
    }
    .task3 {
        right: -5px;
    }
}

@media (max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 16px;
    }

    #pb-box,
    #solution-box {
        flex-direction: column;
        text-align: center;
    }

    #solution-box {
        flex-direction: column-reverse;
    }

    #pb-img,
    #solution-img {
        width: 280px;
        height: 280px;
    }

    #pb-text,
    #solution-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .task-sample {
        width: 80px;
        height: 30px;
    }
    .task1 {
        left: 0;
        top: 2%;
    }
    .task2 {
        right: 0;
        top: 2%;
    }
    .task3 {
        right: 0;
        top: 88%;
    }

    #hero h1 span {
        font-size: clamp(3rem, 11vw, 4rem);
    }
    #hero{
        top: -50px
    }

}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }
    .logo-container h1 {
        font-size: 22px;
    }

    .nav-links {
        gap: 12px;
    }
    .nav-links li a {
        font-size: 14px;
    }

    /* On cache les tâches sur très petit écran pour éviter le chevauchement */
    .task-sample {
        display: none;
    }

    #pb-img,
    #solution-img {
        width: 220px;
        height: 220px;
    }

    .card {
        width: 100%;
        max-width: 300px;
    }

    .btn-try {
        width: 150px;
        height: 44px;
    }
    .btn-try p {
        font-size: 16px;
    }
        
    }
/* ===== FOOTER grid-container===== */
    #main-footer {
        background-color: var(--primTextColor);
        color: #fff;
        padding: 40px 20px;

    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-content h4 {
        font-family: var(--titleFont);
        font-size: 1.2rem;
        margin-bottom: 12px;
        color: var(--brandColor);
    }

    .footer-content a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-content a:hover {
        color: var(--brandColor);
    }

    .footer-contact p,
    .footer-links ul li {
        margin-bottom: 6px;
    }

    .footer-links ul {
        list-style: none;
        padding: 0;
    }

    .footer-copy {
        align-self: flex-end;
        color: #aaa;
        font-size: 0.9rem;
    }

    /* Responsive footer */
    @media (max-width: 700px) {
        .footer-content {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .footer-copy {
            align-self: center;
        }
    }

    /* ===== PRESENTATION SECTION ===== */
#presentation-section {
    position: relative;
    padding: 80px 20px;
    min-height: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf6ed 0%, #fff4e6 100%);
    /* dégradé doux pour se fondre */
    text-align: center;
}

/* Fond parallaxe (couche qui bouge) */
#presentation-section .presentation-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 40%, rgba(251, 154, 64, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(251, 154, 64, 0.05) 0%, transparent 50%);
    animation: bgParallax 20s linear infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes bgParallax {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-5%, -5%) scale(1.1);
    }
}

/* Contenu (au-dessus du fond) */
.presentation-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.presentation-content h2 {
    font-family: var(--titleFont);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--primTextColor);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.presentation-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: #333;
    font-weight: 300;
}

/* Formes décoratives flottantes (parallaxe) */
.float-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    background: var(--brandColor);
    pointer-events: none;
    z-index: 1;
    animation: floatShape 12s ease-in-out infinite alternate;
}

.shape-1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 5%;
    animation-duration: 14s;
    background: radial-gradient(circle, var(--brandColor), transparent 70%);
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 8%;
    animation-duration: 18s;
    animation-delay: -4s;
    background: radial-gradient(circle, #f0b27a, transparent 70%);
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 60%;
    animation-duration: 16s;
    animation-delay: -8s;
    background: radial-gradient(circle, #d35400, transparent 70%);
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(30px, -20px) scale(1.1) rotate(15deg);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9) rotate(-10deg);
    }
    100% {
        transform: translate(15px, -15px) scale(1.05) rotate(5deg);
    }
}

/* Responsive */
@media (max-width: 700px) {
    #presentation-section {
        padding: 60px 16px;
        min-height: 50vh;
    }
    .presentation-content {
        padding: 24px 16px;
        backdrop-filter: blur(2px);
    }
    .shape-1 {
        width: 100px;
        height: 100px;
        top: 5%;
        left: -10%;
    }
    .shape-2 {
        width: 70px;
        height: 70px;
        bottom: 5%;
        right: -5%;
    }
    .shape-3 {
        display: none;
    }
}

/* Screen */

#screnshot-section{
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#screnshot-section div{
    width: 400px;
    height: 400px;
}
#screnshot-section div img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.version-date {
    font-size: 0.9rem;
    color: #6B6B6B;
    margin-left: 12px;
    font-weight: 400;
}