/* — Variables racine — */
:root {
  --primary-color: rgb(34, 34, 194);
  --secondary-color: #0f056b; /* Bleu nuit */
  --text-color: #ffffff;
  --section-color: black;
  --tertiary-color: #00cccb; /* Bleu des mers du sud */
  --title-hero-color: #05acff;
  --font-title: "Roboto", sans-serif;
  --font-text: "Montserrat", sans-serif;
}

/* — Réinitialisation & global — */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: var(--font-text);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #9dbcd0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
}

/* —Section Navbar — */

.navbar {
  position: sticky;
  top: 0;
  background-color: var(--secondary-color);
  z-index: 1000;
}
.nav-container {
  max-width: 90%;
  height: 80px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  border-radius: 50%;
  height: 50px;
  display: flex;
  align-items: center;
  background-color: #0f6fcf;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem;
  transition:
    0.5s,
    transform 0.4s;
  font-size: 1.3rem;
}
.nav-links a:hover {
  background-color: var(--tertiary-color);
  color: rgb(161, 27, 27);
  border-radius: 4px;
  transform: translateY(-2px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 40px;
  height: 5px;
  background: var(--text-color);
  transition: 0.3s;
}

/* — Responsive — navbar */

@media (max-width: 969px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: var(--secondary-color);
    flex-direction: column;
    width: 200px;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .logo {
    border-radius: 50%;
    height: 50px;
    display: flex;
    align-items: center;
    background-color: #0f6fcf;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .logo {
    height: 45px;
  }
  .nav-toggle span {
    width: 40px;
    height: 5px;
  }
}

/* — SECTION HERO — */
.hero {
  position: relative;
  height: 100vh;
  background: url("./IMAGE\ ELECTRICIEN\ .jpg") center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}
.hero-content {
  position: relative;
  text-align: center;
}
.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  color: #05acff;
  letter-spacing: 3px;
  font-weight: 900;
}

.subtitle h2 {
  font-size: 1.8rem;
  color: #4cc3ff;
  letter-spacing: 1px;
}

.subtitle {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.subtitle img {
  font-weight: bold;
  height: 3rem;
  background-color: #4cc3ff;
  border-radius: 50%;
  padding: 5px;
}

.btn {
  width: 45vh;
  height: auto;
  font-size: 1.6rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background-color: rgb(34, 34, 194);
  color: var(--text-color);
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3rem;
  transition:
    0.6s,
    transform 0.4s;
  margin-top: 6%;
}

.btn:hover {
  background-color: var(--tertiary-color);
  color: rgb(161, 27, 27);
  transform: translateY(-2px);
}

/* RESPONSIVE SECTION HERO TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
    letter-spacing: 1px;
  }
  .subtitle h2 {
    font-size: 1.5rem;
  }
  .subtitle img {
    height: 1.7rem;
  }
  .btn {
    font-size: 1.2rem;
    width: 35vh;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  .subtitle h2 {
    font-size: 1rem;
    letter-spacing: 0;
  }
  .subtitle img {
    height: 1.3rem;
  }
  .btn {
    font-size: 1rem;
    width: 35vh;
    font-size: 1rem;
    padding: 0.9rem 0.8rem;
    letter-spacing: 0px;
  }
}

/* SECTION PRESTATIONS */

#prestations h2 {
  width: 35vh;
  text-align: center;
  padding: 0.6rem;
  margin: 0 auto;
  margin-top: 20%;
  font-size: 2rem;
  color: rgb(34, 34, 194);
  box-shadow: 2px 2px 3px 1px rgb(34, 34, 194, 0.3);
  border-radius: 20px;
  font-weight: 700;
}

.container-prestations {
  width: 60%;
  height: auto;
  margin: 0 auto;
  padding: 4rem;
  margin-top: 5%;
  color: var(--section-color);
  font-size: 1.2rem;
  box-shadow: 2px 2px 3px 2px rgb(34, 34, 194, 0.2);
  border-radius: 10px;
}

.container-prestations h3 {
  font-size: 1.5rem;
  padding: 2rem 0rem;
  color: rgb(34, 34, 194);
}

.prestations-p {
  font-weight: 600;
}

