/* FONTS & VARS */
@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat.ttf");
}

@font-face {
    font-family: "Signature";
    src: url("../fonts/Signature.otf");
}
@font-face {
    font-family: "Breathney";
    src: url("../fonts/Breathney.ttf");
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/OpenSans.ttf");
}

:root {
    --primary: #27969c;
    --secondary: #225276;
    --light: #f2ffff;
    --warning: #ffb820;
    --danger: #ce2525;
    --success: #49bc49;
}

/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

ol, ul {
  padding-left: 40px;
}
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TEXTS */
.text-light { color: var(--light);}
.text-primary { color: var(--primary);}
.text-secondary { color: var(--secondary);}
.text-center {text-align: center;}
.text-upper { text-transform: uppercase;}
.text-danger {color: var(--danger);}


.handwriting {
    font-family: 'Breathney';
    font-size: 4rem;
    color: var(--light);
    margin-top: 0;
}

.main-title {
    font-size: 156px;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: -30px;
}

.main-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.619);
    margin-top: 0;
    margin-bottom: 40px;
    color: #55cbd2;
}

.main-p {
    font-size: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

@media screen and (max-width:1180px) {
  .main-title {
    font-size: 130px;
  }
}

@media screen and (max-width:950px) {
  .main-title {
    font-size: 100px;
  }
  .main-subtitle {
    font-size: 32px;
  }
  .handwriting {
    font-size: 3rem;
  }
}

@media screen and (max-width:720px) {
  .main-title {
    font-size: 80px;
  }
  .handwriting {
    font-size: 2.5rem;
  }
}

@media screen and (max-width:550px) {
  .main-title {
    font-size: 55px;
  }

  .main-subtitle {
    font-size: 28px;
    margin-top: 12px;
  }
  .handwriting {
    font-size: 2.2rem;
  }
}

@media screen and (max-width:400px) {
  .main-title {
    font-size: 45px;
  }
  .main-subtitle {
    font-size: 26px;
    margin-top: 25px;
  }
  .handwriting {
    font-size: 2rem;
  }
}

/* BUTTONS */
.button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
button {
    padding: 15px 30px;
    border-radius: 12px;
    border: solid 2px rgba(0, 0, 0, 0);
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 500;
    color: white;

    transition: all .5s ease;
}

@media screen and ( max-width: 500px) {
  .button-group {
    flex-direction: column;
  }
  button {
    font-size: 16px;
  }
}

button:hover {
    cursor: pointer;
}

.primary-button {
    background-color: var(--primary);
}
.secondary-button {
    background-color: var(--secondary);
}
.danger-button {
  background-color: rgba(0, 0, 0, 0);
  border: solid 2px var(--danger);
  color: var(--danger);
}

.primary-button:hover, .secondary-button:hover {
    background-color: rgba(0, 0, 0, 0); 
    border-color: white;
    color: white;
}

.danger-button:hover {
  color: white;
  border-color: rgba(0, 0, 0, 0);
  background-color: var(--danger);
}


/* ALERTS */
.alert {
    text-align: center;
    text-transform: uppercase;
    width: fit-content;
    margin: 40px auto;
    padding: 12px 40px;
    border-radius: 50px;
}

.alert-warning {
  border: solid 1px var(--warning);
  background-color: #ffb82064;
}
.alert-danger {
  border: solid 1px var(--danger);
  background-color: #ff202064;
}
.alert-success {
  border: solid 1px var(--success);
  background-color: #337f1964;
}


/* Styles de la navbar */
.navbar {
    background-color: var(--secondary);
    padding: 1rem;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-brand img {
  height: 30px;
}
.navbar-brand .brand-text {
    color: var(--light);
    font-weight: bold;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.navbar-menu {
    display: flex;
    list-style-type: none;
}

.navbar-menu li {
    margin-left: 1rem;
}

.navbar-menu a {
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-menu a:hover {
    background-color: var(--primary);
    color: white;
}

.navbar-menu a.navbar-phone {
    background-color: var(--primary);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    font-weight: 600;
}

.navbar-menu a.navbar-phone:hover {
    background-color: var(--light);
    color: var(--secondary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.navbar-toggle.active {
    transform: rotate(45deg);
}

/* Styles pour le menu mobile */
@media (max-width: 930px) {
    .navbar {
      padding: 0 0 0 30px;
    }
    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0.5rem 0;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-phone {
        display: inline-block;
        margin-top: 0.5rem;
    }

    .navbar-brand .brand-text {
      font-size: 24px;
    }
}

@media screen and (max-width: 410px) {
  .navbar-brand {
    gap: 10px;
  }
  .navbar-brand img {
    height: 20px;
  }
}

/* HOME HERO */
#home-hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    background-image: url("../images/hero_2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Ajustez la valeur alpha (0.5) pour contrôler l'intensité de l'assombrissement */
}

#home-hero > div {
    position: relative;
    z-index: 1;
    color: white; /* Assurez-vous que le texte est lisible sur le fond assombri */
}

@media screen and (max-width: 720px) {
  #home-hero {
    height: 80vh;
  }
}


/* BANDEAU SERVICES */
#bandeau-services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    background-color: var(--primary);
    color: var(--light);
    padding: 25px 0;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.2rem;
}

@media screen and ( max-width: 720px) {
  #bandeau-services {
    font-size: .8rem;
    gap: 20px;
  }
  
}

/* PRSENTATION  */
#presentation {
    background-color: #f5f5f5;
    padding: 80px 0;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  
  .section-title {
    color: #333; 
    text-align: center;
    margin-bottom: 50px;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;

  }

  .section-title span {
    color: var(--primary);
  }
  .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 20px auto 0;
  }
  
  .presentation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }
  
  .presentation-text {
    flex: 1;
  }
  
  .presentation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--secondary);
  }
  
  .cta-button {
    margin-top: 20px;
  }
  
  .cta-button:hover {
    background-color: #006be6;
  }
  
  .presentation-image {
    flex: 1;
    max-width: 500px;
  }
  
  .presentation-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  @media (max-width: 768px) {
    .presentation-content {
      flex-direction: column;
    }
    
    .presentation-image {
      order: -1;
      margin-bottom: 30px;
    }
  }

  @media screen and (max-width:550px) {
    .section-title {
      font-size: 2.5rem;
      letter-spacing: normal;
    }

    .cta-button {
      font-size: 1rem;
    }
  }

  /* SERVICES */
  #services {
    background-color: #f5f5f5;
    padding: 80px 0;
  }
  
  #services .section-title {
    margin-bottom: 50px;
  }

  #services .main-p {
    margin-bottom: 40px;
  }
  
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .service-card {
    flex: 0 0 350px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
  
  .service-image {
    height: 350px;
    overflow: hidden;
  }
  
  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .service-card:hover .service-image img {
    transform: scale(1.05);
  }
  
  .service-content {
    padding: 20px;
  }
  
  .service-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
  }
  
  .service-content p {
    color: #666;
    font-size: 1rem;
  }
  
  .cta-container {
    text-align: center;
  }
  
  
  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  }


  /* REALISATIONS */
  .realisations-section {
    background: linear-gradient(135deg, #f6f6f6 0%, #ffffff 100%);
    padding: 100px 0;
    overflow: hidden;
  }
  
  .realisations-section .section-title {
    margin-bottom: 60px;
    position: relative;
  }
  
  .realisations-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
  }
  
  .realisations-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    perspective: 1000px;
  }
  
  .realisations-slider a {
    flex: 0 0 320px;
  }

  .realisation-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
  }
  
  .realisation-card:hover {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .realisation-image {
    position: relative;
    height: 400px;
    overflow: hidden;
  }
  
  .realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .realisation-card:hover .realisation-image img {
    transform: scale(1.1);
  }
  
  .realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s ease;
  }
  
  .realisation-card:hover .realisation-overlay {
    transform: translateY(0);
  }
  
  .realisation-overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .realisation-overlay p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
  }
  
  .realisation-card:hover .realisation-overlay p {
    opacity: 1;
    transform: translateY(0);
  }
  
  .cta-container {
    text-align: center;
    margin-top: 60px;
  }
  
  .cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
  }
  
  .cta-button:hover::before {
    width: 100%;
  }
  
  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  @media (max-width: 768px) {
    .cta-button {
      font-size: 1rem;
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .realisation-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
  }
  
  .realisation-card:nth-child(1) {
    animation-delay: 0.2s;
  }
  
  .realisation-card:nth-child(2) {
    animation-delay: 0.4s;
  }
  
  .realisation-card:nth-child(3) {
    animation-delay: 0.6s;
  }


  /* CONTACT */
  .contact-section {
    position: relative;
    background-color: #99daff; /* Couleur de fond adoucie */
    padding: 100px 0;
    overflow: hidden;
  }
  
  .contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  .floating-shape {
    position: absolute;
    background-color: rgba(209, 254, 255, 0.358);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
  }
  
  .shape1 {
    width: 300px;
    height: 300px;
    top: 150px;
    left: 150px;
  }
  
  .shape2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    right: 100px;
    animation-delay: -5s;
  }
  
  .shape3 {
    width: 150px;
    height: 150px;
    top: 150px;
    left: 500px;
    animation-delay: -10s;
  }
  
  .shape4 {
    width: 100px;
    height: 100px;
    top: 200px;
    right: 100px;
    animation-delay: -7s;
  }
  
  .shape5 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: -50px;
    animation-delay: -12s;
  }
  
  .shape6 {
    width: 180px;
    height: 180px;
    top: 300px;
    left: 30px;
    animation-delay: -15s;
  }
  
  @keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(100px, -50px) rotate(180deg); }
    75% { transform: translate(-50px, 100px) rotate(270deg); }
  }
  
  .contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
  }
  
  .contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .info-card {
    background-color: rgba(255, 255, 255, 0.8); /* Fond plus opaque pour une meilleure lisibilité */
    border-radius: 15px;
    padding: 30px;
    color: #333; /* Texte plus foncé pour un meilleur contraste */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  }
  
  .info-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
  }
  
  .info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
  }
  
  .contact-form {
    flex: 1;
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  
  .form-group {
    position: relative;
    margin-bottom: 30px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background-color: transparent;
    transition: all 0.3s ease;
  }
  
  .form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  .form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
  }
  
  .form-group input:focus ~ label,
  .form-group textarea:focus ~ label,
  .form-group input:valid ~ label,
  .form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
  }
  
  .form-group input:focus ~ .line,
  .form-group textarea:focus ~ .line,
  .form-group input:valid ~ .line,
  .form-group textarea:valid ~ .line {
    width: 100%;
  }
  
  .submit-btn {
    position: relative;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .submit-btn:hover {
    background-color: var(--secondary);
  }
  
  .submit-btn span {
    position: relative;
    z-index: 1;
  }
  
  .success-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .submit-btn.success .success-animation {
    opacity: 1;
  }
  
  .checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
  }
  
  .checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #fff;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  
  .checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
  }
  
  @keyframes stroke {
    100% { stroke-dashoffset: 0; }
  }
  
  @keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
  }
  
  @keyframes fill {
    100% { box-shadow: inset 0 0 0 30px #4CAF50; }
  }
  
  @media (max-width: 768px) {
    .contact-content {
      flex-direction: column;
    }
    
    .contact-info {
      order: 2;
    }
    
    .contact-form {
      order: 1;
      margin-bottom: 50px;
    }
  }

  /* FOOTER */
  .site-footer {
    position: relative;
    margin-top: auto;
    width: 100%;
    z-index: 10;
    background-color: var(--secondary);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-brand .brand-text {
    color: var(--light);
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
  }
  
  .footer-menu ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-menu li {
    margin-left: 1rem;
  }
  
  .footer-menu a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .footer-menu a:hover {
    background-color: var(--light);
    color: var(--secondary);
  }
  
  .footer-contact .footer-phone {
    background-color: var(--light);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s;
  }
  
  .footer-contact .footer-phone:hover {
    background-color: var(--primary);
    color: var(--light);
  }
  
  @media screen and (max-width: 1080px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
      gap: 25px;
    }
  }
  @media (max-width: 768px) {
    .footer-container {
      gap: 0;
    }
    
    .footer-brand {
      margin-bottom: 1rem;
    }
  
    .footer-menu ul {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-menu li {
      margin: 0.5rem 0;
    }
  
    .footer-contact {
      margin-top: 1rem;
    }
  }