/* polices d'écriture */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* style généraux */
body {
    width: 100%;
    font-family: "Raleway", sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: white;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../images/background.jpg');
    background-repeat: repeat;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.04;
    z-index: -10;
    pointer-events: none;
}


/* Correction de style injecté par bootstrap */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.title, .subtitle {
    font-family: "Marcellus", serif;
    text-align: center;
}

.title {
    margin-top: 20px;
    font-size: 36px;
}

.subtitle {
    margin-top: 20px;
}

@media screen and (min-width: 767px) {
    .title {
        font-size: 54px;
        margin-bottom: 30px;
    }

    .subtitle {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

.text-container {
    width : 95%;
    margin: auto;
    padding: 2vw;
}

.text {
    font-size: 18px;
    text-align : justify;
}

@media screen and (min-width:1180px) {
    .text-container {
        width : 80%;
    }
}

.subtext {
    font-size: 12px;
}

.link {
    text-decoration: none;
    color: white;
}

.link:hover {
    text-decoration: none;
    color: #E8C547;
}

.button-container {
    display: flex;
    justify-content: center;
}

.button {
    background-color: #A65E2E;
    border: none;
    padding: 1vw;
    font-family: "Marcellus", serif;
    border: 3px solid #A65E2E;
    box-shadow: 8px 4px 4px rgb(167, 167, 167);
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.return-btn-container {
    display: flex;
    justify-content: flex-end;
}

.button:hover {
    background-color: white;
    color:#A65E2E;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.button:hover .link {
    color:#A65E2E;
}

.button2 {
    display: inline-block;
    width: auto;
    padding: 0.5em 1em;
    margin: 2vw;
    margin-bottom: 5vw;
}

/* style de la barre de contact en haut des pages */
.sub-header {
    background-color: #569793;
}

.sub-header-text {
    padding: 2vw;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

@media screen and (min-width:768px) {
    .sub-header-text {
        font-size: 1rem;
    }  
}

/* style du header */
.header {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background-color: white;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/sergi-kabrera-2xU7rYxsTiM-unsplash2.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    opacity: 0.6;
    z-index: 0;
}

.header > * {
    position: relative;
    z-index: 1;
}


.header-text {
    font-family: "Marcellus", serif;
    font-size: 24px;
    font-weight: bolder;
}

@media screen and (min-width:768px) {
    .header {
        padding: 50px;
    }

    .header-text {
        font-size: 36px;
    }  
}

.logo {
    width: 75px;
    height: 75px;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.15);
}

@media screen and (min-width:768px) {
    .logo {
        width: 150px;
        height: 150px;
    }
}

/* style de la barre de navigation */
.navbar {
    background-color: #569793;
    color: white;
    margin-bottom: 5vw;
  }

.nav-item {
    font-family: "Marcellus", serif;
    font-size: 24px;
    padding: 1vw;
    padding-right: 2vw;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:focus-visible,
.navbar-toggler:active {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: none;
}

/* Style de l'encart de création de site */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.creation-container {
    position: relative;
    margin: 5vw auto;
    padding: 5vw;
    background-size: cover;
    color: #000;
    z-index: 1;
    overflow: hidden;
    background-color: white;
}

.creation-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/carlos-muza-unsplash-opacity.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.creation-container > * {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.creation-container.animate > * {
    animation: fadeInUp 1s ease-out forwards;
}

.creation-container.animate h1 {
    animation-delay: 0.2s;
}

.creation-container.animate p {
    animation-delay: 0.4s;
}

.creation-container.animate .button-container {
    animation-delay: 0.6s;
}


/* Style de l'encart référencement */
.ref-item {
    background-color: #569793;
    margin: 1vw;
    padding: 2vw;
    text-align: center;
    box-shadow: 8px 4px 4px rgb(192, 192, 192);
    opacity: 0;
    transform: translateY(30px);
}

/* Animation déclenchée uniquement à l’apparition */
.ref-item.animate {
    animation: fadeInUp 2s ease forwards;
}

@media screen and (max-width: 767px) {
    .ref-container {
        margin-bottom: 20px;
    }
}

.ref-svg {
    margin: 0 auto;
    padding-bottom: 1vw;
}

.ref-title, .ref-text {
    color: white;
}

.ref-title {
    font-family: "Marcellus", serif;
    padding-bottom: 1vw;
    font-weight: bold;
}

/* style du formulaire de contact */
.form-control {
    margin: 1vw;
    padding: 1vw;
    width: 100%;
}

.form-control:focus {
    border-color: rgb(232, 197, 71);
    box-shadow: 0 0 0 0.1rem rgba(232, 197, 71, 0.65);
}

.form-check {
    margin-left: 4vw;
}

.form-check-label {
    padding-left: 20px;
    font-size: 14px;
}

/* Style de la checkbox */
/* Cacher la checkbox native */
.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}
  
  /* Style quand cochée */
.form-check-input:checked, .form-check-input:active, .form-check-input:focus {
    outline: none;
    box-shadow: none;
}

.form-check-input:active, .form-check-input:focus {
    border-color: #e8c547;
    box-shadow: 0 0 0 0.1rem rgba(232, 197, 71, 0.65);
}

.form-check-input:checked {
    background-color: #e8c547;
    border-color: rgb(232, 197, 71);
}
  
  /* Optionnel : Ajouter un check visuel */
.form-check-input:checked::after {
    color: white;
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 3px;
}

.alert-danger, .alert-success {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
}

.alert-danger {
    color: red;
}

.alert-success {
    color: green;
}


/* style des réalisations */
@media screen and (min-width: 768px) {
    .logo-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin: 30px;
    }
}

@media screen and (max-width: 768px) {
    .logo-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin-bottom: 30px;
    }
}

.logo-img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease; /* Transition de l'opacité */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Opacité du fond */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease; /* Transition de l'opacité */
}

.real-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .real-text {
        font-size: 1.25rem;
    }  
}

@media screen and (min-width: 997px) {
    .real-text {
        font-size: 1rem;
    }  
}

/* Lorsque le texte est en cours d'affichage */
.text.animating {
    white-space: pre-wrap; /* Permet le retour à la ligne */
}

/* Lorsque le conteneur est survolé */
.logo-container:hover .overlay {
    opacity: 1;
}
.logo-container:hover .logo-img {
    opacity: 0.5; /* Opacité de l'image lors du survol */
}


/* style du footer */
.footer {
    background-color: rgb(86, 151, 147);
    padding: 3vw;
    margin-top: 20px;
}

.footer-text {
    color: white;
    font-size: 20px;
    text-align: center;
}

.footer-subtext {
    color: white;
    font-size: 16px;
    text-align: center;
}

.footer-text-item {
    font-family: "Marcellus", serif;
}