.standart {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.standart img {
  height: 3rem;
}

/* RESPONSIVE SECTION PRESTATIONS TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #prestations h2 {
    width: 30vh;
    font-size: 1.5rem;
  }
  .container-prestations {
    width: 80%;
    height: auto;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .container-prestations h3 {
    font-size: 1.2rem;
    align-self: flex-start;
  }
  .container-prestations p {
    width: 100%;
    font-size: 1rem;
  }

  .standart img {
    display: flex;
    flex-direction: column;
    height: 2.4rem;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  #prestations h2 {
    width: 30vh;
    font-size: 1.5rem;
  }

  .container-prestations {
    width: 90%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem;
  }
  .container-prestations h3 {
    font-size: 1.2rem;
    align-self: flex-start;
  }
  .container-prestations p {
    width: 100%;
    font-size: 1rem;
    text-align: left;
  }

  .prestations-p {
    font-size: 1.1rem;
  }

  .container-prestations ul {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
  }

  .container-prestations li {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
  }

  .standart {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0rem;
  }

  .standart img {
    height: 2.4rem;
    flex-shrink: 0;
  }
}

/* SECTION REALISATIONS (galerie-photos) — */

#realisations {
  width: 80%;
  height: auto;
  background-color: #113d5b;
  padding: 5rem;
  margin: 0 auto;
  border-radius: 1.5rem;
}

#realisations h2 {
  width: 35%;
  text-align: center;
  margin: 0 auto;
  font-size: 2rem;
  padding: 0.8rem 0.8rem;
  box-shadow: 3px 3px 3px 2px rgb(165, 164, 164, 0.5);
  border-radius: 20px;
  color: #00cccb;
}

.elements {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  margin: 2rem auto;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
}

.elements img {
  width: 20rem;
  height: 25rem;
}

.elements img:hover {
  transition: 0.5s ease-in-out;
  transform: scale(1.5);
  cursor: pointer;
}

.elements p {
  padding-top: 1.6rem 0rem;
}

.galerie-photos {
  font-size: 1.2rem;
  color: #00cccb;
}

/* RESPONSIVE SECTION REALISATIONS TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #realisations {
    width: 80%;
  }
  #realisations h2 {
    width: 30vh;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  elements img:hover {
    transition: 0.5s ease-in-out;
    transform: scale(1.1);
    cursor: pointer;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  #realisations {
    width: 90%;
  }
  #realisations h2 {
    width: 70%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1rem;
  }
  .elements img {
    width: 14rem;
    height: 20rem;
  }
  .galerie-photos {
    font-size: 1rem;
    color: #00cccb;
  }
  elements img:hover {
    transition: 0s;
    transform: scale(0);
  }
}

/* — SECTION TEMOIGNAGES — */

.temoins {
  width: 80%;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  padding-bottom: 2rem;
  background-color: #054c60;
}

.title {
  width: 50%;
  height: auto;
  padding-top: 7rem;
  margin: 0 auto;
}

.title h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #09ffc6;
  padding: 1.3rem;
  box-shadow: 2px 2px 3px 1px rgb(165, 164, 164, 0.5);
  border-radius: 20px;
}

.title a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  padding: 4rem;
  color: #09ffc6;
  font-size: 1.5rem;
  text-align: center;
}

.container-temoignages {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 0 6rem;
  gap: 3rem;
}

.profils {
  width: 25rem;
  height: 28rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  margin: 1rem auto;
  background-color: #070143;
  border-radius: 15px;
  padding: 0 3rem;
}

.profils img {
  height: 2.6rem;
}

.profils h4 {
  font-size: 1.1rem;
  color: #00cccb;
}

.profils p {
  font-size: 1rem;
  padding: 1rem;
}

/* RESPONSIVE TEMOIGNAGES TABLETTE ET MOBILE */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .temoignages {
    width: 80%;
  }

  .profils {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 3rem 0;
  }
  .title h2 {
    font-size: 1.2rem;
  }
  .title a {
    font-size: 1rem;
  }
  .container-temoignages {
    flex-wrap: wrap;
  }
  .profils p {
    font-size: 0.9rem;
    padding-top: 2rem;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .temoignages {
    width: 100%;
  }
  .temoins {
    width: 90%;
    height: auto;
    margin: 0 auto;
    border-radius: 15px;
    padding-bottom: 2rem;
    background-color: #054c60;
  }

  .title {
    width: 70%;
  }

  .title h2 {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
  .title a {
    font-size: 0.9rem;
  }
  .container-temoignages {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
  }
  .profils {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 1rem 0;
  }

  .profils p {
    width: 100%;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
  }
  .profils img {
    height: 2.1rem;
  }
  .profils h4 {
    font-size: 1rem;
  }
}

/* — Sections qui suis je ? — */

#qui-suis-je h2 {
  width: 35vh;
  text-align: center;
  padding: 0.6rem;
  margin: 0 auto;
  margin-top: 10%;
  font-size: 2rem;
  color: rgb(34, 34, 194);
  box-shadow: 2px 2px 3px 1px rgb(34, 34, 194, 0.3);
  border-radius: 20px;
  font-weight: 700;
}

