/* Reset global complet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Avenir, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: white;
    color: #495277;
    font-size: 1.2rem; /* taille relative pour s'adapter */
}

/* Header */
header {
    position: relative;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.site-logo img {
    width: 6rem; /* équivalent à 140px, mais scalable */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* CTA Stack (boutons verticaux) */
.cta-stack {
    position: absolute;
    right: 0rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
}

/* bouton téléphone */
.cta-phone {
    background: #5a6b8a;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 0.4rem 0 0 0.4rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0.375rem 0.75rem rgba(0,0,0,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

/* grande étiquette verticale */
.cta-tab {
    background: #c62828;
    color: #fff;
    height: 3.5rem;
    width: 20rem;
    border-radius: 0.4rem 0 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0.375rem 0.75rem rgba(0,0,0,0.12);
}

.cta-tab-text {
    display: inline-block;
    transform: rotate(0deg);
    transform-origin: center;
    letter-spacing: 0.1rem;
    font-weight: 700;
    font-size: 1.23rem;
}

.cta-phone:hover,
.cta-tab:hover {
    transform: translateX(-0.375rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0,0,0,0.18);
    cursor: pointer;
}

/* Menu */
nav {
    width: 100%;
    background-color: #6091c2;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* pour que ça passe sur mobile */
}

nav ul li {
    position: relative;
    text-align: center;
}

nav a {
    display: block;
    text-decoration: none;
    color: black;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0.25rem;
}

nav a:hover {
    color: silver;
    border-bottom: 2px solid silver;
}

/* Sous-menu */
.sous {
    display: none;
    box-shadow: 0 0.0625rem 0.125rem #CCC;
    background-color: #4f80b2;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

nav > ul li:hover .sous {
    display: block;
}

.sous li {
    width: 100%;
    text-align: left;
}

.sous a {
    padding: 0.625rem;
}

.sous a:hover {
    background-color: #4f80b2;
}

/* Hero image */
.hero-image {
    width: 100%;
    display: block;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 27rem;
    max-height: 29rem; /* s'adapte à l'écran */
    object-fit: cover;
}

/* Conteneur général */
.conteneur {
    padding: 1rem 2rem;
}

/* Titres */
h1 {
    padding: 1rem 2rem;
    text-align: center;
    margin: 0; /* on enlève les marges globales */
  }
  
 

h2, h3, h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    border: 0.3rem solid #4b629d;
    border-radius: 0.5rem ;
}

/* Supprimer tout espace entre les deux h1 uniquement dans la page propositions */
.proposals-content h1 {
    margin-top: 1rem;
    padding: 0rem 2rem; /* garde un peu de marge à gauche/droite si tu veux */
    line-height: 1;
    text-align: center;
  }
  
  .proposals-content h1 + h1 {
    margin-top: 0rem;
    padding-top: 0.7rem;
    margin-bottom: 1rem;
  }
  

/* Carte / image zone intervention */
#carte {
    text-align: center;
    margin: 2rem 0;
}

.carte-image {
    width: 40%;
    max-width: 30rem;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Media Queries pour mobiles et tablettes */
@media (max-width: 1024px) {
    .cta-tab {
        width: 16rem;
        font-size: 0.9rem;
    }
    .cta-phone {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    nav ul li {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 1rem;
    }

    .cta-stack {
        right: 0.5rem;
        top: auto;
        bottom: 15%;
        flex-direction: column-reverse;
        transform: none;
    }

    .cta-tab {
        width: 14rem;
        height: 3rem;
        font-size: 0.85rem;
    }

    .hero-image img {
        max-height: 25rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cta-tab {
        width: 12rem;
        height: 2.5rem;
        font-size: 0.75rem;
    }

    .cta-phone {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .hero-image img {
        max-height: 18rem;
    }

    nav a {
        font-size: 0.9rem;
    }
}

p{
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
    text-align: center;
}

.expertise-step, li{
    text-align: center;
}

footer{
    margin-top: 6rem;
    position: relative;
    padding: 2.5rem 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5d6b85;
}

footer a{
    align-items: center;
}

.philosophie{
    margin-bottom: 1.5rem;
}


  
