/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --second-color: #a09dab;
    --second-bg-color: #f5f5f5;
    --main-color: #f75023;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

header.sticky {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 12px 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Header transparent — texte blanc sur l'image de fond */
header:not(.sticky) .navlist a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

header:not(.sticky) .top-btn {
    border-color: #ffffff;
    color: #ffffff;
}

/* Quand sticky — retour au noir normal */
header.sticky .navlist a {
    color: var(--text-color);
}

header.sticky .top-btn {
    border-color: var(--main-color);
    color: var(--main-color);
}

body {
    padding-top: 0px;
    background: var(--bg-color);
    color: var(--text-color);
}

span {
    color: var(--main-color);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */


.logo img {
    max-width: 100%;
    height: auto;
}

.navlist {
    display: flex;
}

.navlist li {
    position: relative;
}

.navlist a {
    font-size: var(--p-font);
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 27px;
    display: block;
}

.navlist a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--main-color);
    bottom: -3px;
    left: 0;
    transition: ease 0.40s;
}

.navlist a:hover::after {
    width: 100px;
}

#menu-icon {
    font-size: 35px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    color: var(--bg-color);
    background: var(--main-color);
    padding: 10px 40px;
    font-size: var(--p-font);
    font-weight: 500;
    line-height: 24px;
    border-radius: 30px;
    transition: ease 0.40s;
}

.btn:hover {
    transform: scale(1.1);
}

.top-btn {
    display: inline-block;
    padding: 9px 30px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 30px;
    color: var(--main-color);  /* ← était var(--text-color) = noir invisible */
    letter-spacing: 1px;
    font-size: var(--p-font);
    font-weight: 500;
    transition: ease 0.50s;
}
.top-btn:hover {
    transform: scale(1.1);
    background: var(--main-color);
    border: 2px solid var(--main-color);
    color: var(--bg-color);
}

/* ============================================================
   SECTIONS (shared layout)
   ============================================================ */
section {
    padding: 100px 18%;
}

.heading {
    text-align: center;
}

.heading h3 {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 500;
}

.heading h2 {
    font-size: var(--h2-font);
    font-weight: 500;
    margin: 7px 0px 20px;
    line-height: 1.1;
}

.heading p {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 28px;
}

/* ============================================================
   HOME
   ============================================================ */
/* HOME */
.home {
    min-height: 100vh;
    height: 100%;
    width: 100%;
    background: url(images/bg.avif) no-repeat center center / cover;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    grid-gap: 4rem;
    padding: 90px 18% 0 18% !important;  /* ← remplace padding-top: 90px */
}

.home-text h3 {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 500;
}

.home-text h1 {
    margin: 10px 0px 25px;
    font-size: var(--big-font);
    line-height: 1;
    font-weight: 500;
}

.home-text h5 {
    margin-bottom: 23px;
    font-size: 19px;
    font-weight: 500;
}

.home-text p {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 28px;
    margin-bottom: 20px;
}

.home-img img {
    max-width: 100%;
    width: 540px;
    height: auto;
}

.social {
    display: flex;
    justify-content: center;
}

.social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    font-size: 17px;
    color: var(--bg-color);
    margin-right: 22px;
    margin-bottom: 30px;
    transition: 0.5s;
}

.social a:hover {
    transform: scale(1.1);
    background: var(--main-color);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 100px 18%;
}

.about-img img {
    max-width: 100%;
    width: 540px;
    height: auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 500;
}

.about-text h2 {
    font-size: var(--h2-font);
    font-weight: 500;
    margin: 8px 0px 25px;
    line-height: 1.1;
}

.about-text p {
    max-width: 550px;
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 28px;
    margin-bottom: 45px;
}

