

/* global ------------------------------------------------------------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  /* Définit 1rem = 16px tout en respectant les préférences d'accessibilité de l'utilisateur */
  font-size: 100%; 
}

body {  
  background: white;
  margin: 0; 
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Équivalent à 18px tout en s'adaptant légèrement sur mobile */
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.5; /* Augmenté à 1.5 pour une meilleure lisibilité du corps de texte */
  letter-spacing: 0.02em; /* Em est préférable aux pixels pour le letter-spacing */
}

a {
  text-decoration: none;
  color: black;
  margin: 0;
  padding: 0;
}

input {
  line-height: 1;
  font: inherit; /* Assure la cohérence de la police et de la taille */
}

button {
  color: black;
  all: unset;
  cursor: pointer;
  font: inherit; /* Assure la cohérence de la police et de la taille */
}

p {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
  line-height: 1.15;
  letter-spacing: normal;
  font-weight: 700; /* Uniformisé avec vos déclarations spécifiques */
}

/* Tailles fluides (min, fluide, max) calculées en rem */
h1 {
  font-size: clamp(2rem, 1.25rem + 3.75vw, 3.125rem); /* ~32px à 50px */
}

h2 {
  font-size: clamp(1.625rem, 1.125rem + 2.5vw, 2.5rem); /* ~26px à 40px */
}

.devis h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 2.5rem); /* ~32px à 40px */
}

h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.375rem); /* ~20px à 22px */
  line-height: 1.2;
}

h4 {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* ~16px à 18px */
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}


/* header ------------------------------------------------------------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
letter-spacing: normal;
}

header .header-container {
  display: flex;
  align-items: center; /* Aligne verticalement tous les enfants au centre */
  justify-content: center;
  gap: 35px;
  height: 100%; /* S'étend sur toute la hauteur du header (50px) */
  max-width: 1200px; /* Optionnel : limite la largeur max sur grand écran */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Alignement du lien englobant le logo */
header .header-container > a:first-child {
  display: flex;
  align-items: center;
}

header .logo {
  height: 30px;
  display: block;
}

header .menu-pc {
  display: flex;
  gap: 35px;
  align-items: center;
}

header .header-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap; 
}

header .icon {
  width: 20px;
  height: 20px;
}

header .telephone {
  font-weight: 800;
  font-size: 18px;
font-stretch: 90%;
}

header .bouton {
  background: #00e094;
  padding: 6px 16px;
  border-radius: 50vh;
  font-weight: 600;
}

header .telephone-icon { 
  display: none; 
}

/* Bouton mobile */
header .menu-mobile { 
  display: none; 
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
} 

/* --- RESPONSIVE --- */

@media (max-width: 1100px) { 
  header .header-container {
    justify-content: space-between;
    gap: 15px;
  }

  header .menu-pc,
  header .telephone { 
    display: none; 
  } 

  header .telephone-icon,
  header .menu-mobile { 
    display: flex;
    align-items: center;
  } 
}

@media (max-width: 900px) {
  header .telephone {
    font-size: 15px;
  }
}


/* menu ------------------------------------------------------------------------------------------------------------------------------- */

.dropdown-content {
display: none;
position: fixed;
z-index: 1000;
width: max-content; /* S'adapte exactement à la largeur du contenu */
background-color: #fff;
padding: 10px 25px;
box-shadow: 0 0px 10px rgba(0,0,0,0.1);
border-radius:15px;
}

.dropdown-content.active {
display: block;
}

.dropdown-content a {
  display: block;
  margin: 15px 0;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
.dropdown-content {
max-width: calc(100vw - 20px);
max-height: calc(100vh - 90px);
overflow-y: auto;
}
}


/* pub ------------------------------------------------------------------------------------------------------------------------------- */


.pub {
  width: 100%;
  height: 40px;
  background: #00e094;
  color: black;
  font-size: 14px;
  margin-top: 50px;
  
  /* Ajouts pour le centrage vertical et horizontal */
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement (remplace text-align) */
}

@media (max-width: 1100px) { 
  .pub {
    display: none;
  }
}