.container-bio {
  width: 50%;
  height: auto;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 10px;
  box-shadow: 2px 2px 3px 2px rgb(34, 34, 194, 0.2);
  color: var(--section-color);
  margin-top: 5%;
  font-size: 1.2rem;
  font-weight: 500;
}

.container-bio h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(34, 34, 194);
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.cercle {
  width: 18vh;
  height: 18vh;
  border-radius: 50%;
  background: orange;
  background: url(./Image\ de\ christophe.jpeg);
  background-size: cover;
  margin: 1rem;
  float: left;
  shape-outside: circle();
}

.container-bio img {
  height: 2.6rem;
}

.separator-card {
  width: 200px;
  height: 3px;
  background-color: #ab2424;
  margin: 80px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

/* RESPONSIVE SECTION QUI SUIS JE ? TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #qui-suis-je h2 {
    width: 25vh;
    font-size: 1.7rem;
  }
  .container-bio {
    width: 80%;
    height: auto;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .container-bio h3 {
    flex-direction: column;
    font-size: 1.2rem;
  }
  .container-bio img {
    padding: 0px;
    height: 2.3rem;
  }
  .cercle {
    width: 15vh;
    height: 15vh;
    float: none;
  }
  .container-bio p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  #qui-suis-je h2 {
    width: 20vh;
    font-size: 1.4rem;
  }
  .container-bio {
    width: 90%;
    height: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .container-bio h3 {
    flex-direction: column;
    font-size: 1.2rem;
    text-align: center;
  }
  .container-bio img {
    height: 2rem;
  }
  .cercle {
    width: 15vh;
    height: 15vh;
    float: none;
  }
  .container-bio p {
    width: 100%;
    font-size: 1rem;
  }
}

/* SECTION SKILLS */

.skills {
  width: 60%;
  height: auto;
  margin: 0 auto;
  padding: 4rem;
  margin-top: 5%;
  color: var(--section-color);
  font-size: 1.2rem;
  box-shadow: 2px 2px 3px 2px rgb(34, 34, 194, 0.2);
  border-radius: 10px;
}

.skills h3 {
  font-size: 1.5rem;
  color: rgb(34, 34, 194);
  padding: 3rem 2rem;
}

.skills p {
  padding: 1.1rem 0rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-h3 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.icone-skills {
  height: 3rem;
}

.img-norme-electrique,
img {
  height: 16rem;
  text-align: center;
  border-radius: 10px;
  margin: 30px;
}

.finger img {
  height: 4rem;
}

/* RESPONSIVE SECTION SKILLS TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .skills {
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .skills h3 {
    font-size: 1.2rem;
  }

  .skills p {
    font-size: 1rem;
  }
  .icone-skills {
    height: 2.7rem;
  }

  .finger img {
    height: 3rem;
  }
  .img-norme-electrique,
  img {
    height: 13rem;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .skills {
    width: 90%;
    height: auto;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .skills h3 {
    font-size: 1.2rem;
    align-self: flex-start;
  }
  .skills p {
    font-size: 1rem;
  }
  .icone-skills {
    height: 2.7rem;
  }

  .finger img {
    height: 3rem;
  }
  .img-norme-electrique,
  img {
    height: 10rem;
  }
}

/* — Formulaire de contact — */

.contact-form {
  display: grid;
  gap: 2rem;
}

#contact h2 {
  width: 30vh;
  height: auto;
  font-size: 2.2rem;
  text-align: center;
  color: rgb(34, 34, 194);
  font-weight: 700;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  box-shadow: 3px 3px 3px 3px rgb(47, 61, 132, 0.4);
  margin: 6rem auto 6rem auto;
  border-radius: 20px;
}

.form-group {
  width: 50%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: rgb(34, 34, 194);
}

.form-group textarea::placeholder {
  color: rgb(148, 142, 142);
  font-weight: 900;
}

.form-group input,
.form-group textarea {
  padding: 1.5rem;
  border: none;
  border-radius: 0.6rem;
  outline: none;
  background-color: rgb(233, 233, 248, 0.7);
  resize: none;
}

.form-group textarea {
  width: 100%;
  padding: 2rem 2rem;
}

.contact-form .btn {
  width: 45vh;
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

/* RESPONSIVE CONTACT TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #contact h2 {
    width: 20vh;
    font-size: 1.9rem;
  }
  .form-group label {
    font-size: 1.1rem;
  }
  .contact-form .btn {
    width: 35vh;
    font-size: 1.5rem;
    letter-spacing: 0;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  #contact h2 {
    width: 18vh;
    font-size: 1.7rem;
  }
  .form-group label {
    font-size: 0.9rem;
  }
  .contact-form .btn {
    width: 40vh;
    font-size: 1.2rem;
    letter-spacing: 0;
  }
  .form-group {
    width: 70%;
  }
}

/* — FOOTER — */

#footer {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  background-color: rgb(34, 34, 190);
  margin-top: 10rem;
  padding: 1.4rem;
}

#footer a {
  color: var(--text-color);
  text-decoration: none;
}

