/* =========================
   RÉGLAGES GÉNÉRAUX
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: white;
    color: black;
    font-family: Arial, Helvetica, sans-serif;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* =========================
   SITE GLOBAL
   FORMAT DE RÉFÉRENCE

   1000,1 × 435,7 mm
   Ratio ≈ 2,295

   Ici :
   1469,05 × 640 px
========================= */

.site {
    position: relative;

    width: 1469.05px;
    height: 640px;

    flex-shrink: 0;

    transform-origin: top center;

    /*
       L'échelle est calculée par le
       petit script placé en bas du HTML.
    */
}


/* =========================
   CADRE GÉNÉRAL DU SITE
========================= */

.site::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: url("images/fond pour site internet.png");
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;

    z-index: 100;

    pointer-events: none;
}


/* =========================
   CONTENU AU-DESSUS DU CADRE
========================= */

header,
main {
    position: relative;
    z-index: 1;
}


/* =========================
   EN-TÊTE
========================= */

header {
    padding: 20px 60px 0 60px;
}

.header-content {
    width: 100%;
}

.nom-agence {
    width: 100%;

    font-family: Garamond, "Times New Roman", serif;
    color: #9c5031;
}


/* =========================
   5°EST
========================= */

.logo-5est {
    width: 150px;

    white-space: nowrap;

    font-size: 35.3pt;
    line-height: 42.3pt;
    font-weight: normal;

    transform: scaleY(1.6);
    transform-origin: left center;
}


/* =========================
   LIGNE ARCHITECTURE + SITE
========================= */

.ligne-inferieure {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    width: 100%;

    margin-top: 5px;
}


/* =========================
   ARCHITECTURE
========================= */

.logo-architecture {
    width: 150px;

    white-space: nowrap;

    font-size: 11.3pt;
    line-height: 13.6pt;
    font-weight: bold;

    transform: scaleX(0.965) scaleY(1.5);
    transform-origin: left bottom;
}


/* =========================
   SITE EN CHANTIER
========================= */

.chantier {
    white-space: nowrap;

    font-family: Garamond, "Times New Roman", serif;
    color: #9c5031;

    font-size: 11.3pt;
    line-height: 13.6pt;
    font-weight: bold;

    transform: scaleX(0.965) scaleY(1.5);
    transform-origin: right bottom;
}


/* =========================
   GALERIE
========================= */

main {
    width: 100%;

    height: 525px;

    margin-top: 15px;
}


/* =========================
   CONTENEUR GALERIE
========================= */

.galerie {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;
}


/* =========================
   DÉFILEMENT DES PHOTOS
========================= */

.galerie-track {
    display: flex;

    align-items: center;

    gap: 40px;

    width: max-content;
    height: 100%;

    animation: defilement 270s linear infinite;
}


.galerie-track img {
    height: 525px;
    width: auto;

    object-fit: contain;

    display: block;
}


/* =========================
   ANIMATION
========================= */

@keyframes defilement {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* =========================
   CONTACT AU-DESSUS DES PHOTOS
========================= */

.contact-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 10;
}


/* =========================
   BLOC DU FORMULAIRE
========================= */

.contact-content {
    width: 420px;

    padding: 16px;

    box-sizing: border-box;

    font-family: Garamond, "Times New Roman", serif;

    color: #9c5031;

    transform: scale(0.85);
    transform-origin: center center;

    background: transparent;
}


/* =========================
   TITRE CONTACT
========================= */

.contact-title {
    margin: 0 0 10px 0;

    text-align: center;

    font-family: Garamond, "Times New Roman", serif;

    font-size: 30px;
    font-weight: bold;

    color: #9c5031;
}


/* =========================
   CHAMPS DU FORMULAIRE
========================= */

.contact-content input {
    width: 100%;

    padding: 6px;

    margin-bottom: 8px;

    border: none;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.35);

    font-family: Garamond, "Times New Roman", serif;

    font-size: 13px;

    color: black;

    outline: none;
}


.contact-content input::placeholder {
    color: black;

    opacity: 1;
}


/* =========================
   MESSAGE
========================= */

.contact-content textarea {
    width: 100%;

    height: 60px;

    padding: 9px 0;

    margin: 0 0 8px 0;

    border: none;

    background: transparent;

    font-family: Garamond, "Times New Roman", serif;

    font-size: 13px;

    color: black;

    outline: none;

    resize: none;
}


.contact-content textarea::placeholder {
    color: rgba(0, 0, 0, 0.75);
}


/* =========================
   BOUTON
========================= */

.contact-content button {
    width: 100%;

    padding: 8px;

    background: rgba(255, 255, 255, 0.35);

    color: #9c5031;

    border: none;

    font-family: Garamond, "Times New Roman", serif;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;
}


.contact-content button:hover {
    opacity: 0.85;
}


/* =========================
   PAUSE DES PHOTOS AU SURVOL
========================= */

.galerie:hover .galerie-track {
    animation-play-state: paused;
}


/* =========================
   MOBILE
========================= */

/*
   IMPORTANT :
   On ne redimensionne plus séparément
   le logo, les photos ou le formulaire.

   Tout le site est maintenant agrandi/réduit
   d'un seul bloc.
*/

@media (max-width: 768px) {

    .galerie-track {
        animation-duration: 90s;
    }

}