html {
    scroll-behavior: smooth;
}

:root {
    --primary: #2c3e50;
    --accent: #d35400;
    --light: #f4f4f4;
    --white: #ffffff;
    --blue-contact: #004a87;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Ancres de défilement */
#projets, #process { scroll-margin-top: 100px; }
#contact { scroll-margin-top: 160px; }

h1 { color: white; font-size: 3rem; margin-bottom: 1rem; }

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Header & Navbar */
header {
    height: 140px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    width: 190px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 2rem; }

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.9rem;
    color: #FF7F00;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.contact-item i { width: 20px; text-align: center; color: black; }

/* Sections */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/photo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: 0.3s;
}

.propos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    gap: 40px;
}

.propos-contenu { flex: 1; }
.propos-contenu h2 { text-decoration: underline; }
.propos img { width: 40%; object-fit: cover; }

.portfolio { padding: 5rem 5%; background: var(--white); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

.project-card:hover .overlay { bottom: 0; }
.project-card:hover img { transform: scale(1.1); }

.process { padding: 5rem 5%; background: var(--light); text-align: center; }

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.step { flex: 1; min-width: 200px; padding: 1rem; }
.step i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }

/* Formulaire */
.quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    background-color: #f9f9f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    background-color: var(--white);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.1);
}

.btn-submit {
    background-color: #333;
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover { background-color: #000; transform: translateY(-2px); }
.required { color: #e74c3c; margin-left: 3px; }

/* Footer */
footer { background: var(--primary); color: var(--white); padding: 3rem 5% 1rem;}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
footer img { width: 300px; }
footer p { margin: 0 5%; }

.footer-social ul { display: flex; list-style: none; gap: 20px; }
.footer-social i { font-size: 24px; color: #fafafa; transition: 0.3s; }
.footer-social i:hover { color: #007bff; transform: scale(1.2); }

.copy { text-align: center; margin-top: 2rem; font-size: 0.8rem; opacity: 0.7; }

/* Crédit Développeur */
.developer-credit {
    border-left: 2px solid #FF7F00;
    padding-left: 15px;
    margin: 20px 0;
}
.dev-contact {
    display: flex;
    gap: 15px;
    list-style: none; /* Supprime les puces de liste */
    padding: 0;       /* Enlève le décalage automatique des listes */
    margin: 0;
}

.dev-contact a {
    text-decoration: none; /* Enlève le soulignement sur les icônes */
    display: flex;
    align-items: center;
}

.credit-title { font-size: 10px; text-transform: uppercase; color: #888; margin-bottom: 5px; }
.dev-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.dev-contact { display: flex; gap: 15px; }
.dev-contact a { color: #aaa; transition: 0.3s; }
.dev-contact a:hover { color: #FF7F00; }

/* Responsif */
@media (max-width: 768px) {
    header { height: auto; padding: 10px 0; }
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links li { margin: 0 10px; }
    .logo-img { width: 140px; }
    .hero h1 { font-size: 1.8rem; }
    .propos { flex-direction: column; padding: 30px 20px; text-align: center; }
    .propos img { width: 100%; order: -1; }
    .steps { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    .nav-links { font-size: 0.9rem; }
    .grid { grid-template-columns: 1fr; }
}