/* ==========================================================================
   SER AMICS — Main Styles
   Memphis · Néo-brutalisme · Maximalisme coloré
   ========================================================================== */

:root {
    --outremer: #0000c4;
    --orange: #ff8a00;
    --red: #ff0000;
    --green: #008020;
    --yellow: #ffd700;
    --pink: #ff92c1;
    --dark: #1A1A1A;
    --light: #FFFDF7;
    --paper: #FFFDF7;

    --border-thick: 3px solid var(--light);

    --shadow-outremer: 0 14px 32px rgba(26, 26, 26, 0.16), 6px 6px 0 var(--outremer);
    --shadow-orange: 0 14px 32px rgba(26, 26, 26, 0.16), 6px 6px 0 var(--orange);
    --shadow-red: 0 14px 32px rgba(26, 26, 26, 0.16), 6px 6px 0 var(--red);
    --shadow-green: 0 14px 32px rgba(26, 26, 26, 0.16), 6px 6px 0 var(--green);
    --shadow-yellow: 0 14px 32px rgba(26, 26, 26, 0.16), 6px 6px 0 var(--yellow);
    --shadow-pink: 0 14px 32px rgba(26, 26, 26, 0.16), 6px 6px 0 var(--pink);

    --shadow-outremer-hover: 0 18px 38px rgba(26, 26, 26, 0.20), 8px 8px 0 var(--outremer);
    --shadow-orange-hover: 0 18px 38px rgba(26, 26, 26, 0.20), 8px 8px 0 var(--orange);
    --shadow-red-hover: 0 18px 38px rgba(26, 26, 26, 0.20), 8px 8px 0 var(--red);
    --shadow-green-hover: 0 18px 38px rgba(26, 26, 26, 0.20), 8px 8px 0 var(--green);
    --shadow-yellow-hover: 0 18px 38px rgba(26, 26, 26, 0.20), 8px 8px 0 var(--yellow);
    --shadow-pink-hover: 0 18px 38px rgba(26, 26, 26, 0.20), 8px 8px 0 var(--pink);

    --font-display: 'Fraunces', serif;
    --font-sans: 'DM Sans', sans-serif;
    --font-body: 'DM Serif Display', serif;

    --radius: 0;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--outremer);
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--orange);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 0;
    word-break: break-word;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 7rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
    margin-bottom: 1em;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 1024px) {
    h1 {
        font-size: clamp(2.2rem, 7vw, 5rem);
    }

    h2 {
        font-size: clamp(1.8rem, 4.8vw, 3.2rem);
    }

    h3 {
        font-size: clamp(1.4rem, 3vw, 2.1rem);
    }

    h4 {
        font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    }

    p {
        max-width: 60ch;
        font-size: 0.98rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 1.05;
    }

    h2 {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }

    h3 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    h4 {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    }

    p {
        font-size: 0.95rem;
        line-height: 1.55;
        max-width: 100%;
    }
}
/* Container */
.sa-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.sa-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s, border-color 0.3s, padding 0.3s;
    border-bottom: 3px solid transparent;
}

.sa-header.scrolled {
    background: var(--outremer);
    /* border-bottom-color: var(--light); */
    padding: 0.5rem 0;
}

.sa-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-logo {
    height: 100px;
    width: auto;
    margin-top: 50px;
}

.sa-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sa-nav a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 4px;
}

.sa-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--orange);
    transition: width 0.3s;
}

.sa-nav a:hover::after,
.sa-nav a.current::after {
    width: 100%;
}

.sa-nav-cta {
    font-family: var(--font-sans) !important;
    background: var(--orange) !important;
    color: var(--light) !important;
    padding: 0.6rem 1.5rem !important;
    border: var(--border-thick) !important;
    box-shadow: var(--shadow-pink) !important;
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;
}

.sa-nav-cta:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: var(--shadow-orange-hover) !important;
}

/* Burger */
.sa-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.sa-burger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--light);
    transition: transform 0.3s, opacity 0.3s ease-in-out;
}

.sa-burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.sa-burger.active span:nth-child(2) {
    opacity: 0;
}

.sa-burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile overlay */
.sa-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--orange);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.18, 1) ease-in-out;
}

