/* ============================================ */
/* CARTHOLIV - Style Méditerranéen Élégant
/* ============================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');
@font-face {
  font-family: "GreekFreak";
  src: url("../Fonts/Greek-Freak.ttf") format("truetype");
}

/* === VARIABLES CSS === */
:root {
    /* Palette méditerranéenne */
    --olive-gold: #a5b452;
    --olive-dark: #3b6b3b;
    --olive-light: #c8d68a;
    --terracotta: #c67e3b;
    --mediterranean-blue: #2c5f7c;
    --warm-white: #faf8f3;
    --cream: #f5f2e8;
    --earth-brown: #6b4423;
    
    /* Typographie */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Ombres */
    --shadow-soft: 0 10px 30px rgba(59, 107, 59, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--earth-brown);
    background-color: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Barre de progression scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--olive-gold), var(--terracotta));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    box-shadow: 0 2px 20px rgba(59, 107, 59, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.5rem 3rem;
    background: rgba(250, 248, 243, 0.98);
}




.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 55px;
    transition: var(--transition-smooth);
}

.logo h1 {
    font-family: "GreekFreak", serif;
;
    font-size: 1.8rem;
    color: var(--olive-dark);
    letter-spacing: 3px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--earth-brown);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-smooth);
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--olive-gold), var(--terracotta));
    transition: var(--transition-smooth);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--olive-dark);
}

/* Bouton burger mobile */
.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--olive-dark);
    cursor: pointer;
}

/* === HERO SECTION / CAROUSEL === */
.hero {
    margin-top: 90px;
    position: relative;
    height: 85vh;
    max-width: 100%;
    margin: 5%;
    margin-bottom: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}
.blur {
  filter: blur(2px); /* ajuste la valeur */
}
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit:fill;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.overlay img {
    width: 400px;
    height: auto;
    position:absolute ;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.overlayLeft,
.overlayRight {
    position: absolute;
    top: 60%;
    width: auto;
    height: 50vh;
    z-index: 2;
    opacity: 0.9;
}

.overlayLeft {
    left: 0%;
    transform: translateY(-30%);
}

.overlayRight {
    right: 0%;
    transform:translateY(-30%)
}

/* Navigation carousel */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--olive-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.prev:hover,
.next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.prev { left: 30px; }
.next { right: 30px; }

/* Dots */
.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--olive-gold);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* === SECTION PRÉSENTATION === */
.presentation {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    position: relative;
}

.presentation::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,90 900,30 1200,60 L1200,120 L0,120 Z' fill='%23faf8f3'/%3E%3C/svg%3E") center/cover;
}

.presentation h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--olive-dark);
    margin-bottom: 2rem;
    position: relative;
}

.presentation h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--olive-gold), var(--terracotta));
}

.presentation p {
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.9;
    font-size: 1.15rem;
    color: var(--earth-brown);
}

.presentation strong {
    color: var(--olive-dark);
    font-weight: 600;
}

.branches-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.branches-container img {
    width: 180px;
    filter: drop-shadow(0 5px 15px rgba(59, 107, 59, 0.2));
    transition: var(--transition-smooth);
}

.branches-container img:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* === PAGE HEADER (Pages internes) === */
.page-header {
    margin-top: 90px;
    padding: 120px 40px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--olive-dark) 0%, var(--mediterranean-blue) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='80' cy='40' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='40' cy='80' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.page-header h2 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* === SECTION PRODUITS === */
.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100px;
    align-items: flex-start;
    gap: 40px;
    padding: 80px 5%;
    position: relative;
    margin: 0 auto;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--cream) 0%, transparent 100%);
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    padding: 40px 30px;
    max-width: none;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: felx;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(165, 180, 82, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.product-card:hover::before {
    transform: scale(1);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.product-img {
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 3;
}

.product-card:hover .product-img {
    transform: scale(1.1) rotate(-3deg);
}

.product-card h3 {
    margin-top: 15px;
    color: var(--olive-dark);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.product-card p {
    color: var(--earth-brown);
    font-size: 0.95rem;
    margin-top: 12px;
    line-height: 1.6;
    position: relative;
    z-index: 3;
}

/* Tailles proportionnelles */
.product-img.small { height: 150px; width: auto;}
.product-img.medium { height: 200px; width: auto; }
.product-img.large { height: 240px; width: auto;}
.product-img.xlarge { height: 400px; width: auto;}

/* === PAGE ORIGINE & TRADITION === */
.tradition-content {
    padding: 100px 10%;
    background: var(--warm-white);
    position: relative;
}

/* Conteneur principal */
.tradition-content .content {
    display: flex;
    align-items: center; /* CENTRAGE vertical image ↔ texte */
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image */
.tradition-content img {
    width: 45%;
    max-width: 500px;
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    transition: var(--transition-smooth);
}

.tradition-content img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-strong);
}

/* Texte */
.tradition-content .text-content {
    width: 55%;
    text-align: left;
}

.tradition-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--earth-brown);
}

