.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 64px;
    margin-right: 64px;


}

body {
    margin: 0;
    padding: 0;
    background-color: #1C2632;
}

.degrade {
    background: linear-gradient(to bottom, #1C2632, #E9E3D9);
    height: 100%;
    width: 100%;
}

.noir {
    color: #1C2632;
}

/* aider par gemini*/

header {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 70%, #E9E3D9 90%),
        url(img/imagefondheader.jpg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 900px;
}

.headerimage {

    width: 100%;
    height: 604px;

    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 70%, #E9E3D9 90%),
        url('img/cuisine3.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* aider par gemini*/


.btn {
    background-color: #E9E3D9;
    color: #000000;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;

    font-size: 18px;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btnorange {
    background-color: #D6785C;
    color: #E9E3D9;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;

    font-size: 18px;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btnorange1 {
    background-color: transparent;
    color: #D6785C;
    border: 1.5px solid #D6785C;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;

    font-size: 18px;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 110px;
    height: 65px;
}

.texteheader {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 18px;
}

.btn:hover {
    background-color: #9d988f;
    color: #000000;
    cursor: default;
    transform: scale(1.1);
}

.btnorange:hover {
    background-color: #B3634B;
    color: #E9E3D9;
    cursor: default;
    transform: scale(1.1);
}

.btnorange1:hover {
    background-color: #B3634B;
    color: #E9E3D9;
    cursor: default;
    border: none;
    transform: scale(1.1);
}



.texteheader:hover {
    color: #9d988f;
    cursor: default;
    transform: scale(1.1);
}



.container {
    /* permet d'avoir un affichage correct sur tous les écrant peut importe la taille */
    width: 100%;
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


.hero-section {
    position: relative;


    padding: 50px;



    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.main-title {
    font-family: 'Aver Magera', serif;
    font-weight: 400;
    font-size: 84px;
    line-height: 1.1;
    color: #E9E3D9;
    margin: 0;
    font-style: normal;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

}


.description {
    font-family: 'outfit', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #E9E3D9;
    line-height: 1.5;
    align-self: flex-end;
    max-width: 600px;
    text-align: left;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}


nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: #E9E3D9;
    text-decoration: none;
}


footer {
    background-color: #1C2632;
    color: #E9E3D9;
    text-align: center;
    padding: 10px;
}





/* Aider par gemini*/

.vertical-banner {
    writing-mode: vertical-rl;
    text-orientation: mixed;

    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 20px;
    color: #D6785C;

    pointer-events: none;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}


.vertical-banner span {
    display: inline-block;
    opacity: 0;
    filter: blur(5px);
    transform: scale(0.8) translateY(100px);

    transition: all 2.55s cubic-bezier(0.16, 1, 0.3, 1);
}


.scroll-down span {
    transform: scale(0.8) translateY(-100px);

}


.scroll-up span {
    transform: scale(0.8) translateY(100px);

}


.animate span {
    opacity: 1;
    filter: blur(0px);

    transform: scale(1.25) translateY(0);
}



/* Le conteneur principal qui fait office de Header */
.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 140vh;
    /* Prend tout l'écran */
    overflow: hidden;
    /* Coupe les images qui dépassent */
    display: flex;
    justify-content: center;
    background: #1a1f2b;
}

.gallery-container {
    display: flex;
    gap: 20px;
    /* Espace horizontal entre les colonnes */
    height: 100%;
    align-items: flex-start;
    /* Important pour l'alignement */
}

.col {
    width: 25vw;
    /* Largeur responsive : 25% de la vue */
    max-width: 525px;
    position: relative;
    /* Pas d'overflow hidden ici sinon ça coupe l'animation parfois */
}

.col-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Espace vertical entre les images */
    will-change: transform;
    /* Optimisation pour le navigateur */
}

/* Images */
.imggg {
    width: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- ANIMATIONS FLUIDES --- */

/* On utilise -50% car le JS a doublé le contenu exactement */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-50% - 10px));
    }

    /* -10px compense la moitié du gap (20px/2) pour être pixel perfect */
}

@keyframes scrollDown {
    0% {
        transform: translateY(calc(-50% - 10px));
    }

    100% {
        transform: translateY(0);
    }
}

.col-up .col-inner {
    animation: scrollUp 40s linear infinite;
}

.col-down .col-inner {
    animation: scrollDown 40s linear infinite;
}

/* --- DÉCORATION --- */

.overlay-top,
.overlay-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 5;
    pointer-events: none;
}

.overlay-top {
    top: 0;
    background: linear-gradient(to bottom, #1C2632 10%, transparent);
}

.overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, #1C2632 10%, transparent);
}

.cta-button {
    position: absolute;
    bottom: 50px;
    z-index: 10;
    background: #e6c89c;
    color: #1C2632;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}


@media (max-width: 1200px) {
    .vertical-banner {
        display: none;
    }
}

/* Aider par gemini*/





.bordureimagequibouge {
    border: 2px solid #E9E3D9;
}



.break {
    display: block;
    font-size: 25px;
}

.ad {
    justify-items: center;
}



main {

    background-color: #E9E3D9;
}

.grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.bold {
    font-weight: bold;
}

.outfit {
    font-family: 'Outfit', sans-serif;
}

.Merriweather {

    font-family: 'Merriweather Sans', sans-serif;
}

.avermagera {
    font-family: 'Aver Magera', serif;
}

.px16 {
    font-size: 16px;
}

.px60 {
    font-size: 60px;
}

.px20 {
    font-size: 20px;
}

.px18 {
    font-size: 18px;
}

.px24 {
    font-size: 24px;
}

.px32 {
    font-size: 32px;
}

.px40 {
    font-size: 40px;
}

.weigth400 {
    font-weight: 400;
}

.weigth600 {
    font-weight: 500;
}

.weigth700 {
    font-weight: 700;
}

.weigth500 {
    font-weight: 500;
}

.bold {
    font-weight: bold;
}


.blanck {
    color: #E9E3D9;
}

.section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.img {
    width: 100%;
    max-width: 394px;
    aspect-ratio: 394 / 234;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}


.img2 {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 600;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.img3 {
    width: 100%;
    max-width: 976px;
    aspect-ratio: 976 / 549;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.img5 {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600px / 400px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.img4 {
    width: 100%;
    max-width: 405px;
    aspect-ratio: 405 / 390;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.img44 {
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 1280 / 605;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}


.taille1 {
    width: 394px;
    height: 233px;
}

.padding-top {
    padding-top: 10rem;
}

.px40 {
    font-size: 40px;
}

.flex {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}



@media (max-width: 768px) {

    /* Ajustement du Header */
    .header {
        flex-direction: column;
        gap: 15px;
        margin: 0;
        padding: 20px;
    }

    header {
        min-height: auto;
        padding-bottom: 40px;
        height: auto;
    }

    /* Typographie Mobile */
    .main-title {
        font-size: 42px;
        text-align: center;
        margin-top: 40px;
    }

    .description {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        text-align: center;
        align-self: center;
    }

    .px60 {
        font-size: 32px;
        text-align: center;
    }

    .px40 {
        font-size: 28px;
    }

    .px32 {
        font-size: 24px;
        text-align: center;
    }

    .px20 {
        font-size: 16px;
    }

    /* Layout Mobile : Passage en colonne */
    .section,
    .flex,
    .hero-section {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        align-items: center;
        /* Important pour centrer les boutons */
    }

    .grid {
        padding: 0 15px;
        margin-bottom: 40px;
    }

    /* Force les éléments à prendre 100% de largeur */
    div[style*="width: 976px"],
    div[style*="width: 394px"],
    div[style*="width: 600px"],
    .taille1 {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border: none !important;
    }

    .img,
    .img2,
    .img3,
    .img4,
    .img5,
    .headerimage {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .headerimage {
        height: 300px;
    }

    section[style*="padding: 112px"] {
        padding: 60px 20px !important;
    }

    div[style*="padding-bottom: 15vh"] {
        padding-bottom: 5vh !important;
    }

    .padding-top {
        padding-top: 3rem;
    }

    /* --- CORRECTION BOUTONS --- */
    .btn,
    .btnorange,
    .btnorange1,
    .btnorangeavHover {
        display: inline-flex;
        /* Garde la taille du texte */
        width: auto;
        /* Pas de pleine largeur */
        min-width: 140px;
        /* Largeur minimale confortable */
        padding: 10px 25px;
        margin: 0 5px 15px 5px;
        /* Espacement autour */
        box-sizing: border-box;
    }

    .logo {
        margin-bottom: 10px;
    }

    .col {
        width: 45vw;
    }
}



.form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    background: linear-gradient(to bottom, #999999 0%, #EBE0D6 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {

    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    margin: 0;

}

::placeholder {
    color: #9ca3af;
}

.row {
    display: flex;
    gap: 15px;
}

.row .input-group {
    flex: 1;
}

textarea {
    resize: none;
    height: 60px;
}

.upload-group {
    margin-bottom: 20px;
}

.upload-label {
    background-color: #fff;
    border-radius: 12px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s;

}

.upload-label:hover {
    background-color: #f9f9f9;
}

.upload-label svg {
    margin-bottom: 10px;
    stroke: #222;
    fill: #222;
    stroke: none;
}

.upload-label svg path,
.upload-label svg rect,
.upload-label svg circle,
.upload-label svg polyline {
    stroke: #222;
    stroke-width: 2.5;
    fill: none;
}

.upload-label span {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.submit-btn {
    width: 100%;
    background-color: #D6785C;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #c56a4f;
}


.contact-card {
    background-color: #43939D;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: white;
    display: flex;
    flex-direction: column;
}

.contact-content {
    padding: 40px 40px 20px 40px;
}


.subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.map-container {
    width: 100%;
    height: 250px;
    margin-top: 20px;
    position: relative;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 20px;
    }

    .form-wrapper {
        border-radius: 8px;
    }

    .contact-card {
        border-radius: 8px;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }
}




header.animated-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;

    z-index: 9999;
    background: transparent;
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

}

.texteheader {
    text-decoration: none;
    color: #fff9ee;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease;

}


.texteheader::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #ff4757;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.texteheader:hover {
    color: #ff4757;
}

.texteheader:hover::after {
    width: 100%;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo {
    height: 35px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.logo:hover {
    transform: rotate(10deg) scale(1.1);
    /* Petit effet "pop" au survol */
}

/* --- 5. LE BOUTON (Ta classe .btn) --- */
.btn {
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    background: #E9E3D9;
    /* Couleur fond bouton */
    color: #1a1f2b;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #1a1f2b;
}

.btn:hover {
    background: #ff4757;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
}

/* --- 6. L'ANIMATION DE DÉPART --- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- VERSION MOBILE (RESPONSIVE) --- */
@media (max-width: 768px) {


    .header {
        flex-direction: column;
        gap: 15px;

        padding: 1rem;
    }

    nav ul {
        gap: 20px;
        justify-content: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }

    body {
        padding-top: 160px;
    }
}