.sa-mobile-nav.open {
    right: 0;
}

.sa-mobile-nav a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--light);
}

.sa-mobile-nav a:hover {
    color: var(--yellow);
}

@media (max-width: 767px) {
    .sa-nav {
        display: none;
    }

    .sa-burger {
        display: flex;
    }

    .sa-logo {
        height: 80px;
        margin-top: 0;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.sa-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.sa-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.sa-hero h1 {
    margin-bottom: 1.5rem;
}

.sa-hero h1 .line-yellow {
    color: var(--yellow);
}

.sa-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Scroll arrow */
.sa-scroll-arrow {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 1;
}

.sa-scroll-arrow svg {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

/* Decorative shapes */
.sa-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.sa-deco-chevron {
    height: 150px;
    aspect-ratio: 1;
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
    background: var(--green);
    top: 55%;
    left: 10%;
}

.sa-deco-polygon {
    height: 150px;
    aspect-ratio: 1;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: var(--pink);
    top: 15%;
    right: 10%;
}

.sa-deco-heart {
    width: 160px;
    aspect-ratio: 1;
    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_heart.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    bottom: 20%;
    right: 25%;
}

.sa-deco-star {
    width: 160px;
    aspect-ratio: 1;
    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_star_yellow.svg");
    background-repeat: no-repeat;
    background-position: center;
    top: 25%;
    left: 5%;
}

.sa-deco-zigzag {
    width: 150px;
    height: 40px;
    background: repeating-linear-gradient(90deg,
            var(--orange) 0px,
            var(--orange) 20px,
            transparent 20px,
            transparent 30px);
    clip-path: polygon(0% 100%, 5% 0%, 15% 100%, 25% 0%, 35% 100%, 45% 0%, 55% 100%, 65% 0%, 75% 100%, 85% 0%, 95% 100%, 100% 0%);
}

/* RESPONSIVE */

/* Mobile */
@media (max-width: 767px) {
    .sa-hero {
        min-height: 85svh;
        padding-top: 0px;
    }
    .sa-deco-chevron {
        height: 80px;
        top: 80%;
        left: 15%;
    }
    
    .sa-deco-polygon {
        height: 95px;
        top: 10%;
        right: 5%;
    }
    
    .sa-deco-heart {
        width: 100px;
        bottom: 20%;
        right: 10%;
        rotate: 15deg;
    }
    
    .sa-deco-star {
        width: 90px;
        top: 5%;
        left: 5%;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.sa-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border: var(--border-thick);
    box-shadow: var(--shadow-pink);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;
    text-align: center;
    text-decoration: none;
}

.sa-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: var(--shadow-red-hover);
}
.sa-btn-outremer {
    background: var(--outremer);
    color: var(--light);
}
.sa-btn-orange {
    background: var(--orange);
    color: var(--light);
}
.sa-btn-red {
    background: var(--red);
    color: var(--light);
}
.sa-btn-green {
    background: var(--green);
    color: var(--light);
}
.sa-btn-yellow {
    background: var(--yellow);
    color: var(--light);
}
.sa-btn-pink {
    background: var(--pink);
    color: var(--light);
}



.sa-btn-outline {
    background: transparent;
    color: var(--dark);
}

/* ==========================================================================
   MARQUEE / TICKER
   ========================================================================== */
.sa-ticker {
    background: var(--red);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    overflow: hidden;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.sa-ticker-track {
    display: flex;
    animation: ticker 20s linear infinite;
    light-space: nowrap;
}

.sa-ticker-text {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sa-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: var(--outremer);
}

.sa-section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

/* BEFORE (main gauche) */
.sa-section-title::before {
    content: "";
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-45%);
    width: 60px;
    height: 60px;
    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_left_hand.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* AFTER (main droite) */
.sa-section-title::after {
    content: "";
    position: absolute;
    right: -75px;
    top: 50%;
    transform: translateY(-40%);
    width: 60px;
    height: 60px;
    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_right_hand.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive */

/* Mobile */
@media (max-width: 767px) {
    .sa-section-title::before {
        left: -57px;
        width: 50px;
        height: 50px;
    }
    .sa-section-title::after {
        right: -55px;
        width: 50px;
        height: 50px;
    }
}

.sa-section-title-wrap {
    text-align: center;
}

/* Wavy underline */
.sa-wavy-underline {
    position: relative;
    display: inline-block;
}

.sa-wavy-underline::after {
    /* content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 Q25 0 50 6 T100 6 T150 6 T200 6' fill='none' stroke='%23ffd700' stroke-width='6'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 15px; */
}

/* ==========================================================================
   CARDS / COLLECTIONS
   ========================================================================== */
.sa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sa-card {
    border: var(--border-thick);
    box-shadow: var(--shadow-pink);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;
    position: relative;
    background: var(--light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-red-hover);
}

.sa-card-img {
    height: 260px;
    /* hauteur fixe identique pour toutes les images */
    overflow: hidden;
    flex-shrink: 0;
}

.sa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.sa-card:hover .sa-card-img img {
    transform: scale(1.05);
}

.sa-card-body {
    padding: 1.5rem;
    background: var(--light);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    flex: 1;
    /* prend toute la place restante */
}

.sa-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--outremer);
}

.sa-card-body p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--outremer);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.sa-card-link {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    /* pousse le lien en bas */
}

.sa-card-link:hover {
    color: var(--orange);
}



/* ==========================================================================
   ABOUT SNIPPET
   ========================================================================== */
.sa-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sa-about-img {
    aspect-ratio: 1;
    overflow: hidden;
    border: var(--border-thick);
    box-shadow: var(--shadow-pink);
}

.sa-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-sticker {
    display: inline-block;
    background: var(--yellow);
    color: var(--light);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem;
    border: var(--border-thick);
    box-shadow: var(--shadow-pink);
    transform: rotate(-6deg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;

}
.sa-sticker:hover {
    box-shadow: var(--shadow-green-hover);
}

/* ==========================================================================
   SLIDER GALERIE
   ========================================================================== */
.sa-slider-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
}

.sa-slider-wrap.is-dragging {
    cursor: grabbing;
}

.sa-slider-track {
    display: flex;
    gap: 1.5rem;
    user-select: none;
    padding-block: .5rem;
    will-change: transform;
    touch-action: pan-y;
}

.sa-slider-item {
    flex: 0 0 auto;
    width: clamp(220px, 28vw, 350px);
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    border: var(--border-thick);
    box-shadow: var(--shadow-pink);
    background: var(--light);
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;

}

.sa-slider-item:hover {
    box-shadow: var(--shadow-orange-hover);
}

.sa-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .sa-slider-track {
        gap: 1rem;
    }

    .sa-slider-item {
        width: clamp(200px, 42vw, 300px);
    }
}

@media (max-width: 767px) {
    .sa-slider-item {
        width: 75vw;
        max-width: 280px;
    }
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.sa-process {
    /* background: var(--orange); */
    color: var(--light);
}

.sa-process h2 {
    color: var(--light);
}

.sa-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 20px;
    text-align: center;
}

.sa-process-step {
    position: relative;
    padding: 7rem 1rem 2rem;
    /* espace en haut pour le gros numéro */
}

.sa-process-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--light);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    z-index: 0;
}

