/* --------------------------- Variable ---------------------------------- */
:root
{
  --police: Tin-Doghouse;
  --logo_orange: #F6AE17;
  --logo_gris: #C1C0C2;
  --logo_noir: #403B3A;
  --hauteur_menu: 90px;
}

/* --------------------------- Police personnalisée --------------------- */
@font-face
{
    font-family: 'Tin-Doghouse';
    src: url('fonts/Tin-Doghouse.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --------------------------- Général site --------------------------- */

*, *::before, *::after {box-sizing: border-box;}

html {scrollbar-width: none;}
html::-webkit-scrollbar {display: none;}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--hauteur_menu);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
}

a:link, a:visited, a:active, a:hover {text-decoration: none; color: #000;}

section
{
    scroll-margin-top: var(--hauteur_menu);
    /*min-height: calc(100vh - var(--hauteur_menu));*/
}

nav
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--hauteur_menu);
    background-color: #20201F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    z-index: 1000;
}

.logo
{
    display: grid;
    align-items: center;
    column-gap: 12px;
    color: var(--logo_orange);
    font-family: var(--police), sans-serif;
    font-size: 1.4rem;
}

.logo img
{
    height: 70px;
    width: auto;
    grid-row: 1 / span 2;
    grid-column: 1;
}

.logo div
{
    grid-column: 2;
}

.nav-links
{
    display: flex;
    gap: 30px;
}

.nav-item
{
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.nav-item:hover
{
    color: var(--logo_orange);
}

.nav-item.actif
{
    color: var(--logo_orange);
    border-bottom: 2px solid var(--logo_orange); padding-bottom: 4px;
}

/* --------------------------- Accueil --------------------------- */

#accueil
{
    background-color: #322E2C;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-gap: 30px;
    padding: 40px 5%;
    align-items: center;
}

#accueil div:nth-child(1), #accueil div:nth-child(3)
{
    display: flex;
    justify-content: center;
    align-items: center;
}

#accueil div:nth-child(2)
{
    text-align: center;
    display: flex;
    flex-direction: column;
    grid-gap: 14px;
}

#accueil img
{
    max-width: 100%;
    max-height: 460px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

#accueil h1
{
    font-family: var(--police), sans-serif;
    font-size: 2.2rem;
    color: var(--logo_orange);
    line-height: 1.3;
}

#accueil div:nth-child(2) div
{
    font-size: 1.25rem;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.25);
    border-left: 4px solid var(--logo_orange);
    padding: 10px 18px;
    border-radius: 0 6px 6px 0;
}

/* --------------------------- À propos --------------------------- */

#a-propos
{
    background-color: #fff;
    color: var(--logo_noir);
    display: grid;
    grid-template-columns: 0.6fr 1.3fr 1fr;
    align-items: center;
    grid-gap: 45px;
    padding: 70px 5%;
}

#a-propos > div:nth-child(1)
{
    text-align: center;
}

#a-propos > div:nth-child(1) img
{
    width: 100%;
    max-width: 400px;
    height: auto;
}

#a-propos > div:nth-child(2) h2
{
    font-family: var(--police), sans-serif;
    font-size: 2rem;
    margin: 0 0 20px 0;
    color: var(--logo_noir);
}

#a-propos > div:nth-child(2) h2 span
{
    color: var(--logo_orange);
}

#a-propos > div:nth-child(2) p
{
    font-size: 1.05rem;
    margin: 0 0 15px 0;
    text-align: justify;
}

#a-propos > div:nth-child(2) a
{
    color: #d48e00;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

#a-propos > div:nth-child(2) a:hover
{
    border-bottom-color: #d48e00;
}

#a-propos > div:nth-child(2) > div
{
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--logo_noir);
}

#a-propos > div:nth-child(2) > div > div
{
    flex: 1;
    background-color: #f5f5f5;
    border-left: 4px solid var(--logo_orange);
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0 6px 6px 0;
}

#a-propos > div:nth-child(3) img
{
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: block;
}

/* --------------------------- Services --------------------------- */

#services
{
    background-color: #E9EBF1;
    color: #322E2C;
    padding: 20px 5%;
}

#services h2
{
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
}

#services > div
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

#services > div > div
{
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--logo_orange);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#services h3
{
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    text-align: center;
}

#services img
{
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

#services span
{
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    color: #403B3A;
}

#services > div > div:nth-child(1) > div:first-of-type
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#services > div > div:nth-child(2) > div
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#services > div > div:nth-child(3) > div
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#services > div > div:nth-child(3) > div > div:nth-child(3)
{
    grid-column: span 2;
}

#services > div > div:nth-child(3) img
{
    object-fit: contain;
    background-color: var(--logo_gris);
}

#realisations
{
    background-color: #fff;
}

#machine
{
    background-color: #E9EBF1;
}

#contact
{
    background-color: #322E2D;
}

footer
{
    background-color: #111111;
}