* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}

html,
body {
  margin: 0;
  padding: 0;
}


body {
  font-family: arial;
  overflow-x: hidden;
}

.section-separator {
  border: 2px solid black;
  width: 60px;
  margin-bottom: 30px;
}

/*Typography */
h1 {
  font-size: 48px;
  margin-top: 20px;
  margin-bottom: 20px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  line-height: 1.3;
  font-family: Arial;
}

/* LAYOUT */
.layout {
  display: flex;
  min-width: 0;
  min-height: 100vh;
}

.sidebar {
  background: rgba(28, 28, 28, 0.9);
  padding: 30px 20px;
  min-height: 84vh;
  flex: 0 0 230px;
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar p {
  color: white;
  margin-top: auto;
  font-size: 17px;
  line-height: 1.4;
}

.logo {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  transition: 0.3s;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 9px;
}

.burger span:nth-child(3) {
  top: 18px;
}

/* ÉTAT OUVERT (X) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}


.menu {
  margin-left: 6px;
  margin-bottom: 30px;
}

.menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 0;
  font-size: 17px;
}

.menu a:hover {
  color: #4c5fd5;
}

.medias {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.medias a {
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

.medias a:hover {
  color: #4c5fd5;
}

.content {
  min-height: 100vh;
  flex: 1;
  max-width: 1080px;
  margin: 20px auto;
  padding: 10px 30px;
  background: white;
}

[data-barba="container"] {
  opacity: 1;
  will-change: opacity, transform;
}

/* HOME */
.page-home {
  background-image: url("images/camera.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  overflow: hidden;
}

.page-home .layout {
  height: 100vh;
}

.page-home .content {
  background: transparent;
  color: white;
  text-align: right;
  padding-top: 200px;
}

.page-home .intro {
  background: rgba(28, 28, 28, 0.8);
  padding: 10px 0 18px;
  width: 68%;
  margin: 0 auto;
}

.page-home h1 {
  font-size: 64px;
  text-align: center;
  margin: 0 0 20px 0;
}

.page-home .intro p {
  text-align: center;
  margin: 0;
}

/* =====================
   PORTFOLIO
===================== */

.page-portfolio {
  background-image: url("images/lake-louise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Grille */
.grid-container {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: dense;
  margin-top: 80px;
  margin-bottom: 30px;
}

/* conteneur */
.item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.4s ease;
  min-height: 220px;
}

/* image */
.item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* hover */
.item:hover {
  transform: scale(1.06);
  z-index: 1;
}

div.item1 {
  grid-column: span 2;
  grid-row: span 1;
}

div.item2 {
  grid-column: span 2;
  grid-row: span 1;
}

div.item3 {
  grid-column: span 2;
  grid-row: span 1;
}

div.item4 {
  grid-column: span 1;
  grid-row: span 2;
}

.item5 {
  grid-column: span 2;
  grid-row: span 1;
}

.item6 {
  grid-column: span 2;
  grid-row: span 1;
}

div.item7 {
  grid-column: span 2;
  grid-row: span 1;
}

div.item8 {
  grid-column: span 1;
  grid-row: span 1;
}

.item9 {
  grid-column: span 1;
  grid-row: span 2;
}

div.item10 {
  grid-column: span 1;
  grid-row: span 1;
}

div.item11 {
  grid-column: span 1;
  grid-row: span 1;
}

.item12 {
  grid-column: span 1;
  grid-row: span 1;
}

div.item13 {
  grid-column: span 2;
  grid-row: span 1;
}

.item14 {
  grid-column: span 1;
  grid-row: span 1;
}

.item15 {
  grid-column: span 2;
  grid-row: span 1;
}



/* SECTION SERVICES*/
.page-services {
  background-image: url("images/lake-louise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* GRILLE */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e5e5e5;
}

/* CARTE */
.service-card {
  position: relative;
  background-position: left center;
  background-size: 120%;
  /* un peu plus large pour permettre le mouvement */
  transition: background-position 1s ease, color 0.4s ease;
  padding: 50px 35px;
  text-align: center;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #fff;
  overflow: hidden;
  background-repeat: no-repeat;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 0.1s ease, background-position 1s ease;

  z-index: 0;
}

.s-wrap1::after {
  background-image: url("images/alberta.jpg");
}

.s-wrap2::after {
  background-image: url("images/laptop.jpg");
}

.s-wrap3::after {
  background-image: url("images/family.jpg");
}

.s-wrap4::after {
  background-image: url("images/glasses.jpg");
}

.s-wrap5::after {
  background-image: url("images/child.jpg");
}

.s-wrap6::after {
  background-image: url("images/burger.jpg");
}

.service-card:hover::after {
  opacity: 1;
  background-position: right center;
}

.family-pic:hover::after {
  background-position: center center;
}



.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1;
}

.service-card * {
  position: relative;
  z-index: 2;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover i {
  color: #fff;
}



.family-pic:hover {
  background-position: center center;
}

.service-card:hover::before {
  opacity: 1;
}

/* enlever bord droit dernière colonne */
.service-card:nth-child(3n) {
  border-right: none;
}

/* ICÔNES */
.service-icon {
  font-size: 36px;
  color: #009688;
  margin: 0 auto;
}

/* TITRES */
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
}

/* TEXTE */
.service-card p {
  color: #777;
  line-height: 1.6;
  flex-grow: 1;
}

/* BOUTON */
.btn {
  align-self: center;
  background: #5865f2;
  color: white;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.btn:hover {
  background: #fff;
  color: #5865f2;
}



/* =====================
   SERVICE 1
===================== */

.service-hero {
  position: relative;
  margin-top: 40px;
}

.service-hero-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
}


/* PHOTO */
.service-photo {
  width: 60%;
  height: auto;

}

/* AVIS (quasi inchangé) */
.avis {
  width: 43%;
  background-color: white;
  position: absolute;
  top: 60%;
  right: 0;
  transform: translateX(-8%) translateY(-64%);
  padding: 20px 30px;
  box-shadow: 5px 10px 18px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.avis h3 {
  color: gray;
  margin-bottom: 15px;
  font-size: 16px;
}

.short-text {
  border-left: 3px solid #e7e7e7;
  padding-left: 18px;
  line-height: 1.4;
  font-size: 16px;
}

/* OPTIONS */
.page-services .row {
  display: flex;
  gap: 30px;
  margin: 35px auto;
}

.col30 {
  width: 31.5%;
  border: 1px solid lightgray;
  padding-bottom: 40px;
}

.col30 h2 {
  background: black;
  color: white;
  padding: 20px;
  font-size: 16.5px;
  margin: 0;
  text-align: center;
}

.col30 h4,
.col30 p {
  margin: 15px;
  text-align: center;
}

.col30 p {
  color: rgb(109, 108, 108);
  font-size: 16.5px;
}

/* TITRE OPTIONS */
.h2-options {
  text-align: center;
  margin-top: 40px;
  color: white;
  background-color: black;
  padding: 25px;
}


/* ===============
   Section a-propos 
   =============== */

.page-about {
  background-image: url("images/lake-louise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 80px;
}

.about-image {
  flex: 0 0 37%;
  aspect-ratio: 1 / 1;
  /* 🔥 carré */
  overflow: hidden;
  border-radius: 8px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* remplissage sans déformation */
  display: block;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 25px;
  margin-bottom: 25px;
}

.about-text p {
  margin-bottom: 17.3px;
  color: #444;
}

/* =====================
   AVIS / TÉMOIGNAGES
===================== */

.page-avis {
  background-image: url("images/lake-louise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.reviews-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 35px 30px;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.review-text {
  font-style: italic;
  color: black;
  margin-bottom: 20px;
}

.review-stars {
  color: #f5a623;
  margin-bottom: 15px;
}

.review-stars i {
  margin: 0 2px;
}

.review-card h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.review-card span {
  font-size: 14px;
  color: #888;
}

/* =====================
   CONTACT
===================== */

.page-contact {
  background-image: url("images/lake-louise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



/* GRILLE PRINCIPALE */
.contact-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  margin-top: 0;
  margin-bottom: 15px;
}

/* TITRES AVEC LIGNE */
.contact-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}

.contact-title h2 {
  font-size: 20px;
  white-space: nowrap;
}

.contact-title .line {
  flex: 1;
  margin-right: 60px;
  height: 1px;
  background: #e1e1e1;
}

/* FORMULAIRE */
.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 17px;
  color: #606060;
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #e1e1e1;
  margin-bottom: 18px;
  font-size: 15px;
}

.contact-form textarea {
  resize: vertical;
}

/* BOUTON */
.contact-form input[type="submit"] {
  width: fit-content;
  font-size: 14px;
  font-weight: bold;
  background: white;
  color: gray;
  border: 2px solid #e1e1e1;
  border-right-color: gray;
  border-bottom-color: gray;
  padding: 8px 18px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form input[type="submit"]:hover {
  background: #4c5fd5;
  color: white;
  border-color: #4c5fd5;
}

/* INFOS */
.contact-info p {
  font-size: 17px;
  color: #606060;
  margin-bottom: 12px;
}


/* =====================
   FOOTER
===================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 120px;
  padding: 40px 0 120px;
  background: black;
  text-align: center;
  color: white;
  width: 100%;
  bottom: 0;
  overflow-x: hidden;
}

.footer-medias {
  display: none;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.footer-medias a {
  color: white;
  font-size: 20px;
  transition: 0.3s;
}

.footer-medias a:hover {
  color: #4c5fd5;
}

.footer-copy {
  margin-top: 15px;
  display: none;
}


/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1366px) {
  .sidebar {
    background: rgba(28, 28, 28, 0.9);
    padding: 30px 20px;
    height: 530px;
    flex: 0 0 230px;
    position: sticky;
    top: 0;
  }

  .logo {
    margin-top: -20px;
  }

  .menu {
    margin-left: 6px;
    margin-bottom: 20px;
    margin-top: -10px;
  }

  .menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 9px 0;
    font-size: 18px;
  }

  .medias {
    display: flex;
    gap: 15px;
    margin-top: 15px;
  }

  .sidebar p {
    color: white;
    margin-top: 20px;
    font-size: 17px;
  }

  .content {
    min-height: 100vh;
    flex: 1;
    max-width: 1080px;
    margin: 20px 40px;
    padding: 10px 30px;
    background: white;
  }

  .service-hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .service-photo {
    width: 55%;
  }

  .avis {
    position: relative;
    width: 45%;
    transform: none;
    top: auto;
    right: auto;
  }
}

@media (max-width: 1024px) {

  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    flex-direction: row;
  }

  .logo {
    width: 135px;
    height: auto;
    margin-top: 8px;
  }

  .menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
  }

  .menu a {
    padding: 0;
    /* 🔥 enlève le padding vertical */
    font-size: 15px;
    line-height: 1;
  }

  .sidebar p {
    display: none;
    /* copyright déplacé au footer */
  }

  .medias {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
  }

  .medias a {
    font-size: 17px;
    line-height: 1;
  }

  .content {
    margin-top: 80px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .item {
    aspect-ratio: 1 / 1;
  }

  .item[class*="item"] {
    grid-column: span 1;
    grid-row: span 1;
  }

  .service-hero-container {
    flex-direction: column;
    align-items: center;
  }

  .service-photo {
    width: 100%;
    max-width: 700px;
  }

  .avis {
    width: 90%;
    margin-top: 30px;
    text-align: left;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    width: 80%;
  }

  .footer-medias {
    display: flex;
  }

  .footer-copy {
    display: flex;
  }
}

@media (max-width: 989px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    z-index: 1000;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* LOGO */
  .logo {
    width: 140px;
    margin-bottom: -2px;
  }

  /* BURGER */
  .burger {
    display: block;
    margin-bottom: 8px;
  }

  /* MENU CACHÉ */
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(28, 28, 28, 0.95);
    flex-direction: column;
    text-align: center;
  }

  .menu a {
    padding: 12px;
    font-size: 17px;
  }

  /* MENU OUVERT */
  .menu.active {
    display: flex;
  }

  /* RÉSEAUX TOUJOURS VISIBLES */
  .medias {
    margin-left: auto;
    margin-right: 25px;
    display: flex;
    gap: 12px;
  }

  .medias a {
    font-size: 20px;
  }

  /* COPYRIGHT SORT DE LA NAVBAR */
  .sidebar p {
    display: none;
  }

  .content {
    margin-top: 80px;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .service-hero-container {
    display: flex;
    flex-direction: column;
  }

  .service-photo {
    width: 100%;
    height: auto;
  }

  .avis {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 30px;
  }

  .row {
    flex-direction: column;
  }

  .col30 {
    width: 100%;
  }
}


@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
  }

  .about-image {
    width: 80%;
    max-width: 360px;
    display: block;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(3n) {
    border-right: 1px solid #e5e5e5;
  }

  .service-card:nth-child(2n) {
    border-right: none;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    width: 70%;
  }

}

@media (min-width: 769px) {
  .split-image img {
    height: 420px;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .page-home h1 {
    font-size: 50px;
  }

  .page-home .intro {
    width: 100% !important; 
  }

  .logo {
    margin-left: -25px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    width: 80%;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-contact .content {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    text-align: center;
  }

  .page-home p {
    text-align: center;
  }

  hr {
    margin: 0 auto;
  }

  .page-about h1 {
    font-size: 45px;
  }

  .page-portfolio h1 {
    font-size: 45px;
  }

  body.page-service-1 #service1-h1 {
    font-size: 31px;
    line-height: 1.2;
    text-align: center;
  }

  .page-avis h1 {
    font-size: 33px;
  }

  .reviews-section {
    padding: 60px 0px;
  }

  .page-contact h1 {
    font-size: 40px;
  }

  .page-contact h2 {
    font-size: 18px;
  }

  .contact-form {
    width: 80%;
  }

  .contact-info {
    width: 80%;
  }

  .page-contact label {
    width: 70%;
  }

  .services-section {
    padding: 60px 0px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    width: 90%;
  }
}