@font-face {
    font-family: 'Higuen Serif';
    src: url(/fonts/Higuen\ Serif.otf);
    font-display: swap;
}

@font-face {
    font-family: 'Jozoor Font Regular';
    src: url(/fonts/Jozoor\ Font\ Regular.otf);
    font-display: swap;
}

/********************************/
/* Couleur de fond différenciés */
/********************************/

:root {
    --color1 : #12459b;
    --color2 : #ff8c00;
    --color3 : #ffc78a;
    --color4 : #ffe5bd;
    --color5 : #664200;
    --color6 : #000000;
    --color7 : #d5a362;
    --color8 : #ffefd6;
}

.accueil {
    --color-primary : var(--color4);
    --color-menu : var(--color5);
}

.presentation {
    --color-primary : var(--color2);
    --color-menu : var(--color6);
}

.services {
    --color-primary : var(--color3);
    --color-menu : var(--color6);
}

.references {
    --color-primary : var(--color7);
    --color-menu : var(--color6);
}

.contact {
    --color-primary : var(--color8);
    --color-menu : var(--color1);
}

.legal {
    --color-primary : #fff;
    --color-menu : var(--color2);
}

*{
    font-family: 'Higuen Serif', sans-serif;
    text-align: center;
}

body {
    margin: 0;
    min-height: 100vh;
}

strong {
    font-weight: normal;
}

h1 {
    font-family: 'Jozoor Font Regular', sans-serif;
    line-height: 1;
}

h1 {
    font-size: 2em;
    text-transform: uppercase;
    margin: 80px auto;
    color: var(--color-menu);
}

h2 {
    font-size: 2em;
    text-decoration: underline;
    text-align: left;
    font-weight: normal;
}

h3 {
    text-decoration: underline;
    margin: 10px 0 0 0;
    font-weight: normal;
}

h3 + p {
    margin: 0;
}

.logo {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 150px;
    height: 150px;
}

@media (max-width : 600px) {
    .logo {
        width: 60px;
        height: 60px;
    }
}

p {
    font-size: 1.5em;
}

img {
    max-width: 98vw;
}

/***************/
/* BOUTON MENU */
/***************/

.btnmenu-container{
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 35px;
    height: 35px;
}

.btnmenu > span, .btnmenu > span::before, .btnmenu > span::after {
    background-color: var(--color-menu);
    content: '';
    position: relative;
    display: block;
    width: 35px;
    height: 4px;
    
}

.btnmenu {
    background-color: transparent;
    border: none;
    width: 50px;
    height: 50px;
}

.btnmenu > span::before {
    top: 12px;
}

.btnmenu > span::after {
    top: 22px;
}


nav {
    display: none;
    z-index : 998;
}

.ouvert {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: #fff;
    padding-top: 50px;
}
.ouvert a {
    display: inline-block;
    margin: 10px 70px 10px 70px;
    height: 60px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-menu);
    text-decoration: none;
    font-size: 2em;
}

.btnmenu.fermer > span::before {
    content: '\00D7'; /* Caractère Unicode de croix (×) */
    position: relative;
    top: -60px;
    left: 0;
    font-size: 100px;
    color: var(--color-menu);
}

.btnmenu.fermer > span, .btnmenu.fermer > span::before, .btnmenu.fermer > span::after {
    background-color: transparent;
    z-index: 999;
}

main {
    background-color: var(--color-primary);
    min-height: 100vh;
}

.row {
    display: flex;
    flex-direction: row;
    align-content: stretch;
}

.row > * {
    flex: 1;
    min-height: 100%;
    padding: 25px;
}

@media (max-width : 1000px) {
    .row {
        flex-direction: column;
    }
}

.column {
    display: flex;
    flex-direction: column !important;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
    overflow: hidden;
    padding: 10px 20px;
    box-sizing: border-box;
}

.gros {
    font-size: 3em;
    font-style: italic;
    margin-top: 10px;
}

.citation {
    color: var(--color1);
    font-size: 2em;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


footer {
    background-color: #fff;
}

footer p {
     font-size: 1em;
}

footer a {
    color: black;
    text-decoration: none;
}


/* Page accueil */

#maisonplan {
    background-image: url(/img/maisonplan.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    min-height: 500px;
}

.accueil h1 {
    color: var(--color5);
    font-size: 4em;
}

/* Page références */

.references main {
    max-height: 100vh;
}

.references h1,
.references .citation {
    flex: 0 0 auto;
}

.references main > div {
    flex: 1 1 auto;
    max-height: 100%;
    width: auto;
    min-height: 0; /* Astuce pour que l'élement se réduise a la taille dispo (sinon le minimum est de sa taille d'origine) */
    display: flex;
    align-items: center;
    overflow: hidden; /* Correctif dépassement sur Chrome */
}

.references video {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Page contact */

.contact main, .contact main * {
    color: var(--color1);
    text-align: left !important;
    align-items: flex-start;
}

.contact p {
    margin: 10px 0;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 80vw;
    margin-bottom: 25px;
}

form > div {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    max-width: 800px;
    width: 100%;
}

form label {
    margin-bottom: 10px;
}

form input[type="text"],  form input[type="email"], form textarea {
    width: 100%;
    height: 30px;
}

form textarea {
    min-height: 100px;
}

form .row {
    flex-direction: row;
}

form .row > div {
    margin-right: 25px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

form .row > div:last-child {
    margin-right: 0;
}

.consentement {
    display: block;
    text-align: justify;
}

.h-captcha {
    align-items: center;
}

form input[type="submit"] {
    padding: 10px 15px;
    display: inline-block;
    width: auto;
}

.alert {
    color: red;
}

#messageenvoye {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#messageenvoye p {
    color: var(--color2);
}