:root {
    --primary-color: #152c31;
    --secondary-color: #e9e0c5;
    --tertiary-color: #f4f4f4;
    --button-color: #f7a900;
    --button-light-color: #ffb73d;
    --button-dark-color: #c48600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a[id] {
    scroll-margin-top: 80px;
}

body {
    overflow-x: hidden;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.25;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background-color: var(--primary-color);
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1em;
}
footer a {
    color: var(--button-color);
    text-decoration-style: dotted;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

nav {
    z-index: 5;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.25em;
}

nav .branding {
    position: absolute;
    left: 50px;
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-family: 'Jockey One', sans-serif;
}

nav .nav-mobile-toggle {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1em;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--button-color);
}

section {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
    gap: 60px;
}

section.contact {
    background-color: var(--primary-color);
    color: white;
    box-shadow: inset 0 -100px 50px -50px var(--primary-color), inset 0 100px 50px -50px var(--primary-color);
}

section.contact .contact-info a {
    text-decoration: none;
}

section.contact .section-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

section.contact .contact-details {
    margin-right: 40px;
    text-align: justify;
}

section.home {
    margin-top: 80px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding-bottom: 84px;
}

section.home, section.contact {
    background-image: url(../images/ad_leaf_pattern_01.png);
    background-size: 50%;
    background-position: center center;
    background-blend-mode: multiply;
    box-shadow: inset 0 -300px 150px -150px var(--primary-color), inset 0 300px 150px -150px var(--primary-color);
}

section.home .branding-catchphrase {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 2.5;
    text-align: center;
    color: var(--secondary-color);
}

section.home .branding-description {
    width: 600px;
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    text-align: justify;
    color: var(--secondary-color);
}

section.home .branding-img {
    width: 50px;
    height: auto;
}

section.home .branding-info {
    display: flex;
    align-items: center;
    flex-direction: column;
}

section.home .branding-name {
    font-family: 'Jockey One';
    font-style: normal;
    font-weight: 400;
    font-size: 64px;
    text-align: center;
    color: var(--secondary-color);
    text-shadow: 0px 4px 2px rgba(0,0,0,0.5);
}

section.home .branding-pro {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: calc(50% - 15px);
    padding: 24px;
    background: linear-gradient(180deg, #f7eed2 0%, var(--secondary-color) 100%);
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25), 0 4px 0 #f7eed2, 0 12px 8px rgba(0,0,0,.3), inset 0 -1px white;
    border-radius: 8px;
}

section.home .branding-pros {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 30px;
}

section.home .branding-pros > div {
    display: flex;
    flex: 1 0 50%;
}

section.home .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

section.home .logo-container img {
    height: 150px;
    margin-top: 65px;
}

section.home .section-info {
    display: flex;
    gap: 80px;
}

section.legal {
    display: none;
}

section.legal.open {
    display: flex;
}

section.legal .section-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    text-align: justify;
}

section.realisations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: var(--secondary-color);
    background-image: url(../images/ad_rea_pattern_bg.svg);
    background-size: 200vw 722px;
    background-repeat: no-repeat;
    background-position: center -2px;
}

section.realisations .gallery {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

section.realisations .gallery-active-image {
    position: relative;
    width: 498px;
    height: 498px;
}

section.realisations .gallery-active-image img {
    width: 490px;
    height: 490px;
    object-fit: cover;
}

section.realisations .gallery-active-info {
    margin-top: 40px;
    color: var(--secondary-color);
}

section.realisations .gallery-click-tip {
    position: absolute;
    left: 0;
    top: -40px;
    color: #375e49;
}

section.realisations .gallery-image:hover img {
    cursor: pointer;
    transform: scale(1.05);
}

section.realisations .gallery-image img {
    transition: all ease-in-out .2s;
}

section.realisations .gallery img {
    width: 212px;
    height: 212px;
    object-fit: cover;
}

section.realisations .realisation-location-date {
    opacity: .5;
    line-height: 1.5;
}

section.realisations .realisation-title {
    font-size: 1.25em;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
}

section.realisations .section-content {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: center;
}

section.realisations h2 {
    color: var(--secondary-color);
}

section.realisations img {
    border: solid 4px var(--secondary-color);
    box-shadow: 12px 12px 0 -8px #375e49;
}

section.pros {
    background-color: var(--tertiary-color);
}

section.pros .section-content {
    display: flex;
    justify-content: stretch;
    gap: 35px;
}

section.pros .section-content > div {
    width: 25%;
}

section.pros .team-info {
    box-shadow: 0 -1px var(--tertiary-color), 0 -16px 24px -32px var(--primary-color);
}

section.pros .team-info-name {
    margin-bottom: 16px;
    padding: 16px 0;
    font-family: 'Jockey One', sans-serif;
    font-size: 22px;
    box-shadow: 0 2px 0 var(--primary-color);
}

section.services {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../images/ad_tree_trimming_background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-blend-mode: soft-light;
    background-color: #9a9a9a;
}

section.services .service {
    display: flex;
    flex: 1 0 33%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #f7eed2 0%, var(--secondary-color) 100%);
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25), 0 4px 0 #f7eed2, 0 12px 8px rgba(0,0,0,.3), inset 0 -1px white;
    border-radius: 8px;
}