.tradition-content strong {
    color: var(--olive-dark);
    font-weight: 600;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .tradition-content .content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .tradition-content img,
    .tradition-content .text-content {
        width: 100%;
    }

    .tradition-content .text-content {
        text-align: center;
    }
}

/* === PAGE CONTACT === */
.Cpage-header {
    text-align: center;
    padding: 120px 20px 60px;
    background: var(--cream);
}

.Cpage-header h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--olive-dark);
    margin-bottom: 1rem;
    position: relative;
}

.Cpage-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--olive-gold), var(--terracotta));
}

.Cpage-header p {
    font-size: 1.2rem;
    color: var(--earth-brown);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: var(--warm-white);
}

#contactForm {
    background: white;
    padding: 50px 60px;
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contactForm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--olive-gold), var(--terracotta), var(--olive-gold));
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    background: var(--warm-white);
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--olive-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 180, 82, 0.1);
}

#contactForm input.error,
#contactForm textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: left;
}

#contactForm button {
    background: linear-gradient(135deg, var(--olive-dark), var(--olive-gold));
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#contactForm button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

#contactForm button.loading {
    pointer-events: none;
}

#contactForm button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#contactForm button:active::after {
    width: 300px;
    height: 300px;
}

.business-card {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.business-card img {
    width: auto;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.business-card:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-strong);
}

/* === FOOTER === */
footer {
    text-align: center;
    background: var(--olive-dark);
    color: white;
    padding: 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,30 900,90 1200,60 L1200,0 L0,0 Z' fill='%233b6b3b'/%3E%3C/svg%3E") center/cover;
}

.flag {
  width: 40px;
  height: auto;
  vertical-align: middle;
  margin-left: 6px;
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    transform: translateX(400px);
    transition: var(--transition-smooth);
    z-index: 10000;
    border-left: 5px solid var(--olive-gold);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease forwards;
}

/* Effet ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(165, 180, 82, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }
    
    .hero {
        height: 70vh;
        margin: 3%;
    }
    
    .prev, .next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .prev { left: 20px; }
    .next { right: 20px; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero {
        height: 60vh;
        margin: 2%;
        border-radius: 20px;
    }
    
    .overlay img {
        width: 450px;
        display: inline-block;
    }
    
    .overlayLeft,
    .overlayRight {
        height: 30vh;
        opacity: 0.6;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .presentation h2 {
        font-size: 2.2rem;
    }
    
    .presentation p {
        font-size: 1rem;
    }
    
    .branches-container {
        gap: 2rem;
    }
    
    .branches-container img {
        width: 120px;
    }
    
    .page-header {
        padding: 100px 20px 60px;
    }
    
    .page-header h2 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .products {
        padding: 60px 5%;
        gap: 30px;
    }
    
    .product-card {
        max-width: 280px;
        padding: 30px 20px;
    }
    
    .tradition-content {
        padding: 60px 5%;
    }
    
    .tradition-content img {
        max-width: 90%;
    }
    
    .tradition-content p {
        font-size: 1.1rem;
    }
    
    #contactForm {
        padding: 40px 30px;
    }
    
    .business-card img {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .hero {
        height: 50vh;
        margin: 1%;
        border-radius: 15px;
    }
    
    .overlay img {
        width: 150px;
    }
    
    .overlayLeft,
    .overlayRight {
        display: none;
    }
    
    .presentation {
        padding: 4rem 1rem;
    }
    
    .presentation h2 {
        font-size: 1.8rem;
    }
    
    .presentation p {
        font-size: 0.95rem;
    }
    
    .branches-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .product-card {
        max-width: 90%;
    }
    
    .Cpage-header h2 {
        font-size: 2rem;
    }
    
    #contactForm {
        width: 95%;
        padding: 30px 20px;
    }
    
    .business-card img {
        max-width: 95%;
    }
}
