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

/* =======================
   BASE
======================= */
body {
    font-family: 'Georgia', serif;
    background-color: #f5efe6;
    color: #4a3428;
}

/* Container général */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 30px;
}

/*HEADER//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.main-header {
    background: linear-gradient(135deg, #8b5e3c, #6f4e37);
    border-bottom: 5px solid #d2b48c;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 160px;
}

/* Logo + titre */
/* Logo + titre */
.branding {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: -120px; /* Décale le bloc vers la gauche */
}

.logo {
    height: 140px;
    width: auto;
}

.title h1 {
    font-size: 2.5em;
    color: #fff8f0;
}

.title p {
    font-style: italic;
    font-size: 1.1em;
    color: #f3e6d8;
}

/* Navigation */
.nav a {
    color: #fff8f0;
    text-decoration: none;
    margin-left: 35px;
    font-size: 1.1em;
    position: relative;
    transition: 0.3s;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #fff8f0;
    transition: 0.3s;
}

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

/* Accueil/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(55, 33, 11, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f4efe6;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #f4efe6;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* Bouton CTA */
.btn {
    display: inline-block;
    background-color: #a97449;
    color: #f4efe6;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #d3b58b;
    color: #33220a;
}

/* Vapeurs animées */
.coffee-smoke {
    position: absolute;
    bottom: 50px;
    width: 60px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: rise 4s infinite ease-in-out;
    z-index: 3;
}

.smoke2 {
    left: 40%;
    animation-duration: 5s;
}
.smoke3 {
    left: 60%;
    animation-duration: 6s;
}

@keyframes rise {
    0% { transform: translateY(0) scaleX(1); opacity: 0.3; }
    50% { transform: translateY(-80px) scaleX(1.2); opacity: 0.5; }
    100% { transform: translateY(-160px) scaleX(1.5); opacity: 0; }
}

/* =======================
   SECTION HISTOIRE DES CAFÉS (carte)
======================= */
.history {
    padding: 100px 0 80px 0;
    display: flex;
    justify-content: center;
    background-color: #f5efe6;
}

.history-card {
    background-color: #fffaf3;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #e6d6c5;
    box-shadow: 0 12px 30px rgba(111, 78, 55, 0.15);
    max-width: 1100px;
    width: 100%;
    transition: 0.4s;
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(111, 78, 55, 0.25);
}

.history-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.history-text {
    flex: 1 1 500px;
}

.history-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-left: 5px solid #8b5e3c;
    padding-left: 15px;
}

.history-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;  /* texte justifié */
}

.history-image {
    flex: 1 1 400px;
    text-align: center;
}

.history-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 12px 25px rgba(111, 78, 55, 0.2);
}

/* =======================
   SECTION INTRO
======================= */
.intro {
    padding: 80px 0 40px 0;
}

.intro h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    border-left: 5px solid #8b5e3c;
    padding-left: 15px;
}

.intro p {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    text-align: justify; /* texte justifié */
}

/* =======================
   CARDS CAFÉS
======================= */
.cafes {
    padding: 50px 0 100px 0;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.cafe-card {
    flex: 1 1 300px;
    background-color: #fffaf3;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid #e6d6c5;
    box-shadow: 0 12px 30px rgba(111, 78, 55, 0.15);
    transition: 0.4s;
}

.cafe-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #6f4e37;
}

.cafe-card p {
    font-size: 1.1em;
    line-height: 1.7;
}

.cafe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(111, 78, 55, 0.25);
}

/* LISTING PAGE////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

.listing {
    padding: 80px 0;
}

.listing-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    border-left: 5px solid #8b5e3c;
    padding-left: 15px;
}

.table-container {
    overflow-x: auto;
}

.listing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fffaf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(111, 78, 55, 0.15);
}

.listing-table th {
    background: linear-gradient(135deg, #8b5e3c, #6f4e37);
    color: #fff8f0;
    padding: 14px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.listing-table td {
    padding: 12px;
    border-bottom: 1px solid #e6d6c5;
    font-size: 0.95em;
}

.listing-table tr:nth-child(even) {
    background-color: #f5efe6;
}

.listing-table tr:hover {
    background-color: #e6d6c5;
    transition: 0.2s ease;
}

/*FOOTER///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.main-footer {
    background: #6f4e37;
    color: #fff8f0;
    text-align: center;
    padding: 40px 0;
    border-top: 5px solid #d2b48c;
}

/*RESPONSIVE////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
@media (max-width: 900px) {

    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }

    .branding {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 110px;
    }

    .nav {
        text-align: center;
    }

    .nav a {
        margin: 0 15px;
    }

    .cafes {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .history-content {
        flex-direction: column;
        text-align: center;
    }

    .history-image img {
        max-width: 80%;
    }

    .history-text h2 {
        text-align: center;
    }
}