.sa-process-num::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_heart.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
    animation: heart-float-soft-alt 5s ease-in-out infinite;
}

.sa-process-item:nth-child(1) .sa-process-num::after {
    animation-duration: 4.8s;
    animation-delay: 0s;
    animation-timing-function: ease-in-out;
}

.sa-process-item:nth-child(2) .sa-process-num::after {
    animation-duration: 5.6s;
    animation-delay: 0.6s;
    animation-timing-function: ease-in-out;
}

.sa-process-item:nth-child(3) .sa-process-num::after {
    animation-duration: 4.2s;
    animation-delay: 1.2s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-process-item:nth-child(4) .sa-process-num::after {
    animation-duration: 6.1s;
    animation-delay: 0.9s;
    animation-timing-function: ease-in-out;
}

.sa-process-icon,
.sa-process-step h4,
.sa-process-step p {
    position: relative;
    z-index: 1;
}

.sa-process-icon {
    margin-bottom: 1rem;
}

.sa-process-step h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.sa-process-step p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--light);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.sa-testimonials {
    background: var(--outremer);
    /* background-image: radial-gradient(var(--light) 1px, transparent 1px); */
    background-size: 30px 30px;
}

.sa-testimonials .sa-container {
    max-width: none;
    padding: unset;
}

.sa-testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--light);
    border: var(--border-thick);
    box-shadow: var(--shadow-pink);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;

}

