@font-face {
    font-family: 'LucidaCalligra';
    src: url('../fonts/LucidaCalligra.woff2') format('woff2'),
         url('../fonts/LucidaCalligra.woff') format('woff'),
         url('../fonts/LucidaCalligra.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

header {
    background-color: rgb(182, 49, 50);
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    grid-area: header;
}

#logo {
    display: inline-block;
    position: absolute;
    top: 30px;
    left: 200px;
    transition: transform 0.2s ease;
}

#logo:hover { transform: scale(1.1); }

header nav { display: none; transition: all 2s ease-in-out; }

header nav ul {
    display: flex;
    position: absolute;
    justify-content: center;
    gap: 20px;
    top: 30px;
    left: 650px;
    list-style: none;
}

header nav ul li a,
header nav a {
    padding: 5px 10px;
    font-family: 'LucidaCalligra', cursive;
    text-decoration: none;
    color: white;
    display: inline-block;
    position: relative;
}

header nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    height: 2px; 
    width: 0; 
    background-color: #fdfdfd;
    transition: width 0.3s ease; 
}

header nav ul li a:hover::after { width: 100%; }
#active::after { width: 100%; transition: none; }

header .hamburger { display: block; }

.hamburger {
    position: relative;
    z-index: 101;  
    margin-left: 20px;
    padding: 0;
    float: left;
    transition: opacity 0.3s;
}

.hamburger:hover { cursor: pointer; opacity: 0.5; }

