/* RESET SIMPLE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #fbf7f2;
    color: #2f2a26;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* PALETTE
   Fond : crème / lin
   Accents : terracotta doux + jaune doré
*/
:root {
    --accent: #c46a4c;
    --accent-soft: #f0c9b8;
    --accent-gold: #e7b757;
    --beige: #f3e3d2;
    --border-soft: #e3d0bd;
}

/* HEADER */
.site-header {
    background: linear-gradient(90deg, #f6e6d7, #f2d9c3);
    border-bottom: 1px solid var(--border-soft);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.2rem;
}

.brand-main {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4b3527;
}

.brand-tagline {
    display: block;
    font-size: 0.9rem;
    color: #6f5a49;
    margin-top: 0.2rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.4);
}

.main-nav a:hover,
.main-nav a:focus {
    border-color: var(--accent);
    background-color: #fff;
}

/* HERO / ACCUEIL */

/* BANDEAU PHOTO DANS LE HEADER */
.header-banner {
    width: 100%;
    height: 260px; /* ajuste la hauteur si besoin */
    overflow: hidden;
    position: relative;
}

.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Optionnel : léger voile pour lisser l'image */
.header-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05); /* très léger */
    pointer-events: none;
}


.hero-section {
    padding: 2.5rem 0 2rem;
    background-color: #fffaf5;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1.3fr);
    gap: 2rem;
    align-items: start;
}

.hero-label {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background-color: #f4e1cc;
    color: #7e5a40;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.75rem;
}

.hero-text h1 {
    margin: 0 0 0.8rem;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #4b3527;
}

.hero-text p {
    margin: 0 0 0.8rem;
}

.hero-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0.4rem 0 0;
}

.hero-highlights li {
    margin-bottom: 0.25rem;
}

.hero-highlights li::before {
    content: "◆ ";
    color: var(--accent);
    font-size: 0.7rem;
}

/* CARTE PROFIL */

.profile-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 160deg,
        var(--accent) 0%,
        var(--accent-gold) 40%,
        #ffffff 70%,
        var(--accent) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
}

.profile-text h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: #4b3527;
}

.profile-text p {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
}

.profile-note {
    font-size: 0.8rem;
    color: #7b6857;
}

/* RÉSEAUX SOCIAUX */

.social-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.footer-social {
    justify-content: center;
    margin-top: 0.6rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border: none;
}

.social-icon span {
    line-height: 1;
}

.social-icon-ig {
    background: radial-gradient(
        circle at 30% 30%,
        #feda77 0,
        #f58529 20%,
        #dd2a7b 45%,
        #8134af 70%,
        #515bd4 100%
    );
}

.social-icon-fb {
    background-color: #1877f2;
}

.social-icon:hover,
.social-icon:focus {
    filter: brightness(1.05);
}

/* COLLECTIONS */

.collections-section {
    padding: 2.4rem 0;
    background-color: #fffaf5;
}

.collections-section h2 {
    margin-top: 0;
    font-size: 1.7rem;
    color: #4b3527;
}

.collection-block + .collection-block {
    margin-top: 1.7rem;
}

.collection-intro {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: #6b5745;
}

.collection-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* GALERIE */

.gallery-section {
    padding: 2.3rem 0;
    background-color: #f7efe4;
}

.gallery-section h2 {
    margin-top: 0;
    font-size: 1.7rem;
    color: #4b3527;
}

.gallery-intro {
    max-width: 720px;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e1d3c4;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;   /* force un ratio 4:3 */
    height: auto;
    border-radius: 0.8rem;
    object-fit: cover;
    display: block;
}


.gallery-item h3 {
    margin: 0.2rem 0 0.1rem;
    font-size: 1.05rem;
    color: #4b3527;
}

.gallery-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* Étiquette "tissu" */
.gallery-item .tag {
    margin-top: 0.25rem;
    align-self: flex-start;
    padding: 0.12rem 0.7rem;
    border-radius: 4px;
    background-color: #f0d9ba;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5f3f24;
    position: relative;
}