#footer h3 {
  width: 100%;
  padding: 0.6rem;
  font-size: 1.8rem;
  text-align: center;
}

.container-contact {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.liens-contact img {
  height: 1.7rem;
  margin: 0.5rem 0.6rem;
}

.block1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.block2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#footer .block1 a:hover {
  color: rgb(248, 2, 51);
}

#footer .block2 a:hover {
  color: rgb(248, 2, 51);
}

#footer .legal a {
  color: rgb(0, 225, 255);
  padding: 1rem;
  font-size: 1.2rem;
}

#footer .legal a:hover {
  color: rgb(248, 2, 51);
}

.copyright {
  font-size: 0.8rem;
  padding: 0.5rem;
}

.google-maps {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.5rem;
  color: rgb(0, 225, 255);
}

iframe {
  width: 50%;
  height: 70%;
  border-radius: 10px;
}

/* RESPONSIVE FOOTER TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #footer h3 {
    padding: 0.6rem 0;
    font-size: 1.4rem;
    text-align: center;
  }
  #footer a {
    font-size: 1rem;
  }
  .liens-contact img {
    height: 1.4rem;
    margin: 0.5rem 0.6rem;
  }
  #footer .legal a {
    font-size: 1rem;
  }
  .copyright {
    font-size: 0.8rem;
  }
  .google-maps {
    font-size: 1.2rem;
  }
  iframe {
    width: 100%;
    height: 70%;
    border-radius: 10px;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  #footer {
    width: 100%;
  }

  #footer h3 {
    padding: 0.4rem 0;
    font-size: 1rem;
  }
  #footer a {
    font-size: 0.6rem;
  }
  .liens-contact img {
    height: 0.8rem;
    margin: 0.4rem 0.4rem;
  }

  #footer .legal a {
    font-size: 0.8rem;
  }
  .copyright {
    font-size: 0.5rem;
    text-align: center;
  }
  .google-maps {
    font-size: 0.9rem;
  }

  iframe {
    width: 70%;
    height: 70%;
    border-radius: 10px;
  }
}

/* PAGE mentions_légales.html/css */

.mentions-legales {
  width: 60%;
  height: auto;
  margin: 0 auto;
  margin: 6rem auto 6rem auto;
  color: #0f056b;
}

.mentions-legales h1 {
  text-align: center;
  color: rgb(187, 40, 69);
  box-shadow: 2px 2px 3px 1px rgb(15, 5, 107, 0.5);
  padding: 1.5rem 0.2rem;
  border-radius: 20px;
}

.mentions-legales h4 {
  font-size: 1.2rem;
  padding: 1rem 0px;
}

.mentions-legales p {
  font-size: 0.9rem;
}

/* RESPONSIVE PAGE mentions_légales.html/css TABLETTE ET MOBILE */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .mentions-legales h1 {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .mentions-legales h1 {
    font-size: 1.1rem;
  }
}

/* — Animations d’apparition — */

.section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}
.section:nth-of-type(1) {
  animation-delay: 0.2s;
}
.section:nth-of-type(2) {
  animation-delay: 0.4s;
}
.section:nth-of-type(3) {
  animation-delay: 0.6s;
}
.section:nth-of-type(4) {
  animation-delay: 0.8s;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
