/*
Theme Name: Poline Torine
Author: Poline Torine
Description: Thème artisanal pour artisan torinneuse en Ariège.
Version: 1.0
Text Domain: poline-torine
*/

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arapey', serif;
    background-color: #fdfdfd;
}

.h1, h2{
    text-transform: uppercase;
}

.produits-titre {
    text-align: center;
    font-family: 'Arapey', serif;
    color: #e35336;
    font-size: 3rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.produits-section h2 {
    font-family: 'Arapey', serif;
    color: #000;
    font-size: 2rem;
    text-align: left;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Style du Header */
.main-header {
    background-color: #993825;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 10px;
	min-height: 60px;
}
.logo {
    position: absolute;
    left: 30px;
    top: 5px;
    z-index: 2000;
}
.logo img {
    height: 120px;
    display: block;
}

.navigation {
    margin-right: 0px;
}
.translate-middle
 {
    transform: translate(-50%, -50%) !important;
}
.navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #feecec;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Hamburger transition to 'X' */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navigation ul li a {
    text-decoration: none;
    color: #feecec;
    font-family: 'Arapey', serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.navigation ul li a:hover {
    color: #7a884f;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
		 flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .navigation ul {
        gap: 15px;
    }
 .logo img {
        height: 80px; /* Logo plus compact sur mobile */
    }
    .menu-toggle {
        display: flex;
    }

    .navigation {
        margin-right: 0;
		   position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: #993825;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
	  .navigation.active {
        max-height: 300px;
        opacity: 1;
        border-top: 1px solid rgba(254, 236, 236, 0.1);
    }
    .navigation ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }
    .navigation ul li a {
        font-size: 1.3rem;
    }
    
}


/* Slider */
.slider input[type="radio"] {
    display: none;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 500%;
    animation: slideshow 16s infinite;
}

.slide {
    position: relative;
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Arapey', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.7);
    white-space: normal;
    width: 80%;
    max-width: 800px;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .slide-caption {
        font-size: 2.5rem;
        width: 90%;
    }
}

.slide img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    display: block;
}

@keyframes slideshow {
    0%    { transform: translateX(0%); }
    20%   { transform: translateX(0%); }
    25%   { transform: translateX(-20%); }
    45%   { transform: translateX(-20%); }
    50%   { transform: translateX(-40%); }
    70%   { transform: translateX(-40%); }
    75%   { transform: translateX(-60%); }
    95%   { transform: translateX(-60%); }
    99%   { transform: translateX(-80%); }
    99.9% { transform: translateX(-80%); }
    100%  { transform: translateX(0%); }
}


/* --- INDICATEUR DE SCROLL --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.arrow-icon {
    position: relative;
    color: #fdfdfd;
    font-size: 1.5rem;
    z-index: 1;
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator:hover .circle-bg {
    filter: brightness(1.2);
    transition: 0.3s;
}


/* Points animés */
.slider-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(254, 236, 236, 0.7);
    border-radius: 50%;
    animation: dotActive 16s infinite;
}

.d1 { animation-delay: 0s; }
.d2 { animation-delay: 4s; }
.d3 { animation-delay: 8s; }
.d4 { animation-delay: 12s; }

