/* Start of Global Rules */
/* before
  --primaryColor: #10cab7;
  --secondaryColor: #2c4755;
  --bgColor: #fafafa;

*/
:root {
  --primaryColor: #caad92;
  --secondaryColor: #8a725b;
  --terciaryColor: #213340;
  --bgColor: #fafafa;
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
  -moz-scroll-behavior: smooth;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", sans-serif;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Small Screens */
@media (min-width: 576px) {
  .container {
    width: 540px;
  }
}

/* Medium Screens */
@media (min-width: 768px) {
  .container {
    width: 720px;
  }
}

/* Large Screens */
@media (min-width: 992px) {
  .container {
    width: 960px;
  }
}

/* X-Large Screens */
@media (min-width: 1200px) {
  .container {
    width: 1140px;
  }
}

/* XX-Large Screens */
@media (min-width: 1400px) {
  .container {
    width: 1320px;
  }
}

/* End Global Rules */

/* Components Start */
.section-heading {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.with-bg {
  background-color: #fafafa;
}

.section-heading h2 {
  margin: 0;
  position: relative;
  font-weight: 800;
  font-size: 5.5rem;
  letter-spacing: -2px;
  color: var(--secondaryColor);
}

.section-heading h2 + p {
  display: block;
  font-weight: normal;
  font-size: small;
  color: #444;
  margin-top: -30px;
  position: relative;
}

@media (max-width: 575px) {
  .section-heading h2 {
    font-size: 3.5rem;
  }

  .section-heading h2 + p {
    margin-top: -20px;
  }
}
/* Components End */

/* Header Start */
header {
  z-index: 100;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  transition: box-shadow 0.3s ease;
}

header:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

header .logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

header .logo:hover {
  transform: scale(1.05);
}

header .container {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.villes-header {
  color: var(--secondaryColor);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
  flex: 1;
  letter-spacing: 0.5px;
}

/* Tablette */
@media (max-width: 991px) {
  .villes-header {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    padding: 12px 15px;
    gap: 10px;
  }
  
  header .logo {
    width: 60px;
    height: 60px;
  }
  
  .villes-header {
    order: 2;
    width: 100%;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid rgba(138, 114, 91, 0.2);
    padding-top: 10px;
  }
  
  .links {
    order: 3;
  }
}

@media (max-width: 480px) {
  .villes-header {
    font-size: 0.75rem;
  }
}

/* Links - menu déroulant */
.links {
  position: relative;
}

/* Pont invisible pour combler l'espace entre l'icône et le menu */
.links::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -50%;
  width: 500%;
  height: 80px;
  background: transparent;
  display: none;
}

/*.links:hover::after {
  display: block;
}*/

.links .icon {
  width: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  cursor: pointer;
  padding: 5px;
}

.links .icon span {
  background-color: var(--secondaryColor);
  height: 2px;
  margin-bottom: 7px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.links .icon span:first-child {
  width: 100%;
}

.links .icon span:nth-child(2) {
  width: 65%;
  transition: width 0.3s;
}

.links .icon span:last-child {
  width: 100%;
  margin-bottom: 0;
}

.links:hover .icon span:nth-child(2) {
  width: 100%;
}

.links:hover .icon span {
  background-color: var(--primaryColor);
}

.links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 20px);
  background-color: white;
  z-index: 100;
  display: none;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.links ul::before {
  content: "";
  position: absolute;
  border: 10px solid transparent;
  border-bottom-color: white;
  right: 5px;
  transform: translateY(-100%);
}

.links ul li a {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--secondaryColor);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.links ul li a:hover {
  padding-left: 2rem;
  background-color: var(--bgColor);
  color: var(--primaryColor);
}

.links ul li:not(:last-child) a {
  border-bottom: 1px solid #eee;
}

/*
.links:hover ul {
  display: block;
  animation: slideDown 0.3s ease;
}
  */

.links ul { display: none; }
.links.open ul { display: block; animation: slideDown 0.3s ease;}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Links end */
/* Header End */

/* Landing Page Start */
.landing {
  background-image: url("../images/merMontagne.jpg");
  background-size: cover;
  background-position: center;
  height: calc(50vh - 10px);
  position: relative;
  max-width: 1200px;
  margin: 1em auto;
  border-radius: 15px;
  overflow: hidden;
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primaryColor);
  opacity: 0.25;
  mix-blend-mode: multiply;
}

.landing .intro-text {
  position: absolute;
  left: 50%;
  top: 90px;
  text-align: center;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 100%;
  padding: 10px;
  z-index: 2;
  font-size: 1.2rem;
}

.landing .intro-text h1 {
  margin: 0;
  color: var(--terciaryColor, black);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 10px;
}

.landing .intro-text p {
  font-size: 0.85rem;
  line-height: 1.8;
}

@media (max-width: 1250px) {
  .landing {
    max-width: 95%;
  }
}
/* Landing Page End */

/* Features Start */
.features {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
}

.feature {
  text-align: center;
  padding: 3rem 3.5rem;
}

/* Place le 4ème élément (domicile) centré en dessous sur desktop */
.feature:nth-child(4) {
  grid-column: 2 / 3;
}

.feature i {
  color: var(--primaryColor);
  font-size: 3rem;
  margin-bottom: 2rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #444;
}

.feature:nth-child(2) {
  box-shadow: 1px 5px 3px rgba(0, 0, 0, 0.05);
}

/* Tablette : 2 colonnes => 2 lignes de 2 */
@media (max-width: 992px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature:nth-child(4) {
    grid-column: auto;
  }
}

/* Mobile : 1 colonne => 4 lignes de 1 */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
  
  .feature:nth-child(4) {
    grid-column: auto;
  }
}
/* Features End */

