/* --- REGLES GENERALES --- */
* {
  box-sizing: border-box !important; /* Force TOUT le site à rester dans les limites de l'écran */
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

html {
  scroll-padding-top: 75px;
  scroll-behavior: smooth; 
}

header {
  /* --- SECTION HERO (MOBILE FIRST) --- */
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  color: #ffffff; 
  background: linear-gradient(rgba(78, 84, 99, 0.7), rgba(78, 84, 99, 0.7)),
              url('photos/photo-header.JPG') no-repeat center center / cover;
}

.header-logo {
  margin: 0;
  max-height: 60dvh;
}

h1, h2 {
  text-align: center;
  margin: 0;
}

/* --- STRUCTURE DES BOUTONS (DÉSIMBRIQUÉE) --- */
.btn {
  display: block;           
  margin: 2em auto;         /* Centrage parfait sur mobile (l'un sur l'autre) */
  text-align: center;       
  cursor: pointer;
  font-size: 16px;
  line-height: 45px;
  max-width: 160px; 
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%; 
}

@media(min-width: 576px) {
  .btn {
    display: inline-block;  
    margin: 0 15px;         /* Espace fixe de 15px à gauche et à droite de chaque bouton */
    vertical-align: middle;
  }
  
  /* On transforme la colonne en boîte Flexbox centrée uniquement sur grand écran */
  header .col-12.col-md-6 {
    display: flex !important;
    flex-direction: row !important;     /* Force l'alignement sur une seule ligne horizontale */
    justify-content: center !important; /* Centre parfaitement la ligne de boutons au milieu */
    margin: 5em auto 3em auto !important; /* Gère l'espace au-dessus des boutons proprement */
  }
}

.btn-contact {
  background: #F19960;
  color: #fff;
  border: none;
}

.btn-contact svg {
  height: 45px;
  left: 0;
  position: absolute;
  top: 0; 
  width: 100%; 
}
  
.btn-contact rect {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 422, 0;
  transition: all 0.35s linear;
}

.btn-plus {
  background: white;
  color: #F19960;
  border: none;
}

.btn-plus svg {
  height: 45px;
  left: 0;
  position: absolute;
  top: 0; 
  width: 100%; 
}
  
.btn-plus rect {
  fill: none;
  stroke: #F19960;
  stroke-width: 2;
  stroke-dasharray: 422, 0;
  transition: all 0.35s linear;
}

.btn-contact:hover, .btn-plus:hover {
  letter-spacing: 0.5px;
}

.btn-contact:hover rect, .btn-plus:hover rect, .btn-devis:hover rect {
  stroke-width: 5;
  stroke-dasharray: 15, 310;
  stroke-dashoffset: 48;
  transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-contact:hover, .btn-devis:hover {
  background: #F19960;
}

.btn-plus:hover {
  color: #F19960;
  background: white;
}

/* --- MENU (PC UNIQUEMENT) --- */

/* Par défaut (Mobile/Tablette) : Totalement invisible */
.sticky-nav {
  display: none;
}

/* Uniquement sur les écrans d'ordinateurs (à partir de 992px) */
@media (min-width: 992px) {
  .sticky-nav {
    display: block;
    position: fixed;
    top: -70px; 
    left: 0;
    width: 100%;
    height: 65px;
    background-color: rgba(255, 255, 255, 0.95); /* Blanc légèrement transparent */
    backdrop-filter: blur(5px); /* Effet flouté moderne en arrière-plan */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 9999; 
    transition: top 0.3s ease-in-out;
  }

  /* Classe activée par le JavaScript quand on passe le header */
  .sticky-nav.visible {
    top: 0; 
  }

  .sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  /* Bloc Logo + Nom */
  .sticky-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sticky-logo {
    height: 60px;
    width: auto;
  }

  .sticky-title a {
    font-size: 18px;
    font-weight: 700;
    color: #2f2f2f;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
  }

  .sticky-title a:visited {
    color: #2f2f2f;
    text-decoration: none;
  }

  /* Liens de navigation */
  .sticky-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
  }

  .sticky-links a {
    text-decoration: none;
    color: #2f2f2f;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .sticky-links a:hover {
    color: #F19960; 
  }
}

/* --- SECTION PRESENTATION --- */

.presentation {
  background-color: #f0eded;
  padding-top: 0!important;
  padding-bottom: 0!important;
}

.photo-presentation {
  width: 100%;
  height: auto;
  max-height: 600px; 
  object-fit: cover;
  padding-top: 1em!important;
  padding-bottom: 0.5em!important;
}

/* --- GRILLE DE SERVICES --- */

.section-head {
  margin-bottom: 40px;
}

.section-head h4 {
  position: relative;
  padding: 0;
  color: #F19960;
  line-height: 1;
  letter-spacing: 0.3px;
  font-size: 34px;
  font-weight: 700;  
  text-align: center;
  margin-bottom: 30px;
}

.section-head h4:before {
  content: '';
  width: 60px;
  height: 3px;
  background: #F19960;
  position: absolute;
  left: 0;
  bottom: -10px;
  right: 0;  
  margin: 0 auto;
}

.section-head h4 span {
  font-weight: 700;
  padding-bottom: 5px;
  color: #2f2f2f;
}

p.service_text, .section-head p, p.awesome_line {
  color: #818181;
  font-size: 16px;
  line-height: 28px;
  text-align: center;  
}

.section-head p span {
  font-weight: bold;
}

.item {
  background: #fff;
  text-align: center;
  padding: 30px 25px;
  box-shadow: 0 0px 25px rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  border: 4px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 10px;
  transition: all 0.5s ease 0s;
}

.item:hover {
  background: #F19960;
  color: #fff;
  box-shadow: 0 8px 20px 0px rgba(0, 0, 0, 0.2);
}

.item:hover span.icon {
  background: #fff;
  border-radius: 10px;
}

.item .icon {
  font-size: 40px;
  color: #F19960;   
  width: 80px;
  height: 80px;
  line-height: 90px;
  border-radius: 10%;
  display: inline-block;
  margin-bottom: 15px;
}

.photos-services {
  min-width: 80px;
  max-width: 80px;
  max-height: 80px;
}

.different-service h3, .different-service p span {
  font-weight: bold;
}

.item .feature_box_col_one { background: rgba(247, 198, 5, 0.20); }
.item .feature_box_col_two { background: rgba(255, 77, 28, 0.15); }
.item .feature_box_col_three { background: rgba(0, 147, 38, 0.15); }

.item p {
  font-size: 15px;
  line-height: 26px;
}

/* Couleur spécifique pour les titres de cette section */
.contact-tarif-title {
  font-weight: bold;
}

@media (min-width: 768px) {
  /* Ajoute une fine ligne grise à gauche du bloc Tarif, uniquement sur ordinateur */
  .col-md-6 + .col-md-6 {
    border-left: 1px solid #E2E8F0; 
  }
}

.btn-devis {
  background: #F19960;
  color: #fff;
  display: block;           
  margin: 1em auto 3em auto;         /* Centrage parfait sur mobile (l'un sur l'autre) */
  text-align: center;       
  cursor: pointer;
  font-size: 18px;
  max-width: 200px; 
  height: 45px;
  line-height: 45px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.06),
            0 2px 10px 0 rgba(0,0,0,0.07);
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}