.hamburger .line {
    width: 50px;
    height: 5px;
    margin: 8px auto;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger .line:nth-child(1),
.hamburger .line:nth-child(3) { background-color: #ececec; }
.hamburger .line:nth-child(2) { background-color: #ccc; }

.hamburger.isactive .line:nth-child(2) { opacity: 0; }
.hamburger.isactive .line:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.hamburger.isactive .line:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

header nav.active {
    display: block;
    animation: fade 0.5s;
    position: absolute;
    z-index: 100;
    top: 0; left: 0;
    width: 240px;
    background-color: rgb(182, 49, 50); 
    min-height: 100vh;                  
}

header nav.active ul {
    position: static;
    display: flex;             
    flex-direction: column;
    top: auto;
    left: auto;
    padding: 80px 0 20px 20px;
    gap: 10px;
    list-style: none;
}

header nav.active ul li a {
    padding: 5px 10px;
    font-family: 'LucidaCalligra', cursive;
    text-decoration: none;
    color: white;
    display: inline-block;
    position: relative;
}

@keyframes fade {
    from { transform: translateX(-200px); opacity: 0; }
    to   { transform: translateX(0);      opacity: 1; }
}

.hero {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
    position: absolute;
    left: 650px; top: 100px;
    font-size: 30px;
    font-family: 'LucidaCalligra', cursive;
    text-shadow: 2px 2px black;
}

.hero p {
    position: absolute;
    left: 550px; top: 150px;
    font-size: 20px;
    font-family: 'none';
}

.varietes {
    background-color: rgb(182, 49, 50);
    border-radius: 10px;
    width: 1500px;
    height: 300px;
    margin: 1% auto 0;
    text-align: center;
    padding: 4px;
}

.varietes h2 { font-family: 'LucidaCalligra', cursive; color: white; font-size: 30px; }
.varietes p  { color: white; font-size: 20px; }

.varietes ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0 230px;
    margin-bottom: 0;
}

.varietes li, .description li h3, .description li p { font-family: Arial, Helvetica, sans-serif; }

.varietes li {
    color: white;
    font-size: 22px;
    background-color: rgb(109, 58, 57);
    box-shadow: 1px 1px 10px 3px rgba(46, 46, 46, 0.596);
    border-radius: 5px;
    padding: 30px 35px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.varietes li:hover { transform: translateY(-2px); }

.description {
    width: 1500px;
    height: 530px;
    margin: 1% auto 0;
    border-radius: 10px;
    border: 2px solid rgb(182, 49, 50);
}

.description > h3 { font-family: 'LucidaCalligra', cursive; text-align: center; font-size: 25px; }

.description ol {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 20px;
}

.description li {
    width: 400px;
    height: 400px;
    background-color: lightgrey;
    box-shadow: 1px 1px 5px 3px rgba(46, 46, 46, 0.596);
    border-radius: 5px;
    padding: 5px;
}

.description li h3 {
    position: absolute;
    margin: 1px 0 0 1px;
    width: 180px;
    height: 40px;
    padding: 5px 0 0 5px;
    border-bottom-right-radius: 5px;
    background-color: rgba(247, 243, 243, 0.74);
    font-size: 25px;
    color: rgba(0, 0, 0, 0.726);
}

.description li p {
    position: absolute;
    margin: 376px 0 0 1px;
    width: 395px;
    height: 20px;
    padding: 5px 0 0 5px;
    background-color: rgb(245, 88, 88);
    font-size: 13px;
    text-align: justify;
}

.description li img {
    display: block;
    width: 400px;
    height: 400px;
    border-radius: 5px;
    border: 1px solid rgb(100, 28, 28);
    object-fit: cover;
}

#h1-page-detail { font-family: 'LucidaCalligra', cursive; text-align: center; font-size: 25px; }

.tableau-gariguette {
    width: 100%;
    margin: 20px auto;
    overflow-x: auto;
    font-family: Arial, sans-serif;
}

.tableau-gariguette table { width: 100%; min-width: 600px; border-collapse: collapse; }
.tableau-gariguette th { background-color: #e63946; color: white; padding: 10px; text-align: left; }
.tableau-gariguette td { padding: 10px; border: 1px solid #ddd; }
.tableau-gariguette tr:nth-child(even) { background-color: #f9f9f9; }
.tableau-gariguette tr:hover { background-color: #ffe5e5; }
.tableau-gariguette h2 { text-align: center;}

.formulaire-contact { width: 90%; max-width: 600px; margin: 30px auto; }
.formulaire-contact h1 { text-align: center; margin-bottom: 10px; font-family: 'LucidaCalligra', cursive; }
.formulaire-contact p { margin-bottom: 15px; }
.formulaire-contact form { background-color: #fff5f5; padding: 20px; border-radius: 10px; }
.formulaire-contact label { display: block; margin-bottom: 5px; font-weight: bold; }
.formulaire-contact input, select, textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; }
.formulaire-contact input[type="checkbox"], input[type="radio"] { width: auto; margin-right: 5px; }
.formulaire-contact fieldset { border: 1px solid #ddd; padding: 10px; margin-bottom: 15px; border-radius: 5px; }
.formulaire-contact legend { font-weight: bold; color: #e63946; }
.formulaire-contact input[type="submit"] { background-color: #e63946; color: white; border: none; cursor: pointer; padding: 10px; font-weight: bold; }
.formulaire-contact input[type="submit"]:hover { background-color: #c62828; }    

.mentions-legales { width: 85%; max-width: 800px; margin: 30px auto; font-family: Arial, sans-serif; line-height: 1.6; }
.mentions-legales section { margin-bottom: 25px; }
.mentions-legales h1 { text-align: center; margin-bottom: 20px; font-family: 'LucidaCalligra', cursive; }
.mentions-legales h2 { color: #e63946; margin-bottom: 10px; }
.mentions-legales h4 { margin-top: 15px; margin-bottom: 5px; }
.mentions-legales p { margin-bottom: 10px; }

footer {
    height: 100px;
    padding: 2px;
    background-color: brown;
    margin-top: 30px;
    text-align: center;
    grid-area: footer;
}

footer ul { display: flex; justify-content: center; gap: 20px; list-style: none; }
footer a  { text-decoration: underline; color: rgb(248, 162, 162); }
footer p { color: white; }

@media (max-width: 600px) {
    #logo { top: 30px; left: 250px; }

    .hero h1 { font-size: 25px; left: 10px; top: 80px; }
    .hero p { font-size: 15px; left: 10px; top: 160px; }

    .varietes { width: 300px; height: 650px; }
    .varietes ul { display: block; width: 200px; padding: 0 55px; }
    .varietes li { font-size: 18px; }

    .description { width: 300px; height: 900px; margin-top: 20px; }
    .description ol { display: block; }
    .description li { width: 200px; height: 200px; margin: 30px 0 0 30px; }
    .description li h3 { width: 130px; height: 30px; font-size: 18px; }
    .description li p  { margin-top: 176px; width: 195px; }
    .description li img { width: 200px; height: 200px; }

    footer { height: 130px; text-align: center; }
    footer ul { display: block; }
    footer p { margin-left: 28px; }
}

@media (min-width: 601px) and (max-width: 819px) {
    #logo { top: 30px; left: 600px; }

    .hero h1 { font-size: 30px; left: 100px; top: 80px;}
    .hero p { font-size: 20px; left: 20px; top: 160px;}

    .varietes { width: 600px; height: 600px; }
    .varietes ul { display: block; width: 250px; padding: 0 170px; }

    .description { width: 600px; height: 900px; margin-top: 20px; }
    .description ol { display: block; }
    .description li { width: 200px; height: 200px; margin: 30px 0 0 170px; }
    .description li h3 { width: 130px; height: 30px; font-size: 18px; }
    .description li p  { margin-top: 176px; width: 195px; }
    .description li img { width: 200px; height: 200px; }

    footer { height: 130px; text-align: center; }
    footer ul { display: block; }
    footer p { margin-left: 28px; }
}

@media (min-width: 820px) {
    #logo { top: 30px; left: 50px; }
    header nav ul { left: 150px; }
    header .hamburger { display: none; }
    header nav { display: block; }

    .hero h1 { font-size: 30px; left: 130px; top: 80px;}
    .hero p { font-size: 20px; left: 20px; top: 160px;}

    .varietes { width: 600px; height: 600px; }
    .varietes ul { display: block; width: 250px; padding: 0 170px; }

    .description { width: 600px; height: 900px; margin-top: 20px; }
    .description ol { display: block; }
    .description li { width: 200px; height: 200px; margin: 30px 0 0 170px; }
    .description li h3 { width: 130px; height: 30px; font-size: 18px; }
    .description li p  { margin-top: 176px; width: 195px; }
    .description li img { width: 200px; height: 200px; }

    footer { height: 130px; text-align: center; }
    footer ul { display: block; }
    footer p { margin-left: 28px; }
}

@media (min-width: 1280px) {
    #logo { top: 30px; left: 50px; }
    header nav ul { left: 350px; }
    header .hamburger { display: none; }
    header nav { display: block; }

    .hero h1 { font-size: 30px; left: 350px; top: 80px;}
    .hero p { font-size: 20px; left: 250px; top: 160px;}

    .varietes { width: 1000px; height: 300px; }
    .varietes ul { display: flex; width: 800px; padding: 0 100px; }

    .description { width: 1000px; height: 900px; margin-top: 20px; }
    .description ol { display: block; }
    .description li { width: 200px; height: 200px; margin: 30px 0 0 400px; }
    .description li h3 { width: 130px; height: 30px; font-size: 18px; }
    .description li p  { margin-top: 176px; width: 195px; }
    .description li img { width: 200px; height: 200px; }

    footer { height: 130px; text-align: center; }
    footer ul { display: block; }
    footer p { margin-left: 28px; }
}

@media (min-width: 1900px) {
    #logo { top: 30px; left: 150px; }
    header nav ul { left: 650px; }
    header .hamburger { display: none; }
    header nav { display: block; }

    .hero h1 { font-size: 30px; left: 650px; top: 100px;}
    .hero p { font-size: 20px; left: 550px; top: 150px;}

    .varietes { width: 1500px; height: 300px; }
    .varietes ul { display: flex; width: 1000px; padding: 0 270px; }

    .description { width: 1500px; height: 530px; }
    .description ol { display: flex; }
    .description li { width: 400px; height: 400px; margin: 0; }
    .description li h3 { width: 180px; height: 40px; font-size: 25px; }
    .description li p  { margin-top: 376px; width: 395px; }
    .description li img { width: 400px; height: 400px; }

    footer { height: 100px; }
    footer ul { display: flex; }
}