/* Services Start */
.services {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.services .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services .col .image {
  position: relative;
  width: 80%;
}

.services .col img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.services .col .image::before {
  content: "";
  position: absolute;
  width: 100px;
  height: calc(100% + 100px);
  top: -50px;
  right: 0%;
  transform: translateX(50%);
  z-index: -1;
  background-color: var(--secondaryColor);
}

@media (max-width: 1199px) {
  .services .col:last-child {
    display: none;
  }
}

.services .service {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

@media (max-width: 575px) {
  .service {
    padding: 0 1rem;
  }
}

.service:first-child {
  margin-bottom: 2rem;
}

.service i {
  font-size: 2rem;
  color: var(--primaryColor);
  -webkit-text-stroke: 2px var(--secondaryColor);
  -moz-text-stroke: 2px var(--secondaryColor);
}

.col:nth-child(2) .service:first-child i {
  -webkit-text-stroke: 1.5px var(--secondaryColor);
  -moz-text-stroke: 1.5px var(--secondaryColor);
}

.service .info h3 {
  margin-top: -2px;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.service .info p {
  font-size: 0.85rem;
  line-height: 1.8;
}
/* Services End */

/* Portfolio Start */
.portfolio {
  background-color: var(--bgColor);
}
.portfolio .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.project-card {
  background-color: white;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-card .info {
  padding: 1rem;
}

.project-card .info h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.project-card .info p {
  font-size: 0.75rem;
  line-height: 1.6;
}
/* Portfolio End */

/* About Start */
.about {
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.about .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.about .image {
  width: 200px;
  height: 200px;
  position: relative;
}

.about .image img {
  width: 100%;
  object-fit: cover;
}

.about .image::before {
  content: "";
  position: absolute;
  width: 70px;
  height: calc(100% + 80px);
  top: -40px;
  left: -10px;
  z-index: -1;
  background-color: var(--bgColor);
}

.about .image::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 150px;
  border-left: 50px solid var(--primaryColor);
  border-bottom: 40px solid var(--primaryColor);
  top: -20px;
  right: -75px;
  z-index: -1;
}

.about .info {
  flex-basis: calc(100% - 450px);
}

.about .info h3 {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.about .info hr {
  width: 50%;
  margin-bottom: 1rem;
  border: none;
  height: 1px;
  background-color: var(--primaryColor);
}

.about .info p {
  font-size: 0.75rem;
  line-height: 1.8;
}

@media (max-width: 991px) {
  .about .image {
    display: none;
  }
  .about .info {
    flex-basis: 100%;
  }
}
/* About End */

/* Contact Start */
.contact {
  background-color: var(--bgColor);
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.contact .label {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondaryColor);
  margin-bottom: 2rem;
}

.contact .mail {
  font-size: 2rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--primaryColor);
  margin-left: 2rem;
  display: block;
  margin-bottom: 2rem;
}

.social {
  margin-left: 4rem;
  display: flex;
  align-items: flex-start;
}

.social p {
  font-size: 0.8rem;
  margin-right: 1rem;
}

.social i {
  margin-left: 20px;
  color: var(--secondaryColor);
}

@media (max-width: 575px) {
  .contact .label,
  .contact .mail {
    font-size: 1.5rem;
    margin-left: 0;
  }

  .contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social {
    margin: 0 auto;
  }
}

@media (max-width: 375px) {
  .contact .label,
  .contact .mail {
    font-size: 1.2rem;
  }
}
/* Contact End */

/* Footer Start */
footer {
  background-color: var(--secondaryColor);
  color: white;
  font-weight: 800;
  padding: 1.5rem;
  text-align: center;
}

footer span {
  color: var(--primaryColor);
}
/* Footer End */


.call {
  position: absolute;
  top: 150%;
  transform: translate(-50%, -50%);
  border-style: none;
  border-radius: 10px 100px / 120px;
  color: white;
  cursor: pointer;
  background-color: var(--primaryColor, black);
  width: 400px;
  max-width: 75%;
  padding: 10px;
  text-decoration: none;
}

/* Presentation Start */
.presentation {
  padding-top: 3rem;
  padding-bottom:  3rem;
  background-color: white;
}

.presentation .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.presentation p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.presentation p:last-child {
  margin-bottom: 0;
}

.presentation p::first-letter {
  font-size: 1.5rem;
  font-weight:  800;
  color: var(--primaryColor);
  float: left;
  line-height: 1;
  margin-right: 5px;
  margin-top: 0px;
}

@media (max-width: 575px) {
  .presentation .container {
    padding: 1rem;
  }
  
  .presentation p {
    font-size: 0.8rem;
    text-align: left;
  }
}
/* Presentation End */

.hover-highlight {
  transition: all 0.3s ease;
}

.hover-highlight:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.villes {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #444;
}

.boxFormation{
  padding: 1em;
}

/* Modal Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter:  blur(3px);
  opacity: 0;
  transition:  opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: fixed;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon {
  color: var(--primaryColor);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-content h2 {
  color: var(--secondaryColor);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #444;
  margin-bottom:  0.5rem;
}

.modal-close {
  position: absolute;
  top:  1rem;
  right:  1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #444;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primaryColor);
}

.modal-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: var(--primaryColor);
  color: white;
  text-decoration:  none;
  border-radius:  50px;
  transition:  transform 0.3s;
}

.modal-btn:hover {
  transform: scale(1.05);
}


/* Contact Start */
.contact {
  background-color: var(--bgColor);
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.contact .container {
  max-width: 1140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info,
.tarif-info {
  padding: 2rem;
}

.contact .label {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondaryColor);
  margin-bottom: 2rem;
}

.contact .mail {
  font-size: 2rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--primaryColor);
  margin-left: 2rem;
  display: block;
  margin-bottom: 2rem;
}

.tarif-item {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondaryColor);
  margin-bottom: 1.5rem;
  margin-left: 2rem;
}

.tarif-item span {
  color: var(--primaryColor);
  font-weight: 800;
}

.tarif-note {
  font-size: 1rem;
  font-style: italic;
  color: #666;
  margin-top: 2rem;
  margin-left: 2rem;
}

.social {
  margin-left: 4rem;
  display: flex;
  align-items: flex-start;
}

.social p {
  font-size: 0.8rem;
  margin-right: 1rem;
}

.social i {
  margin-left: 20px;
  color: var(--secondaryColor);
}

/* Responsive pour tablettes */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 575px) {
  .contact .label,
  .contact .mail {
    font-size: 1.5rem;
    margin-left: 0;
  }

  .tarif-item {
    font-size: 1.2rem;
    margin-left: 0;
  }

  .tarif-note {
    font-size: 0.9rem;
    margin-left: 0;
  }

  .contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .tarif-info {
    padding: 1rem;
  }

  .social {
    margin: 0 auto;
  }
}

@media (max-width: 375px) {
  .contact .label,
  .contact .mail {
    font-size: 1.2rem;
  }
  
  .tarif-item {
    font-size: 1rem;
  }
}
/* Contact End */

.tarif-item { 
  line-height: 1.3;
}

.tarif-item span {
  white-space: nowrap;
}