.sa-testimonial:hover {
    box-shadow: var(--shadow-yellow-hover);
}

.sa-testimonial-quote {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--orange);
    line-height: 1;
    position: absolute;
    top: 1.7em;
    left: 1rem;
}

.sa-testimonial p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: none;
    color: var(--outremer);
}

.sa-testimonial-author {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green);
}

.sa-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.sa-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--yellow);
}

/* Testimonials slider */
.sa-testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0 1rem;
}

.sa-testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    width: max-content;
    animation: sa-testimonials-marquee 32s linear infinite;
    will-change: transform;
}

.sa-testimonials-slider:hover .sa-testimonials-track,
.sa-testimonial:hover,
.sa-testimonial:focus-within,
.sa-testimonials-slider:focus-within .sa-testimonials-track {
    animation-play-state: paused;
}

.sa-testimonials-slide {
    flex: 0 0 clamp(280px, 32vw, 380px);
    width: clamp(280px, 32vw, 380px);
    display: flex;
}

.sa-testimonial {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sa-testimonial p {
    flex: 1;
}

.sa-testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.sa-testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dark);
    flex-shrink: 0;
}

.sa-testimonial-product {
    display: inline-block;
    margin: 0 0 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

@keyframes sa-testimonials-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.sa-newsletter {
    background: var(--pink);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
}

.sa-newsletter h2 {
    color: var(--light);
}

.sa-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 2rem auto 0;
}

.sa-newsletter-form input[type="email"] {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border: var(--border-thick);
    border-right: none;
    background: var(--light);
    outline: none;
}

.sa-newsletter-form input[type="email"]:focus {
    box-shadow: var(--shadow-orange);
}

.sa-newsletter-form button {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--orange);
    color: var(--light);
    border: var(--border-thick);
    box-shadow: var(--shadow-yellow);
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s ease-in-out !important;
}

.sa-newsletter-form button:hover {
    box-shadow: var(--shadow-outremer-hover)
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sa-footer-simple {
    background: var(--outremer);
    color: var(--light);
    border-top: 3px solid var(--outremer);
    padding: 2rem 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

/* Layout split (gauche + droite) */
.sa-footer-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Layout centré (gauche seulement) */
.sa-footer-centered {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Contenu commun gauche/droite — supporte WYSIWYG ACF */
.sa-footer-left p,
.sa-footer-right p {
    margin: 0;
    opacity: 0.85;
}

.sa-footer-left a,
.sa-footer-right a {
    color: var(--orange);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.sa-footer-left a:hover,
.sa-footer-right a:hover {
    text-decoration: underline;
    opacity: 1;
}

.sa-footer-right {
    opacity: 0.6;
    font-size: 0.8rem;
}

.sa-footer-right a {
    color: var(--light);
}

.sa-footer-right a:hover {
    color: var(--yellow);
}

/* Mobile — toujours en colonne centrée */
@media (max-width: 600px) {
    .sa-footer-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

/* Page hero */
.sa-page-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sa-page-hero h1 {
    position: relative;
    z-index: 2;
}

.sa-page-hero p {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
    position: relative;
    z-index: 2;
}

/* Galerie */
.sa-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.sa-filter-btn {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border: var(--border-thick);
    background: var(--light);
    color: var(--light);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.18), 4px 4px 0 var(--dark);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s ease-in-out;
}

.sa-filter-btn:hover,
.sa-filter-btn.active {
    background: var(--orange);
    color: var(--light);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--light);
}

.sa-masonry {
    columns: 3;
    column-gap: 1.5rem;
}

.sa-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
}

.sa-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease-in-out;
}

.sa-masonry-item:hover img {
    transform: scale(1.05);
}

.sa-masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 97, 58, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    color: var(--light);
    text-align: center;
    padding: 1rem;
}

.sa-masonry-item:hover .sa-masonry-overlay {
    opacity: 1;
}