section.services .service-list {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

section.services .service h3 {
    font-family: 'Jockey One';
    font-style: normal;
    font-weight: 400;
    font-size: 1.25em;
    line-height: 21px;
    display: flex;
    align-items: center;
    color: #6ea06a;
}

section.services .service p {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    color: var(--primary-color);
}

section.services h2 {
    color: var(--secondary-color);
}

section.reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    background-image: url(../images/ad_rea_pattern_reverted_bg.svg);
    background-size: 200vw 315px;
    background-repeat: no-repeat;
    background-position: center bottom -2px;
}

section.reviews .section-content {
    display: flex;
    flex-direction: row;
    gap: 80px;
    justify-content: center;
    align-items: start;
}

section.reviews .section-content > div {
    width: 33.33%;
    text-align: justify;
}

section.reviews .team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--secondary-color);
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    gap: 10px;
}

section.reviews .team-info-name {
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 1.25em;
}

section.reviews .team-picture img {
    width: 398px;
    height: 398px;
    border: solid 4px var(--secondary-color);
    box-shadow: 12px 12px 0 -8px #375e49;
}

section.reviews h2 {
    color: #375e49;
}

section > *:not(.cta-button) {
    max-width: 1200px;
}

section h2 {
    font-family: 'Jockey One';
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 80px;
    text-align: center;
    text-transform: uppercase;
}

.bold {
    font-weight: bold;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 12px;
}

.contact-info-mail, .contact-info-telephone {
    color: var(--primary-color);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    background-color: var(--button-color);
    padding: 0 12px;
    box-shadow: 0 1px rgba(255,255,255,0.4), 0px 4px 0px var(--button-dark-color);
    border-radius: 60px;
    text-shadow: 0 1px rgba(0,0,0,.35);
}

.contact-info-mail:hover, .contact-info-telephone:hover {
    background-color: var(--button-light-color);
}

.form-button,
.cta-button a {
    display: inline-block !important;
    padding: 12px 48px;
    background: var(--button-color);
    box-shadow: inset 0px -4px 0px var(--button-dark-color), inset 0 -5px rgba(255,255,255,0.4);
    border-radius: 60px;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px rgba(0,0,0,.35);
    color: var(--primary-color);
}

.cta-button a:hover {
    background-color: var(--button-light-color);
}

.legal-card h3 {
    margin-bottom: 16px;
}

.legal-cards {
    display: flex;
    justify-content: space-between;
}

.legal-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: var(--secondary-color);
    border: 8px solid var(--secondary-color);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.modal-content img {
    max-height: 80vh;
    max-width: 40vw;
}

.modal.open {
    display: flex;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 0;
}

.service-category-name {
    font-family: 'Jockey One';
    color: var(--secondary-color);
    font-size: 1.25em;
    text-align: center;
    background-color: #375e49;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 0 #375e49, inset 0 1.5px 0 rgba(255,255,255,.15);
}

.service-category .service:first-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.service-category .service:last-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.service-category .service:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.service-category ul {
    display: flex;
    flex-direction: column;
}

/* Style pour le bandeau de cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    background: linear-gradient(-90deg, var(--button-color) 70%, var(--button-dark-color));
    color: var(--primary-color);
    padding: 10px;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 16px 8px rgba(0, 0, 0, .35);
}

#cookie-banner button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 5px;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1em;
}

#cookie-banner button:hover {
    background-color: #28525a;
}

form {
    display: flex;
    flex-direction: column;
    min-width: 500px;
    padding: 16px;
    
    background: linear-gradient(#275159, #152c31);
}

form label {
    display: none;
}

form input,
form select {
    height: 40px;
    font-size: 1em;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 0 10px;
    border: none;
    margin-bottom: 12px;
    background-color: white;
}

form textarea {
    padding: 12px;
    border: none;
    font-size: 1em;
    font-family: 'Roboto Condensed', sans-serif;
    background-color: white;
    margin-bottom: 16px;
}

form input[type=submit] {
    height: auto;
    margin-top: 16px;

    padding: 12px 48px;
    cursor: pointer;
}

form input[type=submit]:hover {
    background-color: var(--button-light-color);
}

.form-message {
    display: none;
    background: linear-gradient(9deg, var(--button-color) 50%, var(--button-light-color) 50%);
    padding: 12px 24px;
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 0 0 2px var(--primary-color), 0 0 0 4px var(--button-color);
}

.form-success {
    display: block;
    background: linear-gradient(9deg, var(--button-color) 50%, var(--button-light-color) 50%);
    box-shadow: 0 0 0 2px var(--primary-color), 0 0 0 4px var(--button-color);
}

.form-error {
    display: block;
    background: linear-gradient(9deg, #F75600 50%, #FF7120 50%);
    box-shadow: 0 0 0 2px var(--primary-color), 0 0 0 4px #F75600;
}