/* cover ------------------------------------------------------------------------------------------------------------------------------- */

.hero-split { display: flex; padding:25px;  }

.cover {
width: 50%; min-height:75vh; box-sizing: border-box; padding: 25px 25px; color: #fff;
display: flex; flex-direction: column; justify-content: center; align-items: center;
/*background: linear-gradient(135deg, rgba(30,30,50,.25), rgba(30,30,50,.25)), url("img/maison4.avif") center / cover no-repeat #ccc;*/
border-radius:15px;
}
.cover h1 { margin: 0 0 40px 0; max-width: 600px; text-align: center;  }
.image-debordante { height: 200px; filter: drop-shadow(0 0 10px rgba(0,0,0,.2)); }


.devis-wrapper { width: 50%; box-sizing: border-box; padding: 50px 25px; display: flex; align-items: center; }
.devis { width: 80%; max-width: 800px; margin: 0 auto; text-align: center; }

.devis .progress-bar { height: 8px; margin: 0 auto 30px auto; max-width:300px; background:rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden; }
.devis .progress-fill { height: 100%; width: 25%; background: #00e094; border-radius: 4px; transition: width .3s ease; }

.devis .step { display: none; }
.devis .step.active { display: block; }
.devis h1 { margin-bottom: 40px; }

.devis .grid-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.devis .btn-div {
box-sizing: border-box; padding: 18px 30px; font-weight: 600; font-size: 18px; cursor: pointer;
color: black; background: #f0f0f0;
border: 1px solid rgb(184,184,184); border-radius: 15px;
transition: background-color .2s ease, border-color .2s ease;
min-width:40%;
}
.devis .btn-div:hover { background: rgb(225,225,225); }
.devis .btn-div.selected { background: rgba(0,224,148,0.1); border-color: #00e094; /*color: white;*/ }

.devis .nav { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 30px; }
.devis .btn-round {
width: 37px; height: 37px; border: none; border-radius: 50%; background: #f0f0f0;
cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease, opacity .2s ease;
}
.devis .btn-round:hover:not(:disabled) { background: rgb(215,215,215); }
.devis .btn-round.btn-next { background: #00e094; }
.devis .btn-round.btn-next:hover:not(:disabled) { background: #00c884;  }
.devis .btn-round:disabled { opacity: .35; cursor: not-allowed; }
.devis .btn-round svg { width: 17px; }

.devis .btn-send {
padding: 12px 28px; font-weight: 700; font-size: 17px; cursor: pointer;
background: #00e094; border: none; border-radius: 50vh; transition: background-color .2s ease;
}
.devis .btn-send:hover { background: #00c884; }

.devis .form-fields { display: flex; flex-direction: column; gap: 15px; max-width: 300px; margin: 0 auto; }
.devis .form-fields input {
width: 100%; box-sizing: border-box; padding: 18px; font-size: 16px; color: black;
border: 1px solid rgb(184,184,184); border-radius: 10px; background: white;
}
.devis .form-fields input::placeholder { color: rgb(184,184,184); }
.devis .form-fields :focus { outline: none; border-color: #00e094; }
.devis .form-fields .field-error { border-color: #e02f2f; background: #fff5f5; }
.devis .form-msg { margin-top: 15px; color: #e02f2f; font-weight: 600; }

.devis .gratuit { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 30px; font-size: 14px; letter-spacing: normal; }
.devis .gratuit svg { color: #00e094; height: 18px; flex-shrink: 0; }
.devis .gratuit p { margin: 0; }

/* mobile */
@media (max-width: 1100px) {
.hero-split { flex-direction: column; padding:0; margin-top:50px;}
.cover {
width: 100%;
min-height:30vh; 
border-radius:0;
padding: 50px 25px; 
}
.devis-wrapper { width: 100%; }
.devis { width: 100%; max-width: 600px; }   /* etait bloque a 80% de l'ecran */
.image-debordante { height: 150px; }
.devis .btn-div { padding: 15px 25px; }
}

@media (max-width: 600px) {
.hero-split {margin-top:45px;}
.cover { padding: 40px 20px; }
.cover h1 { margin-bottom: 30px; }
.image-debordante { height: 120px; }

.devis-wrapper { padding: 40px 20px; }
.devis h2 { margin-bottom: 30px; }
.devis .progress-bar { margin-bottom: 25px; }
.devis .grid-container { gap: 10px; }
.devis .btn-div {
flex: 1 1 calc(50% - 5px);   /* 2 colonnes propres au lieu de min-width:40% */
min-width: calc(50% - 5px);
padding: 15px 10px;
font-size: 16px;
}
.devis .nav { margin-top: 25px; }
.devis .form-fields input { padding: 15px; }
.devis .gratuit { margin-top: 25px; }
}


/* cartes ------------------------------------------------------------------------------------------------------------------------------- */

.cartes-wrapper {
--pad: 20px;
padding: 50px var(--pad);
}
.cartes-wrapper h2 { margin-bottom: 15px; text-align: center; }
.cartes-wrapper > p { margin: 0 auto 35px; max-width: 600px; text-align: center; }

.caroussel-container { margin: 0 calc(-1 * var(--pad)); }

.cartes-viewport {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
scroll-padding-inline: var(--pad);
scrollbar-width: none;
}
.cartes-viewport::-webkit-scrollbar { display: none; }

.cartes {
display: flex;
gap: 20px;
padding: 0 var(--pad);
width: max-content;
margin: 0 auto;
}

.carte {
position: relative;
flex: none;
width: 330px;
height: 430px;
background: rgb(245,245,245);
border-radius: 15px;
overflow: hidden;
scroll-snap-align: start;
display: flex;
flex-direction: column;
}
.carte:last-child { scroll-snap-align: end; }

.carte .texte { padding: 30px; }
.carte .texte h3 { margin: 0 0 10px; text-align: left; }
.carte .texte p { margin: 0; font-size: 15px; text-align: left; }

.carte .media {
height: 300px;
margin-top: auto;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: center / cover no-repeat;
}

.carte .media img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 40px 30px;
box-sizing: border-box;
display: block;
}

.carte > a {
position: absolute;
bottom: 20px;
right: 20px;
font-size: 20px;
background-color: white;
border-radius: 50%;
display: grid;
place-items: center;
width: 35px;
height: 35px;
}
.carte > a:hover { background-color: #e0e0e0; }


.caroussel-nav {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 30px;
}
.caroussel-btn {
width: 37px;
height: 37px;
border-radius: 50%;
background-color: rgb(245,245,245);
border: none;
cursor: pointer;
display: grid;
place-items: center;
}
.caroussel-btn:hover { background-color: #e0e0e0; }
.caroussel-btn svg { width: 17px; }


.cartes-wrapper .dark {
background: center / cover no-repeat;
color:white;
}

.cartes-wrapper .dark a {
background: white;
}

.cartes-wrapper .white {
background: white;
color:black;
}

.cartes-wrapper .white a {
background: rgb(235,235,235);
}

@media (max-width: 768px) {
.cartes-wrapper { padding: 40px var(--pad); }
.carte { width: 72vw; max-width: 300px; height: 400px; }   /* la carte suivante depasse = on comprend que ca defile */
.carte .texte { padding: 20px; }
.carte .media {height: 220px;}
.carte .media img { padding: 30px 25px; }
.caroussel-nav { margin-top: 20px; }
.carte > a { width: 40px; height: 40px; }
}


/* bloc 1 ------------------------------------------------------------------------------------------------------------------------------- */

/* style="background: linear-gradient(135deg, rgba(1, 62, 126, 0.4), rgba(0, 0, 0, 0.4)), url('../img/cover.jpg') center / cover no-repeat #cccccc; color: white;" */

.bloc-1-wrapper {
width: 100%;
margin: 0 auto;         
padding: 50px 20px;
}

.bloc-1-wrapper .bloc {
max-width: 1400px;
display: flex;
gap: 100px;
align-items: center;
justify-content: center; /* Centre la colonne si seule */
margin: 0 auto;
}

.bloc-1-wrapper .col-image,
.bloc-1-wrapper .col-text {
flex: 1; 
min-width: 0; 
}

.bloc-1-wrapper .col-text {
max-width: 650px;
width: 100%;
margin: 0 0;
text-align: left;
}

.bloc-1-wrapper .col-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-radius: 15px;
}

.bloc-1-wrapper .bloc h2 {
margin-bottom: 15px;
}

.bloc-1-wrapper .bloc p {
margin-bottom: 25px;
}

.bloc-1-wrapper .bloc a {
width: 37px;
height: 37px;
border-radius: 50%;
background-color: rgb(235, 235, 235);
border: none;
cursor: pointer;
display: grid;
place-items: center;
}

.bloc-1-wrapper .bloc a:hover { 
background-color: rgb(215, 215, 215);
}

.bloc-1-wrapper .bloc a svg {
width: 17px;
}

@media (max-width: 1600px) {
.bloc-1-wrapper {
padding: 50px;
}
.bloc-1-wrapper .bloc {
gap: 50px;
}
}

@media (max-width: 800px) {
.bloc-1-wrapper {
padding: 50px 25px;
}

.bloc-1-wrapper .bloc {
flex-direction: column;
gap: 25px;
align-items: stretch;
}

.bloc-1-wrapper .col-image {
order: -1;  
}
}



/* bloc 2 ------------------------------------------------------------------------------------------------------------------------------- */

/* style="background: linear-gradient(135deg, rgba(1, 62, 126, 0.4), rgba(0, 0, 0, 0.4)), url('../img/cover.jpg') center / cover no-repeat #cccccc; color: white;" */

.bloc-2-wrapper {
width: 100%;
padding: 200px 0; 
}

.bloc-2-wrapper .bloc {
max-width: 1400px;
margin: 0 auto;
}

.bloc-2-wrapper .col-text {
max-width: 550px;
}

.bloc-2-wrapper .bloc h2 {
margin-bottom: 15px;
}

.bloc-2-wrapper .bloc p {
margin-bottom: 25px;
}

.bloc-2-wrapper .bloc a {
width: 37px;
height: 37px;
border-radius: 50%;
background-color: rgb(235, 235, 235);
border: none;
cursor: pointer;
display: grid;
place-items: center;
}

.bloc-2-wrapper .bloc a:hover { 
background-color: rgb(215, 215, 215);
}

.bloc-2-wrapper .bloc a svg {
width: 17px;
}

@media (max-width: 1600px) {
.bloc-2-wrapper {
padding: 200px 50px 50px 50px;
}

}

@media (max-width: 800px) {
.bloc-2-wrapper {
padding: 200px 25px 50px 25px;
}

}

@media (max-width: 600px) {
.bloc-2-wrapper {
padding: 120px 20px 40px 20px;   /* 200px de haut mangeaient tout l'ecran du telephone */
}
}

/* réassurance ------------------------------------------------------------------------------------------------------------------------------- */
.reassurance-wrapper {
width: 100%;
background-color: rgb(20,20,25);
padding: 100px 0;
color: white;
box-sizing: border-box;
}

/* Alignement global à 1400px */
.reassurance-container {
width: 1400px;
max-width: 100%;
margin: 0 auto;
padding: 0;
box-sizing: border-box;
}

.reassurance-header {
width: 550px;
max-width: 100%;          /* sinon debordement horizontal sous 550px */
margin-bottom: 50px;
}

.reassurance-header h2 {
margin-bottom: 15px;
}

/* Grille pour les cartes */
.reassurance-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 60px;
}

.reassurance {
display: flex;
flex-direction: column;
align-items: flex-start;
}

/* Conteneur / Rectangle derrière le SVG */
.icon-box {
width: 60px;
height: 60px;
background-color: rgb(30, 30, 35); /* Rectangle semi-transparent */
border-radius: 10px; /* Coins légèrement arrondis */
display: flex;
justify-content: center; /* Centrage horizontal du SVG */
align-items: center;    /* Centrage vertical du SVG */
margin-bottom: 20px;
border: solid 1px rgb(50,50,55);
}

.icon-box svg {
height: 25px;
width: 25px;
color: #00e094;
}

.reassurance h3 {
margin-bottom: 15px;
}

.reassurance p {
margin-bottom: 0;
}

@media (max-width: 1500px) {
.reassurance-container {
padding: 0 50px;        /* le contenu collait aux bords de l'ecran */
}
.reassurance-grid {
gap: 25px;
}
}

@media (max-width: 1150px) {
.reassurance-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 800px) {
.reassurance-wrapper {
padding: 50px 0;
}
.reassurance-container {
padding: 0 25px;
}
.reassurance-header {
margin-bottom: 30px;
}
.reassurance-grid {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
}

@media (max-width: 600px) {
.reassurance-grid {
grid-template-columns: 1fr;   /* 2 colonnes illisibles sur telephone */
gap: 30px;
}
.icon-box {
width: 50px;
height: 50px;
margin-bottom: 15px;
}
.icon-box svg {
height: 22px;
width: 22px;
}
.reassurance h3 {
margin-bottom: 10px;
}
}


/* questions fréquentes ------------------------------------------------------------------------------------------------------------------------------- */
.faq-container {
max-width: 1400px;
width: 100%;
display: grid;
grid-template-columns: 1fr 1.5fr;
margin: 50px auto;
gap: 100px;
}

/* Colonne de gauche */

.faq-info h2 {
margin: 10px 0 15px 0;
}

.faq-info p {
margin-bottom: 25px;
}


/* Colonne de droite (Accordéon) */
.faq-accordion {
display: flex;
flex-direction: column;
}

details {
border-bottom: 1px solid #e5e7eb;
}

summary {
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 0;
font-weight: 700;
cursor: pointer;
user-select: none;
transition: color 0.2s ease;
}

summary::-webkit-details-marker {
display: none;
}

summary::after {
content: "";
width: 10px;
height: 10px;
border-right: 2px solid #0f172a;
border-bottom: 2px solid #0f172a;
transform: rotate(45deg);
transition: transform 0.2s ease;
margin-left: 1rem;
flex-shrink: 0;
}

details[open] summary::after {
transform: rotate(-135deg);
}

.faq-answer {
padding-bottom: 1.5rem;
}

/* mobile */
@media (max-width: 1600px) {
.faq-container {
padding: 0 50px;          /* aucun padding lateral auparavant : le texte touchait les bords */
}
}

@media (max-width: 900px) {
.faq-container {
grid-template-columns: 1fr;   /* la FAQ restait sur 2 colonnes sur telephone */
gap: 25px;
margin: 40px auto;
padding: 0 25px;
}
.faq-info p {
margin-bottom: 0;
}
summary {
padding: 1.2rem 0;
gap: 15px;
}
.faq-answer {
padding-bottom: 1.2rem;
}
}


/* footer ------------------------------------------------------------------------------------------------------------------------------- */
.ft {
  width: 100%;
  background: rgb(245,245,245);
  font-size: 13px;
}

.ft-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 25px;

  /* 5 colonnes, remplissage haut → bas puis gauche → droite */
  column-count: 5;
  column-gap: 32px;
color:rgb(50,50,50);
}

.ft-block {
  break-inside: avoid;          /* un bloc n'est jamais coupé entre 2 colonnes */
  -webkit-column-break-inside: avoid;
  margin: 0;                    /* aucun espace entre 2 blocs superposés */
padding-bottom: 28px;
}

.ft-title {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
margin-bottom:7px;
color:black;
}

.ft-links {
  margin: 0;
  padding: 0;
  list-style: none;

}

.ft-links a {
  display: block;
  text-decoration: none;
color:rgb(50,50,50);
}

.ft p, .ft li {line-height:1.25; margin-bottom:7px;}

.ft img {height:180px; padding-bottom:20px;}
.ft .logo {text-align:center; }


.ft-links a:hover { opacity:0.9; }

/* Tablette */
@media (max-width: 1023px) {
  .ft-container { column-count: 3; column-gap: 24px; }
}

/* Mobile */
@media (max-width: 639px) {
  .ft-container { column-count: 2; column-gap: 20px;  }
}