.gallery-item .tag::before,
.gallery-item .tag::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #c39b6d;
    transform: translateY(-50%);
}

.gallery-item .tag::before {
    left: 4px;
}

.gallery-item .tag::after {
    right: 4px;
}

.gallery-item:hover,
.gallery-item:focus-within {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    border-color: var(--accent-soft);
    transform: translateY(-2px);
}

/* BLOC AVEC EFFET SURPIQÛRE */

.seam-card {
    border-radius: 1.1rem;
    border: 2px dashed #d4c1ad;
    background-color: #fffef9;
    position: relative;
    padding: 1rem 1.1rem;
}

.seam-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* SÉPARATEUR RUBAN (non utilisé pour l'instant) */

.section-divider {
    width: 100%;
    margin: 2rem 0 1.5rem;
    border: none;
    height: 16px;
    background-image: repeating-linear-gradient(
        to right,
        #e0c9ac 0,
        #e0c9ac 8px,
        transparent 8px,
        transparent 16px
    );
    position: relative;
}

.section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 36px;
    height: 16px;
    background: #f3e3d2;
    border-radius: 0 8px 8px 0;
}

/* À L'ATELIER */

.atelier-section {
    padding: 2.2rem 0;
    background-color: #fbf3e7;
}

.atelier-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 1.6rem;
    align-items: center;
}

/* Conteneur vidéo + photo */
.atelier-media-inner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.atelier-media video,
.atelier-media img {
    width: 100%;
    border-radius: 1rem;
    display: block;
    object-fit: cover;
}

.atelier-text h2 {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    color: #4b3527;
}

/* Sur mobile : déjà en colonne grâce au @media existant.
   Si tu veux que vidéo + photo soient côte à côte sur grands écrans : */

@media (min-width: 900px) {
    .atelier-media-inner {
        flex-direction: row;
    }

    .atelier-media video,
    .atelier-media img {
        width: 50%;
    }
}


/* BLOC COMMENT COMMANDER */

.how-to-order {
    margin-bottom: 1.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    background-color: #f4e6d6;
    font-size: 0.9rem;
}

.how-to-order h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: #4b3527;
}

/* CONTACT */

.contact-section {
    padding: 2.4rem 0 2.7rem;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1.3fr);
    gap: 2rem;
    align-items: start;
}

.contact-text h2 {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    color: #4b3527;
}

.contact-text p {
    margin: 0 0 0.7rem;
}

.contact-form {
    background-color: #fffdf8;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    padding: 1.2rem 1.3rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

label {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
    color: #4a3b30;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #d4c1ad;
    font: inherit;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid var(--accent-soft);
    outline-offset: 1px;
}

.btn-primary {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: none;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #aa5236;
}

.form-error {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #b4412e;
    min-height: 1em;
}

.form-success {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #2f7a4b;
}

.input-error {
    border-color: #b4412e;
    background-color: #fff4f2;
}

/* FOOTER */

.site-footer {
    background-color: var(--beige);
    border-top: 1px solid var(--border-soft);
    padding: 1rem 0 1.3rem;
    font-size: 0.85rem;
}

.footer-content {
    text-align: center;
    color: #7c6a58;
}

.footer-note {
    margin-top: 0.25rem;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    body {
        font-size: 15px;
    }

    .hero-section {
        padding: 2rem 0 1.7rem;
    }

    .gallery-section {
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .atelier-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        padding-top: 0.2rem;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 0 1.1rem;
    }

    .brand-main {
        font-size: 1.4rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-avatar {
        margin: 0 auto 0.5rem;
    }

    .main-nav {
        width: 100%;
        gap: 0.3rem;
    }

    .main-nav a {
        padding: 0.3rem 0.7rem;
    }

    .gallery-item img {
    height: auto;
    max-height: 260px;
}

}
