/* Import des fonts nécessaires pour le site */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

/*
    CSS Général
*/
:root{
    --primary-color: #383838; /* background color */
    --secondary-color: #282828; /* background color dark */
    --green-color: #33901C; /* green color */
    --text-color: #FFFFFF; /* text color */

    --fs-h1: 2.5rem;   /* ~40px */
    --fs-h2: 2rem;     /* ~32px */
    --fs-h3: 1.5rem;   /* ~24px */
    --fs-h4: 1.25rem;  /* ~20px */
    --fs-p: 1rem;      /* ~16px */
    --fs-small: 0.875rem; /* ~14px */
    --fs-xs: 0.75rem;  /* ~12px */

    --font-body: 'Lato', sans-serif; /* font pour le texte */
    --font-heading: 'Playfair Display', serif; /* font pour les titres */
}

*, ::before, ::after{
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    scroll-behavior: smooth;
}

body{
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x:hidden;
}

a{
    text-decoration: none;
    color: var(--text-color);
}

ul{
    list-style: none;
}

p{
    font-size: var(--fs-p);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--green-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--green-color);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    background-color: var(--green-color);
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2{
    font-size: var(--fs-h2);
    font-family: var(--font-heading);
    margin: 20px 0;
}

/*
    Header
*/
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px; */
}

#img-logo{
    width: 130px;
    height: 90px;
    padding: 5px;
    margin-left: 20px;
}

.navigation{
    display: flex;
    flex-direction: row;
    margin-right: 40px;
}

.navigation > li {
    display: inline-block;
    margin: 0 10px;
    text-transform: uppercase;
    position: relative;
}

.navigation > li a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.navigation > li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 3px;
    background-color: var(--green-color);
    transition: width 0.3s ease-in-out;
}

.navigation > li a:hover::after {
    width: 100%;
}


/* 
    Section Hero -> header
*/
.hero {
    position: relative;
    background-image: url(/assets/images/description-background.jpg);
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center center;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
}

.description {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    background-color: rgba(56, 56, 56, 0.7);
    border-radius: 10px;
    padding: 40px;
}

.description h1{
    font-size: var(--fs-h1);
    font-family: var(--font-heading);
    margin-bottom: 29px;
    text-transform: uppercase;
}

.description p{
    margin-bottom: 29px;
}

/*
    Section Notre Histoire
*/
#histoire {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    width: 75%;
    border-radius: 10px;
    margin: 60px auto;
}

.img-histoire img {
    width: 552px;
    height: 100%;
    border-radius: 12px;
}

.histoire {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 500px;
}

/*
    Section Nos Valeurs
*/

#valeurs {
    background-color: var(--primary-color);
    width: 80%;
    margin: 60px auto;
    padding: 40px 0;
    text-align: center;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.valeur {
    background-color: var(--secondary-color);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.valeur:hover {
    transform: translateY(-5px);
}

.valeur h3 {
    font-size: var(--fs-h3);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.valeur p {
    font-size: var(--fs-p);
    line-height: 1.6;
}



/*
    Section Nos Services
*/
#services{
    background-color: var(--secondary-color);
    padding: 40px 0;
    margin: 10px 0;
}

.container-service{
    width: 80%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.services-grid{
    display: grid;
    gap: 65px;
    grid-template-columns: repeat(2, 1fr);
}

.card{
    position: relative;
    height: 420px;
}

.card img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    opacity: 50%;
    transition: transform 0.3s ease;
    box-shadow: 15px 15px 10px 0px rgba(0, 0, 0, 0.25);
}

.card-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.card-content h3{
    font-size: var(--fs-h3);
}

/* Texte caché par défaut */
.card-texte {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 10px;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

/* Quand on survole .card, le texte apparaît */
.card:hover .card-texte {
    opacity: 1;
    max-height: 420px; /* ou + grand selon la quantité de texte */
}

/*
    Section Galerie
*/
#galerie{
    width: 80%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.gallery-grid{
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
}

.img-gallery{
    border-radius: 10px;
    box-shadow: 15px 15px 10px 0px rgba(0, 0, 0, 0.25);
}

/*
    Section Contact
*/

#contact {
    margin-top: 80px;
    background-image: url('/assets/images/image_de_fond_contact.png');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
}

.contact-overlay {
    background-color: rgba(40, 40, 40, 0.85);
    padding: 40px 0;
}

.contact-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-logo img {
    width: 220px;
    height: auto;
}

.contact-card {
    background-color: var(--secondary-color);
    padding: 30px 80px;
    border-radius: 12px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 20px;
}

.contact-card p {
    font-size: var(--fs-p);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--green-color);
}

footer{
    display: flex;
    justify-content: center;
    background-color: var(--secondary-color);
    width: 100%;
    padding: 40px;    
    text-align: center;
}

footer a:hover{
    color: var(--green-color);
}

@media (max-width: 1024px) {
    .description {
        left: 50%;
        width: 80%;
        padding: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #histoire {
        flex-direction: column;
        text-align: center;
    }

    .img-histoire img {
        width: 100%;
    }

    .histoire {
        padding: 20px;
    }

    .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-logo img {
        width: 150px;
        margin-bottom: 20px;
    }

    .contact-card {
        padding: 30px;
    }

    .navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-right: 0;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }
}

@media (max-width: 600px) {
    :root {
        --fs-h1: 2rem;
        --fs-h2: 1.5rem;
        --fs-h3: 1.25rem;
        --fs-p: 0.95rem;
    }

    .hero {
        background-attachment: scroll;
        background-position: center top;
    }

    .description {
        padding: 20px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 25px;
    }
}



