@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root {
    --noir-principale: #011222;
    --noir-principale: #191815;
    --color-text: #d7d7d7;
    --color-text-devis: #1f387e;
    --color-text-hover: rgb(181, 173, 173);

    --color-1: #f7d5d5;
    /* body */
    /* --color-1:#191617; body */
    --color-1-bis: #201c1ec7;
    /* nav:hover */
    --color-2: #241F21;
    /* nav + footer */
    --color-3: #3a3235;
    /*  */

    --color-4: #f7d5d5;
    /* content */
    /* --color-4:#524a4d; content */
    --color-1-old: #061826;
    /* body */
    --color-1-bis-old: #25313bce;
    /* nav:hover */
    --color-2-old: #0471a6;
    /* nav + footer */
    --color-3-old: #3685b5;
    /*  */
    --color-4-old: #89aae6;
    /* content */


}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;

    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    scroll-behavior: smooth;

}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: sans-serif;
    background-color: var(--color-1);
    height: -webkit-fill-available;
    /* Peut être utilisé pour Safari sur iOS */
    min-height: 90vh;
    /* Pour les autres navigateurs */
}


a {
    color: black;
    text-decoration: none;
}

.content {
    background-color: var(--color-4);
    color: black;
    font-size: x-large;
    width: 75%;
    padding: 100px 5% 4% 5%;
    display: grid;
    min-height: 90vh;
    max-height: 100%;
}

@media screen and (max-width: 1150px) {
    .content {
        min-height: 90vh;
        max-height: 100%;
    }
}


.sous-content {
    width: 50%;
}

.sous-content-right {
    justify-self: end;
}

.sous-content-left {
    justify-self: start;

}





/* ------- nav-bar.php ------- */
.nav {
    font-size: xx-large;
    padding: 15px;
    background-color: var(--color-2);
    color: var(--color-text);
    display: flex;
    justify-content: space-around;
    position: fixed;
    z-index: 9;
    left: auto;
    width: 100%;
    align-items: center;
}

.nav span {
    flex-grow: 1;
}

.nav .nav-links {
    display: flex;
    align-items: center;
    margin-right: 2.5%;
}



.nav-bouton {
    color: var(--color-text);
    margin: 2.5px;
    border: solid var(--color-text);
    border-width: 0px 0px 2px 0px;
}

.nav-bouton:hover {
    transition: all 300ms;
    border-width: 0px 0px 4px 0px;
    color: var(--color-text-hover);
}

.nav-toggle-open,
.nav-toggle-close {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    width: 20%;
    font-size: larger;
    z-index: 100;
}

@media screen and (max-width: 2000px) {
    .nav-toggle-close {
        display: none;
    }

    .nav-toggle-open {
        display: none;
    }
}

@media screen and (max-width: 830px) {
    .nav .nav-links {
        display: none;
        flex-direction: column;
        width: 200px;
        height: 500px;
        position: absolute;
        right: 0;
        top: 0;
        background-color: var(--color-2);
        align-items: center;
        justify-content: center;
        z-index: 10;
        border-bottom-left-radius: 100px;
        margin-right: 0;
    }

    .nav .nav-links.show {
        display: flex;
    }

    .nav-toggle-open {
        display: block;
    }

    .nav-toggle-close {
        display: none;
    }

    .nav .nav-links.show~.nav-toggle-open {
        display: none;
    }

    .nav .nav-links.show~.nav-toggle-close {
        display: block;
    }
}




/* ------- vitrine.php ------- */



.cards-set {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.cards {
    flex: 1;
    cursor: pointer;
    padding: .5%;
    height: 25%;
    background-repeat: no-repeat, no-repeat;
    background-size: cover;
    align-content: space-around;
    color: var(--color-text);
}

.cards:hover {
    transition: all 1s;
    flex: 3;
    height: 40%;
}

.cards:not(hover) {
    transition: all 0.5s;
    flex: 1;
}




/* ------- footer.php ------- */
.footer {
    font-size: large;
    padding: 15px;
    background-color: var(--color-2);
    color: var(--color-text);
    display: flex;
    justify-content: space-around;
}

.a-footer {
    color: var(--color-text);
}

/* ------- index.php ------- */

.div-site-preview {
    display: flex;
    justify-content: center;
    width: 70%;
    justify-self: center;
}

.site-preview {
    transition: transform 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: -webkit-fill-available;
    z-index: 1;
}

.site-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.site-preview::before {
    transition: all 2s;
}

.site-preview::after {
    transition: all 2s;
}

.item-site-preview {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 2rem;
}


.etapes {
  margin-top: 40px;
  color: var(--color-text-devis);
  font-family: "Poppins", sans-serif;
}

.etapes h2 {
  font-size: 1.8rem;
  color: #1f387e;
  margin-bottom: 20px;
}

.etapes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.etapes li {
  opacity: 0;
  transform: translateX(40px);
  background: rgba(255, 255, 255, 0.6);
  margin: 10px 0;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.6s ease-out;
}

.etapes li.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Délai progressif pour un effet en cascade */
.etapes li:nth-child(1).visible { transition-delay: 0.2s; }
.etapes li:nth-child(2).visible { transition-delay: 0.4s; }
.etapes li:nth-child(3).visible { transition-delay: 0.6s; }
.etapes li:nth-child(4).visible { transition-delay: 0.8s; }
.etapes li:nth-child(5).visible { transition-delay: 1s; }
.etapes li:nth-child(6).visible { transition-delay: 1.2s; }



/* --- Hero Section (bannière pleine largeur) --- */
.hero-section {
    width: 100vw;
    /* occupe toute la largeur de l’écran */
    height: 60vh;
    /* hauteur ajustable */
    background-image: url('.././img/img_metting_new.png');
    background-size: cover;
    background-position: center;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    /* casse la contrainte du parent .content */
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 50px;
    overflow: hidden;
}

/* Texte au centre */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 2rem;
    text-align: center;
}