/* Internships */
.internships {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.internships-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.internship-card {
    background: var(--second-bg-color);
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid var(--main-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.internship-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.internship-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.internship-meta h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.internship-date {
    font-size: 13px;
    color: var(--main-color);
}

.internship-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--second-color);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section {
    background: var(--second-bg-color);
    text-align: center;
    padding: 100px 10%;
}

.skills-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0px 5px 25px rgb(0 0 0 / 8%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 35px rgb(0 0 0 / 12%);
}

.skill-icon img {
    width: 70px;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.skill-card p {
    font-size: 14px;
    color: var(--second-color);
    line-height: 1.6;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 5rem;
    text-align: center;
    cursor: pointer;
}

.col {
    position: relative;
}

.col img {
    max-width: 100%;
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    transition: all 0.40s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.layer:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.5) 0%, #191919);
}

.layer h3 {
    width: 100%;
    font-size: 25px;
    font-weight: 500;
    color: var(--bg-color);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.40s;
    margin: 0;
}

.layer h5 {
    width: 100%;
    font-size: 17px;
    font-weight: 500;
    color: var(--bg-color);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.40s;
    margin: 0;
}

.layer:hover h3,
.layer:hover h5 {
    opacity: 1;
    transform: translateY(0);
}

.layer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 2px solid var(--bg-color);
    border-radius: 20px;
    color: var(--bg-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.40s;
}

.layer:hover .layer-btn {
    opacity: 1;
    transform: translateY(0);
}

.layer-btn:hover {
    background: var(--bg-color);
    color: #191919;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, auto));
    grid-gap: 2rem;
    align-items: start;
    margin-top: 5rem;
}

.row {
    background: var(--bg-color);
    box-shadow: 18px 0px 87px 0px rgb(10 15 70 / 7%);
    border-radius: 12px;
    padding: 45px;
    transition: ease 0.45s;
    cursor: pointer;
}

.row:hover {
    will-change: transform;
    transform: perspective(1000px) rotateX(4.80deg) rotateY(10.23deg) scale3d(1.05, 1.05, 1.05);
}

.s img {
    height: 65px;
    width: 65px;
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.s.s-one img  { background: #baebcd; }
.s.s-two img  { background: #50A782; }
.s.s-three img{ background: #922CB0; }
.s.s-four img { background: #D92456; }
.s.s-five img { background: #60D147; }

.row h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 2px;
}

.row h5 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 19px;
}

.row p {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 28px;
}

/* ============================================================
   CTA (Stats)
   ============================================================ */
.cta {
    background: var(--second-bg-color);
    text-align: center;
}

.cta-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 5rem;
    text-align: center;
}

.wrap {
    border-radius: 12px;
    padding: 50px;
    transition: ease 0.40s;
    cursor: pointer;
    box-shadow: 18px 0px 87px 0px rgb(10 15 70 / 7%);
}

.wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgb(0 0 0 / 15%);
}

.wrap.one { background: #27E0C1; }
.wrap.two { background: #DF8D16; }
.wrap.three { background: #DF1684; }

.wrap h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.wrap p {
    font-size: var(--p-font);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: var(--second-bg-color);
    padding: 100px 18%;
}

.contact .container {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.contact .center {
    text-align: center;
    margin-bottom: 40px;
}

.contact .center h3 {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--main-color);
    margin-bottom: 10px;
}

.contact .center h2 {
    font-size: var(--h2-font);
    font-weight: 700;
    margin-bottom: 16px;
}

.contact .center p {
    font-size: var(--p-font);
    color: var(--second-color);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact .action form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact .action form input,
.contact .action form textarea {
    width: 100%;
    max-width: 500px;
    padding: 14px 22px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.contact .action form input:focus,
.contact .action form textarea:focus {
    border-color: var(--main-color);
}

.contact .action form input::placeholder,
.contact .action form textarea::placeholder {
    color: var(--second-color);
}

.contact .action form textarea {
    resize: none;
    min-height: 130px;
}

.contact .action form input[type="submit"] {
    width: auto;
    padding: 14px 40px;
    background: var(--main-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.contact .action form input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #111;
    color: #ccc;
    padding: 60px 18% 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #888;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--main-color);
    margin-bottom: 18px;
}

.footer-contact ul,
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #888;
}

.footer-contact li i {
    color: var(--main-color);
    font-size: 1.1rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: #888;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--main-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #555;
}



/* ============================================================
   RESPONSIVE — Tablet (≤ 1425px)
   ============================================================ */
@media (max-width: 1425px) {

    .home {
        padding: 90px 3% 0 3% !important;
    }

    header {
        padding: 16px 3%;
    }

    header.sticky {
        padding: 10px 3%;
    }

    section {
        padding: 70px 3%;
    }

    .about {
        padding: 70px 3%;
    }

    .contact {
        padding: 70px 3%;
    }

    :root {
        --big-font: 4rem;
        --h2-font: 2.3rem;
    }
}

/* ============================================================
   RESPONSIVE — Mobile menu (≤ 920px)
   ============================================================ */
@media (max-width: 920px) {
    #menu-icon {
        display: block;
    }

  header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
}
    .navlist {
        position: absolute;
        top: -600px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        padding: 20px 0;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.35s ease;
    }

    .navlist.active {
        top: 100%;
    }

    .navlist a {
        display: block;
        padding: 15px 25px;
        margin: 5px 15px;
        color: var(--text-color);
        border-radius: 8px;
        transition: background 0.3s;
    }

    .navlist a:hover {
        background: rgba(247, 80, 35, 0.1);
        color: var(--main-color);
    }

    .navlist a::after {
        display: none;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

     .home {
        padding-top: 110px;
         padding: 110px 5% 0 5% !important;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 800px)
   ============================================================ */
@media (max-width: 800px) {
    :root {
        --big-font: 3.4rem;
        --h2-font: 2rem;
    }

    section {
        padding: 65px 5%;
    }

    .about {
        flex-direction: column;
        padding: 65px 5%;
    }

    .about-img {
        text-align: center;
    }

    .contact {
        padding: 65px 5%;
    }

    .home {
          padding-top: 100px;
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 120px 5% 40px 5% !important;
    }

    .home-text {
        padding-top: 20px;
    }

    .home-text h1 {
        font-size: 2.2rem;
    }

    .home-img {
        display: flex;
        justify-content: center;
    }

    .home-img img {
        width: 280px;
        height: auto;
    }

    .cta-box {
        grid-template-columns: 1fr;
    }

    .wrap {
        padding: 35px 25px;
    }

    .portfolio-content {
        grid-template-columns: 1fr;
    }

    .col img {
        width: 100%;
        height: 280px;
    }

        .footer {
        padding: 50px 5% 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   RESPONSIVE — Small mobile (≤ 540px)
   ============================================================ */
@media (max-width: 540px) {
    :root {
        --big-font: 2.8rem;
        --h2-font: 1.8rem;
        --p-font: 1rem;
    }

    .contact .action form input,
    .contact .action form textarea {
        width: 100%;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .row {
        padding: 30px 20px;
    }
}