@keyframes dotActive {
    0%   { background-color: #e35336; }
    25%  { background-color: #e35336; }
    26%  { background-color: rgba(254, 236, 236, 0.7); }
    100% { background-color: rgba(254, 236, 236, 0.7); }
}

@media (max-width: 768px) {
    .slide img { height: 250px; }
}


/* --- SECTION PRÉSENTATION --- */

.presentation {
    position: relative;
    padding: 100px 20px;
    background-color: #fdfdfd;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.presentation-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.presentation-content h2 {
    font-family: 'Arapey', serif;
    color: #7a884f;
    font-size: 3rem;
    margin-bottom: 30px;
}

.presentation-content p {
    font-family: 'Arapey', serif;
    color: #000;
    line-height: 1.6;
    font-size: 1.3rem;
    font-weight: bold;
}

.deco-chaise {
    position: absolute;
    right: 0%;
    bottom: 0px;
    height: 500px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.deco-ligne {
    position: absolute;
    left: -50px;
    bottom: 0px;
    width: 400px;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .presentation-content h2 {
        font-size: 2rem;
    }

    .deco-chaise {
        height: 200px;
        opacity: 0.1;
    }

    .deco-ligne {
        width: 200px;
    }
}


/* --- SECTION MON ARTISANAT --- */

.artisanat {
    background-color: #993825;
    padding: 80px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artisanat-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.artisanat-text {
    flex: 1;
    color: #ffffff;
    text-align: center;
}

/* ✅ PHP supprimé — le background-image est maintenant en inline style dans le PHP */
.artisanat-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: bold;
}

/* ✅ Nouvelle classe pour le motif uniquement autour du titre */
.titre-avec-motif {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding: 20px 40px;
    display: inline-block;
}

.artisanat-text p {
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: bold;
}

.artisanat-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.arche-cadre {
    position: relative;
    width: 350px;
    height: 500px;
    border: 3px solid #c59d5f;
    border-radius: 200px 200px 0 0;
    padding: 15px;
    background-color: transparent;
}

.arche-cadre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 185px 185px 0 0;
}

.arche-cadre::before {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #c59d5f;
}

.arche-cadre video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 185px 185px 0 0;
}

@media (max-width: 900px) {
    .artisanat-container {
        flex-direction: column;
        text-align: center;
    }

    .artisanat-text h2 {
        font-size: 2.5rem;
    }

    .arche-cadre {
        width: 280px;
        height: 400px;
    }
}


/* --- SECTION PRODUITS --- */

.produits-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-family: 'Arapey', serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    border: 1px solid #e35336;
    padding: 30px 40px;
    border-radius: 8px;
}

.produits-intro-titre {
    margin-bottom: 10px;
}

.produits-intro-liste {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 25px;
}

.produits-intro-liste li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.produits-intro-liste li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #e35336;
}

.produits-intro-apres {
    padding-top: 20px;
    border-top: 1px solid rgba(227, 83, 54, 0.3);
    font-style: italic;
}

.produits-section {
    position: relative;
    padding: 60px 5% 100px 5%;
    background-color: #fdfdfd;
    overflow: hidden;
}

.produits-titre {
    text-align: center;
    font-family: 'Arapey', serif;
    color: #e35336;
    font-size: 3rem;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid #feecec;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-container {
    background-color: #feecec;
}

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


/* --- FLIP BOX --- */

.flip-box {
    perspective: 1200px;
    width: 100%;
    height: 480px;
    cursor: pointer;
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #feecec;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.flip-box-front {
    background-color: #feecec;
}

.flip-box-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-box-back {
    background-color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.flip-box-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.flip-product-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Arapey', serif;
    background-color: #fff;
}

.flip-product-info strong {
    font-size: 1.4rem;
    color: #7a884f;
    display: block;
    margin-bottom: 6px;
}

.flip-product-info p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.3;
    flex: 1;
}

.flip-product-info .product-price {
    font-size: 1.3rem;
    color: #e35336;
    font-weight: bold;
    margin-top: 8px;
}

.slider-nav {
    color: #e35336 !important;
    z-index: 100 !important;
}

.swiffy-slider {
    overflow: visible !important;
}

.deco-trait-produit {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 768px) {
    .produits-titre { font-size: 2rem; }

    .flip-box {
        height: 420px;
    }

    .flip-box-back img {
        height: 100%;
    }

    .flip-product-info strong { font-size: 1.2rem; }
    .flip-product-info p { font-size: 0.85rem; }
}


.product-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: 'Arapey', serif;
}

.product-details strong {
    font-size: 1.6rem;
    color: #7a884f;
    display: block;
    margin-bottom: 5px;
}

.product-details p {
    font-size: 1rem;
    color: #333;
    line-height: 1.2;
}

