/* Hero */

.hero {
    max-width: 1200px;
    margin: 50px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    display: block;
    height: 1px;
    background: #e8dcc7;
}

.hero::before {
    margin-bottom: 25px;
}

.hero::after {
    margin-top: 25px;
}

.hero h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #334155;
}

/* Conteneur */

section {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 70px;
}

/* Blocs texte */

.historique,
.description {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.historique-texte,
.description-texte {
    flex: 1;
}

/* Titres */

.historique h1,
.description h1,
.composition h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;
    color: #334155;
}

.historique h1::before,
.description h1::before,
.composition h2::before {
    content: "";
    width: 35px;
    height: 3px;
    background: #C9A66B;
    border-radius: 50px;
}

/* Textes */

.historique p,
.description p {
    color: #475569;
    line-height: 1.9;
    text-align: justify;
}

/* Images */

.historique-img1,
.description-img1 {
    flex: 0 0 360px;
}

.historique-img1 img,
.description-img1 img {
    display: block;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* Composition */

.composition {
    margin-top: 40px;
}

.composition h2 {
    margin-bottom: 30px;
}

.composition-contenu {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.composition-table {
    flex: 1;
    overflow-x: auto;
}

/* Tableau */

.table-composition {
    width: 100%;
    border-collapse: collapse;
}

.table-composition thead {
    background: #f6f8fb;
}

.table-composition th {
    padding: 14px;
    text-align: left;
    vertical-align: top;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #C9A66B;
    border-bottom: 2px solid #e8dcc7;
}

.table-composition td {
    padding: 11px 14px;
    color: #475569;
    border-bottom: 1px solid #ececec;
}

.table-composition tbody tr:nth-child(even) {
    background: #fafafa;
}

.table-composition tbody tr:hover {
    background: #f4f7fb;
}

/* Image composition */

.composition-img1 {
    flex: 0 0 360px;
    text-align: center;
}

.composition-img1 img {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: auto;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* Tablettes */

@media (max-width: 992px) {

    .hero {
        margin: 40px auto 50px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .historique,
    .description {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .historique-texte,
    .description-texte,
    .historique-img1,
    .description-img1 {
        width: 100%;
        max-width: 100%;
        flex: initial;
    }

    .historique p,
    .description p {
        text-align: left;
    }

    .composition-contenu {
        flex-direction: column;
        gap: 30px;
    }

    .composition-table,
    .composition-img1 {
        width: 100%;
    }

    .composition-img1 img {
        max-width: 100%;
    }

    .table-composition {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Téléphones */

@media (max-width: 768px) {

    section {
        padding: 0 16px 50px;
    }

    .hero {
        margin: 30px auto 40px;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .historique,
    .description {
        gap: 25px;
        margin-bottom: 45px;
    }

    .historique h1,
    .description h1,
    .composition h2 {
        font-size: 1.6rem;
        gap: 10px;
    }

    .historique h1::before,
    .description h1::before,
    .composition h2::before {
        width: 28px;
    }

    .historique p,
    .description p {
        font-size: .96rem;
        line-height: 1.8;
    }

    .table-composition th,
    .table-composition td {
        padding: 10px;
        font-size: .9rem;
    }
}

/* Petits téléphones */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 1.6rem;
    }

    .historique h1,
    .description h1,
    .composition h2 {
        font-size: 1.35rem;
    }

    .historique p,
    .description p {
        font-size: .92rem;
    }

    .table-composition th,
    .table-composition td {
        padding: 8px;
        font-size: .85rem;
    }
}