.btn-devis:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10),
              0 1px 1px 0 rgba(0,0,0,0.09);
}


/*--- Phrase d'accroche ---*/

.phrase {
  margin: 0;
  min-height: 30dvh;
  max-height: 40dvh;
  background-color: #F19960;
  color: white;
  text-transform: uppercase;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  letter-spacing: 2px;
}


/***--- TEMOIGNAGES ---***/

/* --- SECTION CONTACT GLOBALE --- */
.contact-section {
  background-color: #f0eded;
  padding-top: 0px!important;
  padding-bottom: 4em; 
  overflow: hidden; 
}

.section-contact {
  margin-bottom: 20px;
}

.contact-form {
  width: 100% !important;
  max-width: 800px; 
  margin: 0 auto;
  box-sizing: border-box !important;
}

/* --- LE MOTEUR DE GRILLE AUTONOME --- */
.form-grid {
  display: grid;
  grid-template-columns: 100%; 
  gap: 1.5rem;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact-form *, 
.contact-form *::before, 
.contact-form *::after {
  box-sizing: border-box !important;
  max-width: 100% !important; 
}

.field-group {
  display: flex;
  flex-direction: column;
  width: 100% !important;
}

/* Style des labels */
.contact-form .form-label {
  text-align: left;
  color: #4E5463;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  display: block !important;
  width: 100% !important;
  background-color: #484848 !important;
  color: #ffffff !important;
  border: 1px solid #484848;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form .form-control::placeholder {
  color: #cccccc;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr; 
  }
  
  .full-width {
    grid-column: span 2; 
  }
}

/* --- BOUTON ENVOYER --- */
.btn-submit-contact {
  float: right;
  padding: 12px 40px;
  border-radius: 10px;
  border: none;
  background-color: #F19960;
  color: white;
  cursor: pointer;
  display: block; 
  font-size: 18px;
  max-width: 200px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.06),
            0 2px 10px 0 rgba(0,0,0,0.07);
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}

.btn-submit-contact:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10),
              0 1px 1px 0 rgba(0,0,0,0.09);
}

@media (max-width: 768px) {
  .btn-submit-contact {
    float: none;
    width: 100%;
    text-align: center;
  }
}

/*** FOOTER ***/

footer {
  background-color: #F19960;
  color: white;
  margin: 0;
  padding: 5px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;  
  text-align: center;
}

footer p a {
  color: white;
  text-decoration: none;
}

footer p a:hover {
  border-bottom: 2px solid white;
}