.product-price {
    font-size: 1.4rem;
    color: #e35336;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .produits-titre {
        font-size: 2rem;
    }
    .product-info {
        flex-direction: column;
    }
    .product-price {
        margin-left: 0;
        margin-top: 10px;
    }
}


/* --- SECTION SOCIAL FEED --- */

.social-feed-section {
    position: relative;
    padding: 80px 5%;
}

.social-header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-family: 'Arapey', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    color: #7a884f;
    opacity: 0.8;
}

.social-link i {
    font-size: 2.2rem;
    color: #ffffff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 150px;
    gap: 15px;
}

.gallery-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-1-grande, .item-2-carree, .item-3-grande, .item-4-carree,
.item-5-grande, .item-6-carree, .item-7-grande, .item-8-carree,
.item-9-grande, .item-10-carree {
    grid-row: span 2 !important;
}

@media (max-width: 900px) {
    .social-header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item { grid-row: auto !important; }
}

@media (max-width: 500px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}


/* --- FOOTER --- */

.main-footer {
    background-color: #993825;
    color: #ffffff;
    padding: 60px 5% 20px 5%;
    font-family: 'Arapey', serif;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.contact-item i {
    font-size: 1.4rem;
    width: 25px;
}

.footer-liens {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-liens a {
    color: #ffffff;
    font-family: 'Arapey', serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-liens a:hover {
    opacity: 0.7;
}

.deco-chaises-footer {
    position: absolute;
    bottom: 50px;
    left: 30px;
    height: 120px;
    opacity: 0.7;
    pointer-events: none;
}

.footer-logo img {
    height: 180px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-logo img {
        height: 140px;
    }
	.scroll-indicator { 
		display:none;
	}
}


html {
    scroll-behavior: smooth;
}


/* --- PAGE MENTIONS LEGALES --- */

.mentions-hero {
    background-color: #993825;
    padding: 60px 20px;
    text-align: center;
}

.mentions-hero h1 {
    font-family: 'Arapey', serif;
    color: #feecec;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.mentions-hero p {
    font-family: 'Arapey', serif;
    color: rgba(254, 236, 236, 0.75);
    font-size: 1rem;
    font-style: italic;
}

.mentions-wrapper {
    max-width: 860px;
    margin: 60px auto 80px auto;
    padding: 0 30px;
    font-family: 'Arapey', serif;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-family: 'Arapey', serif;
    font-size: 1rem;
    color: #993825;
    text-decoration: none;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.65;
}

.mentions-bloc {
    margin-bottom: 48px;
}

.mentions-bloc h2 {
    font-family: 'Arapey', serif;
    font-size: 1.4rem;
    color: #993825;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #feecec;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mentions-bloc h2 .num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #993825;
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
    color: #333;
}

.info-table tr {
    border-bottom: 1px solid #f0ebe8;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 10px 8px;
    vertical-align: top;
    line-height: 1.6;
}

.info-table td:first-child {
    font-weight: bold;
    color: #7a884f;
    width: 38%;
    white-space: nowrap;
}

.info-table td a {
    color: #993825;
    text-decoration: none;
}

.info-table td a:hover {
    text-decoration: underline;
}

.mentions-bloc p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 14px;
}

.mentions-bloc p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .mentions-hero h1 { font-size: 2rem; }
    .info-table td:first-child { width: 45%; white-space: normal; }
    .mentions-wrapper { padding: 0 18px; }
}
.text-white {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
    color:rgb(250, 250, 250) !important;
}
.start-50 {
    left: 50% !important;
}
.top-50 {
    top: 50% !important;
}
.position-absolute {
    position: absolute !important;
}
@media (min-width: 1200px) {
    .display-1 {
        font-size: 5rem;
    }
}
.display-1 {
    font-size: calc(1.625rem + 4.5vw);
    font-weight: 300;
    line-height: 1.2;
}
@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 2.5rem;
    }
}
.slider-indicators-round {
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
}