html {
    scroll-behavior: smooth;
}

/* Reset box-sizing global */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Typographies globales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F4EDE2; /* beige sable */
    color: #0E0E0E; /* noir profond */
}

/* Header */
.header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(244, 237, 226, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

/* Menu */
.nav {
    max-width: 100%;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: #0E0E0E;
    font-weight: 500;
    position: relative;
    font-size: 20px;
}

/* Underline terracotta animé */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #C56A5A;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* === HERO SECTION === */

.hero {
    min-height: 100vh;
    padding: 120px 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #7b6a5b;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.hero-text {
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.btn-primary {
    background-color: #C56A5A;
    color: #F4EDE2;
    border-color: #C56A5A;
    box-shadow: 0 6px 18px rgba(197, 106, 90, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(197, 106, 90, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: #0E0E0E;
    border-color: #C56A5A;
}

.btn-secondary:hover {
    background-color: #C56A5A;
    color: #F4EDE2;
}

/* === ANIMATION REVEAL === */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SECTION GENERIQUE === */

.section {
    padding: 50px 40px 40px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Titres de section */
.section-header {
    max-width: 640px;
    margin-bottom: 20px; /* espace réduit comme tu aimais */
}

.section-tag {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #7b6a5b;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 0 0 12px;
}

.section-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* === CLASSE COMMUNE POUR LES CARTES === */

.card {
    background-color: #F8F1E6;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(14, 14, 14, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* === SECTION À PROPOS === */

.section-about {}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-paragraph {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.about-highlight {
    padding: 10px 12px;
}

.about-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.about-highlight ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-highlight li::before {
    content: "•";
    margin-right: 6px;
    color: #C56A5A;
}

/* Colonne droite (photo) */
.about-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.about-photo {
    width: 240px;
    height: 260px;
    border-radius: 28px;
    background-image: url('../images/hanane-portrait.png');
    background-size: cover;
    background-position: center 4%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(244, 237, 226, 0.7);
}

.about-note {
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
}

/* === SECTION PROJETS === */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}


.project-card {
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(197, 106, 90, 0.35);
}

.project-image {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: #d3c2aa;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-category {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7b6a5b;
    margin: 0;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin: 0;
}

.project-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 6px;
}

.project-link {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #C56A5A;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.project-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: #C56A5A;
    transition: width 0.25s ease;
}

.project-card:hover .project-link::after {
    width: 100%;
}

/* === SECTION SERVICES === */

.section-services {}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(197, 106, 90, 0.35);
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 4px;
}

.service-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 6px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-list li::before {
    content: "•";
    margin-right: 6px;
    color: #C56A5A;
}

/* === SECTION CONTACT === */

.section-contact {}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin: 0 0 6px;
}

.contact-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.contact-text.small {
    font-size: 13px;
    opacity: 0.9;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-list li span {
    font-weight: 600;
    color: #0E0E0E;
}

.contact-form-card {
    padding: 20px 22px 22px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(14, 14, 14, 0.18);
    background-color: #FDF7EE;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #C56A5A;
    box-shadow: 0 0 0 1px rgba(197, 106, 90, 0.3);
    background-color: #FFF9F3;
}

.form-group textarea {
    resize: vertical;
}
.form-status {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    display: none;
}

/* Message OK */
.form-status.success {
    display: block;
    background-color: #d7f7e4;
    color: #165c33;
    border: 1px solid #a5e8c2;
}

/* Message ERREUR */
.form-status.error {
    display: block;
    background-color: #f9d4d4;
    color: #8a1e1e;
    border: 1px solid #e8a5a5;
}


/* === FOOTER === */

.footer {
    border-top: 1px solid rgba(14, 14, 14, 0.08);
    padding: 18px 40px 20px;
    background-color: #F4EDE2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.footer-copy {
    margin: 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.footer-links a {
    text-decoration: none;
    color: #0E0E0E;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: #C56A5A;
    transition: width 0.2s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* === SINGLE PROJET === */

.project-single-main {
    padding-top: 100px; /* pour laisser la place au header fixe */
}

.section-project-single .section-inner {
    max-width: 1100px;
}

/* lien retour */
.back-link {
    display: inline-block;
    font-size: 13px;
    margin-bottom: 18px;
    text-decoration: none;
    color: #7b6a5b;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
    transform: translateX(-2px);
}

/* grille principale */
.project-single-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

/* image */
.project-single-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(244, 237, 226, 0.8);
    display: block;
}

/* contenu */
.project-single-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-single-category {
    margin: 0;
}

.project-single-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin: 0 0 4px;
}

.project-single-subtitle {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.project-single-body {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-single-body p {
    margin: 0 0 10px;
}

.project-single-link {
    align-self: flex-start;
}

/* === GALERIE DU PROJET === */

.project-gallery {
    margin-top: 18px;
}

.project-gallery-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7b6a5b;
    margin: 0 0 10px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.project-gallery-item img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(244, 237, 226, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* === LIGHTBOX GALERIE === */

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 14, 0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.25s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(244, 237, 226, 0.9);
}

.lightbox-close {
    background: rgba(14, 14, 14, 0.85);
    color: #F4EDE2;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #C56A5A;
}

.projects-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #C56A5A;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #C56A5A;
    color: #F4EDE2;
}






/* Responsive : 2 colonnes en mobile */
@media (max-width: 900px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsive single projet */
@media (max-width: 900px) {
    .project-single-main {
        padding-top: 90px;
    }

    .project-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-single-title {
        font-size: 24px;
    }
}

/* === RESPONSIVE === */

@media (max-width: 900px) {
    .header {
        padding: 14px 20px;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .nav ul {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .nav a {
        font-size: 16px;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .section {
        padding: 40px 20px 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        flex-direction: column;
    }
        .footer {
        padding: 16px 20px 18px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }

}
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)); /* 1 → car tes cartes sont verticales */
    }

    .project-card:nth-child(n+4) {
        display: none; /* Cache les projets à partir du 4e */
    }
}