/* 
Animation
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} */





/* ------- Tarif.php ------- */

.div-tarif {
    justify-self: center;
    width: fit-content;
}

.div-tarif p {
    text-decoration: underline;
}

.div-tarif ul {
    text-align: start;
}



/* --- Histoire Page --- */

.histoire-page {
    color: black;
}

.histoire-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.histoire-page p {
    line-height: 1.6;
    font-size: 1.1rem;
}

/* devis.php */

.devis_start_title {}

.devis_start_button {
    height: 50px;
    width: fit-content;
    font-size: x-large;
    border-radius: 25px;
    border: black solid 2px;
    cursor: pointer;
    justify-self: center;
}


.devis_button{
    top: 15px;
    color: var(--color-text-devis);
    border: 4px solid transparent;
    border-radius: 100px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 16px;
    cursor: pointer;
    padding: 16px 36px;
    font-weight: 600;
    box-shadow: 0 0 0 2px #ffffff;
    gap: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.devis_button svg{
    width: 24px;
}
.btn-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 8px;
  position: static;
}

.devis_button:hover{
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}

.devis_update_button{
    margin-bottom: 15px;
}

.devis_send_button {
    position: relative;
    top: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 16px;
    background-color: white;
    font-weight: 600;
    color: var(--color-text-devis);
    box-shadow: 0 0 0 2px #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}


.devis_send_button svg {
    position: absolute;
    width: 24px;
    fill: #1f387e;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.devis_send_button .arr-1 {
    right: 16px;
}

.devis_send_button .arr-2 {
    left: -25%;
}

.devis_send_button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #c5e5e4;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.devis_send_button .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.devis_send_button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}

.devis_send_button:hover .arr-1 {
    right: -25%;
}

.devis_send_button:hover .arr-2 {
    left: 16px;
}

.devis_send_button:hover .text {
    transform: translateX(12px);
}

.devis_send_button:hover svg {
    fill: #1f387e;
}

.devis_send_button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px greenyellow;
}

.devis_send_button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/* === Tooltip style === */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  color: #1f387e;
  cursor: help;
  transition: transform 0.2s ease;
  z-index: 999;
}

.tooltip:hover {
  transform: scale(1.15);
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  background-color: #1f387e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  width: max-content;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(31, 56, 126, 0.3);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 99;
}

/* Petites flèches */
.tooltip::before {
  content: "";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: #1f387e;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 98;
}

/* Hover effect */
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}










/* Icônes */
.icon {
    font-size: 1.8rem;
}

/* Animation apparition */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.input-wrapper {
  position: relative;
  display: inline-block;
  width: 280px;
}

/* Style de base */
.input-text {
  width: 100%;
  padding: 14px 16px;
  border: 4px solid white;
  border-radius: 100px;
  color: black;
  font-size: 15px;
  background-color: white;
  outline: none;
  transition: all 0.3s ease;
}

/* Label flottant (optionnel mais joli) */
.input-wrapper label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-devis);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-text:focus + .underline-input + label,
.input-text:not(:placeholder-shown) + .underline-input + label {
  top: 4px;
  font-size: 15px;
  color: var(--color-text-devis);
}

/* Barre bleue animée */
.underline-input {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 85%;
  height: 3px;
  background-color: var(--color-text-devis);
  border-radius: 4px;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.input-text:focus + .underline-input {
  transform: translateX(-50%) scaleX(1);
}


/* ------- @media ------- */

@media screen and (max-width: 1400px) {
    .nav {
        font-size: x-large;
    }
}

@media screen and (max-width: 1300px) {
    .div-site-preview {
        width: 75%;
    }
}

@media screen and (max-width: 1200px) {
    .nav {
        font-size: large;
    }
}

@media screen and (max-width: 730px) {
    .nav-bouton {
        margin: 7.5px;
    }

    .content {
        font-size: large;
    }

    .div-site-preview {
        width: 100%;
    }

}

@media screen and (max-width: 560px) {
    .cards-set {
        flex-direction: column;
        font-size: x-large;
    }

    .cards {
        transition: all 0.7s;
        transform: scale(0.9);
    }
}

@media screen and (max-width: 520px) {
    .content {
        width: auto;
    }

    .nav {
        width: auto;
        position: relative;
    }
}