.sa-masonry-overlay h4 {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

/* Boutique */
.sa-product-card {
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s ease-in-out;
    position: relative;
}

.sa-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-brutal-hover);
}

.sa-product-img {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.sa-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.sa-product-img .sa-product-img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.sa-product-card:hover .sa-product-img-hover {
    opacity: 1;
}

.sa-product-card:hover .sa-product-img-main {
    opacity: 0;
}

.sa-product-badge {
    position: absolute;
    top: 1rem;
    left: -0.5rem;
    background: var(--yellow);
    color: var(--light);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border: var(--border-thick);
    transform: rotate(-3deg);
    text-transform: uppercase;
    z-index: 2;
}

.sa-product-badge-sold {
    background: var(--light);
    color: var(--light);
}

.sa-product-info {
    padding: 1.5rem;
    background: var(--light);
}

.sa-product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.sa-product-info .sa-price {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

/* Timeline */
.sa-timeline {
    position: relative;
    padding: 2rem 0;
}

.sa-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--light);
    transform: translateX(-50%);
}

.sa-timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.sa-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.sa-timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--light);
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
}

.sa-timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 24px;
    height: 24px;
    background: var(--orange);
    border: var(--border-thick);
    transform: translateX(-50%) rotate(45deg);
    z-index: 2;
}

/* Contact form */
.sa-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.sa-form-group {
    margin-bottom: 1.5rem;
}

.sa-form-group label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.sa-form-group input,
.sa-form-group textarea,
.sa-form-group select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border: var(--border-thick);
    border-radius: 0;
    background: var(--light);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.18), 4px 4px 0 var(--dark);
    outline: none;
    transition: box-shadow 0.2s ease-in-out;
}

.sa-form-group input:focus,
.sa-form-group textarea:focus {
    box-shadow: 4px 4px 0 var(--orange);
}

.sa-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 404 */
.sa-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--outremer);
    padding: 2rem;
}

.sa-404 h1 {
    font-size: clamp(6rem, 20vw, 15rem);
    color: var(--yellow);
    line-height: 1;
    position: relative;
}

/* BEFORE (main gauche) */
.sa-404 h1::before {
    content: "";
    position: absolute;
    left: -150px;
    /* ajuste selon ton design */
    top: 50%;
    transform: translateY(-45%);

    width: 150px;
    /* taille du SVG */
    height: 150px;

    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_left_hand.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* AFTER (main droite) */
.sa-404 h1::after {
    content: "";
    position: absolute;
    right: -150px;
    /* ajuste selon ton design */
    top: 50%;
    transform: translateY(-40%);

    width: 150px;
    height: 150px;

    background-image: url("http://seramics.fr/wp-content/uploads/2026/04/seramics_right_hand.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Lightbox */
.sa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sa-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.sa-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
}

.sa-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--light);
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.sa-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--light);
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sa-lightbox-prev {
    left: 2rem;
}

.sa-lightbox-next {
    right: 2rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
    .sa-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-masonry {
        columns: 2;
    }

    .sa-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .sa-grid {
        grid-template-columns: 1fr;
    }

    .sa-masonry {
        columns: 1;
    }

    .sa-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sa-contact-grid {
        grid-template-columns: 1fr;
    }

    .sa-process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sa-footer-grid {
        grid-template-columns: 1fr;
    }

    .sa-section {
        padding: 4rem 0;
    }

    .sa-slider-item {
        width: 280px;
    }

    .sa-timeline::before {
        left: 1rem;
    }

    .sa-timeline-item,
    .sa-timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 3rem;
    }

    .sa-timeline-content {
        width: 100%;
    }

    .sa-timeline-marker {
        left: 1rem;
    }

    .sa-newsletter-form {
        flex-direction: column;
    }

    .sa-newsletter-form input[type="email"] {
        border-right: var(--border-thick);
    }
}


@media (max-width: 767px) {
    .sa-testimonials-slider {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .sa-testimonials-track {
        gap: 1rem;
        animation-duration: 24s;
    }

    .sa-testimonials-slide {
        flex-basis: 86vw;
        width: 86vw;
    }

    .sa-testimonial {
        padding: 2rem 1.25rem;
    }

    .sa-testimonial-quote {
        top: 0.55rem;
        left: 0.8rem;
    }
}