main {
    background-color: var(--color-lin);
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}

section {
    margin: 0 5rem 1.5rem 5rem;
}

section.accueil-nos-bieres {
    margin: 0 5rem;
    padding: 1.5rem 0 0 0;
}

main section:last-child {
    margin: 0 5rem 14.5rem 5rem;
}

section + section {
    padding: 1.5rem 0 1.5rem 0;
}

.section-header {
    margin: 0 -5rem 1.5rem -5rem;
    padding: 0 1rem;
}

.section-title {
    display: grid;
    grid-template-rows: auto;
    align-items: center;
    justify-content: center;
}

.section-title h2 {
    font-family: var(--font-playfair);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 100;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-bleu-fonce);
    margin: 0 0 0.5rem 0;
}

.section-title .section-title--ornement {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10px;
}

.section-title--ornement div:not(.dot) {
    display: none;
}

.section-header .section-title--ornement .dot {
    font-size: 1rem;
    line-height: 1;
    color: var(--color-lin-accent);
    z-index: 1;
}

.section-title--ornement::before {
    content: '';
    position: absolute;
    left: -60%;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-bleu-fonce));
    clip-path: polygon(0 50%, 100% 100%, 100% 0); 
}

.section-title--ornement::after {
    content: '';
    position: absolute;
    right: -60%;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--color-bleu-fonce), transparent);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.section-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
}

.text-side {
    flex: 1;
    text-align: left;
}

/*
.brasserie-content-wrapper {
    border: 1px solid red;
    background-image: url("../images/houblon.svg");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 220px auto;
}
    */

.section-intro p {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-bleu-fonce);
    position: relative;
    padding-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-intro p.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-intro p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        var(--color-lin-accent) 50%, 
        transparent 100%
    );
    transition: width 1.8s ease-out;
}

.section-intro p:first-child.is-visible::after {
    animation: dessinerTrait 1.8s ease-out 0.3s forwards;
}

@keyframes dessinerTrait {
    to {
        width: 45%;
    }
}

.link-container {
    display: flex;
    margin: 0 auto;
    margin: 0;
    justify-content: center;
}

.link-container a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-bleu-fonce);
    border: 1px solid var(--color-lin-accent);
    border-radius: 4px;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-container a:hover {
    background-color: var(--color-bleu-fonce);
    color: var(--color-lin-accent);
}

.photo-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.photo-container {
    width: 100%;
    max-height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(23, 39, 66, 0.08);
    border: 1px solid var(--color-gray-border);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(85%) contrast(110%) sepia(15%);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-container:hover img {
    filter: grayscale(0%) contrast(100%) sepia(0%);
    transform: scale(1.03);
}

.anim-scroll-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scroll-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { 
    transition-delay: 0.2s; 
}

.delay-2 { 
    transition-delay: 0.4s; 
}
