/* Variables */
:root {
    --primary-color: 14, 165, 233; /* #0EA5E9 bleu clair */
    --secondary-color: 186, 230, 253; /* #BAE6FD bleu doux */
    --background-color-soft: 240, 249, 255; /* #F0F9FF bleu très clair */
    --accent-color: 3, 105, 161; /* #0369A1 bleu profond */
    --white-color: 255, 255, 255; /* #FFFFFF Blanc Pur */
    --text-color: 15, 23, 42; /* #0F172A texte foncé */
    --font-family-header: 'Source Sans Pro', sans-serif;
    --font-family-content: 'Nunito', sans-serif;
    --font-family-size: 18px;
}

/* Style de base */
html, body {
overflow-x: hidden;
width: 100%;
scroll-behavior: smooth; 
}

/* Reset de styles par défaut */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
max-width: 100%;
}
  
/* Styles de base */
body {
height: 100%;
font-family: var(--font-family-content);
font-size: var(--font-family-size);
background-color: rgba(var(--white-color), 1);
color: rgba(var(--text-color), 1);
}

h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family-header);
letter-spacing: 2px;
margin-bottom: 2rem;
}

h1 {
font-size: 2.3rem;
}

h2 {
font-size: 2rem;
font-weight: bold;
}

h3 {
font-size: 1.75rem;
font-weight: bold;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
letter-spacing: 0.02em;
line-height: 1.5;
margin: 10px 0;
margin-bottom: 1.5rem;
}

strong {
font-size: 1.2rem;
font-weight: 700;
color: rgba(var(--accent-color), 0.8); 
}

.link {
text-decoration: none;
color: rgba(var(--text-color), 1);
}

a {
color: rgba(var(--accent-color), 1);
}

a:hover {
color: rgba(var(--primary-color), 1);
transition: all 0.8s ease-out;
}

img {
max-width: 100%;
height: auto;
}

.box-shadow {
/*border-radius: 0.5rem;*/
border-top-color: rgba(var(--white-color), 1);
border-left-color: rgba(var(--white-color), 1);
box-shadow: 10px 10px 15px rgba(var(--text-color), 0.5);
}

.about-section,
.services-section,
.map-section,
.infos-section,
.faq-container {
width: 100%;
box-sizing: border-box;
padding: 40px 20px;
}

/*Composants et Sections */
.progress-bar {
position: fixed;
top: 0;
left: 0;
height: 5px;
background-color: rgba(var(--accent-color), 1);
width: 0;
z-index: 1000;
transition: width 0.3s ease-out;
}

/* barre de navigation */
header {
display: grid;
grid-template-columns: 1fr 3fr 2fr;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
height: 100px;
padding: 20px;
top: 0;
left: 0;
z-index: 999;
background-color: rgba(var(--primary-color), 0.9);
transition: transform 0.8s ease-in-out;
}

.header-left, .header-right {
flex: 1;
}

.header-hidden {
transform: translateY(-100%);
transition: transform 0.8s ease-in-out;
}

.header-right {
display: flex;
justify-content: flex-end;
}

.phone-button {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(var(--primary-color), 1), rgba(var(--accent-color), 1));
border: none;
border-radius: 8px;
gap: 0.5rem;
padding: 0.7rem 1rem;
width: 200px;
transform: translateY(0);
transition: all 0.8s ease;
position: relative;
overflow: hidden;
cursor: pointer;
animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
       box-shadow: 0 0 0 0 rgba(var(--accent-color), 0.5);
   }
   70% {
       box-shadow: 0 0 0 5px rgba(var(--accent-color), 0.2);
   }
   100% {
       box-shadow: 0 0 0 0 rgba(var(--accent-color), 0);
   }
}

.phone-button:hover {
background: linear-gradient(135deg, rgba(var(--secondary-color), 1), rgba(var(--primary-color), 1));
transform: translateY(-2px);
}

.phone-button a {
text-decoration: none;
color: rgba(var(--white-color), 1);
transition: color 0.3s ease;
}

.phone-button a:hover {
color: rgba(var(--accent-color), 1);
}

.phone-button:active {
transform: translateY(1px);
}

.icon-phone {
width: 1.5rem;
height: 1.5rem;
margin-bottom: -0.3rem;
}

.icon-phone:hover{
color: rgba(var(--white-color), 1); 
}

.title-h1 {
position: absolute;
left: 50%;
top: 20%;
transform: translate(-50%, -50%);
text-transform: capitalize;
}

.logo {
height: 90%;
position: absolute;
left: 50%;
top: 100%;
transform: translate(-50%, -50%);
z-index: 101;
}

.nav-bar {
width: 100%;
}

.nav-bar ul {
list-style: none;
display: flex;
justify-content: end;
margin: 0;
padding: 0;
}
  
.nav-bar li {
display: block;
position: relative; 
}
  
.nav-bar li a {
display: block;
position: relative;
text-transform: uppercase;
letter-spacing: 2px;
padding: 10px;
transition: all 0.8s ease-out;
}

.nav-bar li a::after {
content: '';
position: absolute;
width: 0;
height: 2px; 
bottom: 0;
left: 50%;
background-color: currentColor;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
transform: translateX(-50%);
}

.nav-bar li a:hover::after {
width: calc(100% - 16px); 
}

.nav-bar li a:hover {
color: rgba(var(--secondary-color), 1);
transition: color 0.5s ease-in-out;
}

/* Menu burger */
.burger-menu {
display: none;
}

.burger-line {
display: block;
width: 25px;
height: 3px;
margin: 5px 0;
background-color: rgba(var(--accent-color), 1);
transition: all 0.3s ease-in-out;
}

/* Animation des lignes du burger */
.burger-menu.active .burger-line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}
  
.burger-menu.active {
transform: rotate(90deg);
}

/*Bannière*/
.banner {
background-image: url(./img/img-infirmiere\ et\ patient.webp);
background-attachment: fixed;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
width: 100%;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
text-align: center;
padding-right: 15%;
animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.banner .titles-section {
width: 30rem;
}

.banner h2 {
color: rgba(var(--text-color), 1);
text-shadow: 0 0 5px #fff, 0 0 5px #fff;
text-transform: uppercase;
animation: slideInDown 1s ease-out;
}

.banner button {
cursor: pointer;
background: linear-gradient(135deg, rgba(var(--primary-color), 1), rgba(var(--accent-color), 1));
border: none;
border-radius: 8px;
padding: 1rem 2.5rem;
animation: pulse 2s infinite, slideInUp 1s ease-out;
transform: translateY(0);
transition: all 0.8s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner button:hover {
background: linear-gradient(135deg, rgba(var(--secondary-color), 1), rgba(var(--primary-color), 1));
transform: translateY(-2px);
}

.banner button a:hover {
color: rgba(var(--accent-color), 1);
transition: color 0.6s ease;
}   

.banner button:active {
transform: translateY(1px);
}
      
.banner a {
font-size: 1.5rem;
text-decoration: none;
color: rgba(var(--white-color), 1);
}
    
.scroll-arrow {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
cursor: pointer;
color: rgba(var(--accent-color), 1);
animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.scroll-arrow:hover {
    animation-play-state: paused;
    color: rgba(var(--secondary-color), 1);
}

/*Section About*/
.about-section{
max-width: 1200px;
margin: 0 auto;
}

.about-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5rem;
padding:40px 20px;
}

.about-cards .card {
animation: scaleIn 0.8s ease-out forwards;
opacity: 0;
transform: scale(0.8);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Délai différent pour chaque carte */
.about-cards .card:nth-child(1) {
animation-delay: 0.2s;
}

.about-cards .card:nth-child(2) {
animation-delay: 0.4s;
}

.about-cards .card:nth-child(3) {
animation-delay: 0.6s;
}

.card {
background: linear-gradient(
145deg,
rgba(var(--white-color), 1),
rgba(var(--secondary-color), 0.2)
);
backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 40px 20px;
gap: 20px;
transition: all 0.6s ease-in-out;
will-change: transform;
}

.card:hover {
background-color: rgba(var(--secondary-color), 1);
}
    
.about-intro {
display: flex;
align-items: center;
height: auto;
padding: 40px 20px;
gap: 5rem;  
}

.about-img {
flex: 1;
height: 80vh;
width: 50%;
border-radius: 8px;
}

.about-img img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
overflow: hidden;
border-radius: 8px;
}

.about-content {
max-width: 50%;
text-align: justify;
}

/*Section Services*/
.services-section {
position: relative;
padding: 40px 0;
background-image: url(./img/img-bg-services.webp);
background-attachment: fixed;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.card-content {
position: relative;
z-index: 2;
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}


.services-title {
text-align: center;
margin: 40px auto;
color: rgba(var(--accent-color), 1);
}

.services-grid {
width: 100%;
max-width: 90vw;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 40px 20px;
gap: 80px;
}

.service-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 24px;
border-radius: 8px;
background-position: center;
background-repeat: no-repeat;
background-size:cover;
width: 100%;
height: auto;

overflow: hidden;
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease-in-out;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card.is-visible {
opacity: 1;
transform: translateY(0);
}

.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(rgba(var(--white-color), 0.5), rgba(var(--secondary-color), 0.5));
z-index: 1;
}

.icon-container, .service-title, .service-description {
position: relative;
z-index: 2;
}

.service-card:hover {
transform: scale(1.05);
}

.icon-container {
padding: 20px;
border-radius: 50%;
background-color: rgba(var(--secondary-color), 1);
margin-bottom: 20px;
}

.icon-container img {
width: 35px;
height: 35px;
}

.service-title {
margin-bottom: 8px;
}

/* Section google maps */
.map-section {
background-color: rgba(var(--secondary-color), 0.5);
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-content: center;
align-items: center;
gap: 40px;
height: 100vh;
}

.bloc {
text-align: center;
}

.map {
width: 100%;
overflow: hidden;
}

.map iframe {
width: 100%;
max-width: 100%;
height: 450px;
transition: transform 0.6s ease-in-out;
}

.map iframe:hover {
transform: scale(1.05); 
}

.bloc-info {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
gap: 20px;
}

.bloc-info img{
width: 80px;
}

.bloc-info h4{
padding-top: 30px;
text-align: left;
}

/* Section infos */
.infos-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}

.infos-section h2 {
text-align: center;
color: rgba(var(--accent-color), 1);
}

.infos-bloc {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
gap: 40px;
max-width: 1200px;
}

.img-illlustration {
width: 200px;
margin-bottom: 40px;
position: relative;
left: 30%;
}

.infos-content{
display: flex;
flex-direction: row;
justify-content:start;
align-items: center;
text-align: justify;
gap: 20px;
}

.infos-content img{
height: 3rem;
}

.img-bloc {
background-image: url(./img/bloc-infos.webp);
background-position: center;
background-repeat: no-repeat;
background-size:cover;
width: 50%;
min-height: 80vh;
display: flex;
justify-content: center;
align-items: center;
padding: 40px 20px;
border-radius: 8px;
}

/* FAQ */
.faq-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 3rem;
margin-top: 80px;
max-width: 1200px;
}

.faq-item {
position: relative;
width: 80%;
box-sizing: border-box;
max-width: 1200px;
margin: 0 auto; 
padding: 40px;
box-sizing: border-box;
display: flex;
gap: 40px;
align-items: center;
background: linear-gradient(
90deg,
rgba(var(--white-color), 1),
rgba(var(--secondary-color), 0.2)
);
}

.faq-item:hover {
background-color: rgba(var(--secondary-color), 1);
}

.faq-image {
width: 250px;
height: 250px;
flex-shrink: 0;
border-radius: 8px;
overflow: hidden;
}

.faq-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.faq-content {
flex: 1;
text-align: justify;
}

/* Les blocs pairs sont décalés à droite */
.faq-item:nth-child(even) {
margin-left: 20%;
}

/* Les blocs impairs sont décalés à gauche */
.faq-item:nth-child(odd) {
margin-right: 20%;
}

/* Animation pour les blocs de gauche */
.slide-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

/* Animation pour les blocs de droite */
.slide-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

/* Classe active commune pour les deux animations */
.slide-from-left.active,
.slide-from-right.active {
opacity: 1;
transform: translateX(0);
}


footer {
background-color: rgba(var(--accent-color), 1);
padding: 20px 0;
text-align: center;
color: rgba(var(--white-color), 1);
}

footer p {
margin-bottom: 0.2rem;
}

footer a {
color: rgba(var(--white-color), 1);
}
  
footer a:hover {
color: rgba(var(--secondary-color), 1);
transition: transform 1.2s ease-out;
}

.back-to-top {
position: fixed;
bottom: 40px;
right: 40px;
background: linear-gradient(135deg, rgba(var(--background-color-soft), 1), rgba(var(--accent-color), 1));
color: rgba(var(--white-color), 1);
width: 45px;
height: 45px;
border-radius: 50%;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: all 0.3s ease;
z-index: 1000;
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.back-to-top:hover {
background: linear-gradient(135deg, rgba(var(--secondary-color), 1), rgba(var(--primary-color), 1));
transform: translateY(-3px);
}

/*Bannière Cookies RGPD */
.cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(var(--secondary-color), 0.95);
color: rgba(var(--text-color), 1);
padding: 20px;
z-index: 9999;
display: none;
transform: translateY(100%);
transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
display: block;
transform: translateY(0);
}

.cookie-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}

.cookie-content p {
margin: 0;
flex: 1;
min-width: 300px;
}

.cookie-buttons {
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
}

.cookie-button {
padding: 8px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}

.cookie-button.accept {
background: rgba(var(--primary-color), 1);
color: rgba(var(--white-color), 1);
}

.cookie-link {
color: rgba(var(--accent-color), 1);
text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}


/*Animations */
/* Animation scale-animation */
.scale-animation {
opacity: 0;
transform: scale(0.95);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-animation.is-visible {
opacity: 1;
transform: scale(1);
}

/* Animation de révélation au scroll */
.reveal-on-scroll {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
opacity: 1;
transform: translateY(0);
}


/* Menu Burger et Header Responsive Tablette et Mobile */
@media only screen and (max-width: 1024px) {
h1 {
font-size: 1.5rem;
 }
        
h2,h3, h4 {
font-size: 1.5rem;
}
        
h5, h6, p {
font-size: 1rem;
}

/* Header */
header {
grid-template-columns: 1fr 1fr 1fr;
}
    
.title-h1 {
text-align: center;
top: 40%;
}

.phone-button {
text-align: end;
padding: 0.5rem 0.5rem;
max-width: 150px;
max-height: 70px;
}

.burger-menu {
display: block;
position: absolute;
top: 30px;
right: 30px;
font-size: 2rem;
cursor: pointer;
z-index: 100;
transition: transform 0.3s ease;
background: transparent;
border: none;
padding: 10px; 
}

.burger-menu.active {
transform: rotate(90deg);
}
      
/* Masquer le menu de navigation */
.nav-bar {
display: none;
flex-direction: column;
position: absolute;
top: 100px;
left: 0;
width: 100%;
margin: 0;
padding: 0;
background-color: rgba(var(--secondary-color), 1);
z-index: 100;
overflow: hidden;
max-height: 0;
transform: translateY(-100%);
transition: transform 0.3s ease, opacity 0.3s ease;
opacity: 0;
}
   
/* Afficher le menu de navigation lorsqu'il est actif*/
.nav-bar.active {
display: block;
max-height: fit-content;
padding-top: 30px;
transform: translateY(0);
    opacity: 1;
}

.nav-bar ul {
flex-direction: column;
}

.nav-bar ul li {
width: 100%;
text-align: center;
margin: 0;
opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nav-bar.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.nav-bar li a {
display: block;
width: 100%;
padding: 15px 0;
text-align: center;
position: relative;
}

.nav-bar li a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 5px;
left: 50%;
background-color: rgba(var(--accent-color), 1);
transform: translateX(-50%);
transition: width 0.6s ease;
}

.nav-bar li a:hover::after {
width: 30%;
}

/* Délai d'animation pour chaque lien */
.nav-bar ul li:nth-child(1) { transition-delay: 0.1s; }
.nav-bar ul li:nth-child(2) { transition-delay: 0.2s; }
.nav-bar ul li:nth-child(3) { transition-delay: 0.3s; }
.nav-bar ul li:nth-child(4) { transition-delay: 0.4s; }
}


/* Affichage Tablette*/
@media only screen and (max-width: 768px){
.phone-button {
text-align:center;
width: fit-content;
}
 
.about-section,
.about-cards,
.about-intro,
.services-section,
.about-cards
.map-section,
.infos-section,
.faq-container {
padding: 20px 10px;
}

.about-section{
display: flex;
flex-direction: column;
margin: 0 auto;
}
    
.about-cards {
grid-template-columns: 1fr;
gap: 1rem;
width: 100%;
}
    
.card {
max-width: 50%;
margin: 0 auto;
}
        
.about-intro {
display: grid;
grid-template-columns: 1fr;
gap: 2rem; 
}
        
.about-img {
width: 100%;
height: 50vh;
margin: 0 auto;
}

.about-content {
max-width: 100%;
}

.services-grid {
width: 100%;
grid-template-columns: 1fr;
gap: 30px;
padding: 20px;
}

.map-section {
grid-template-columns: 1fr;
height: auto;
}

.map {
height: 450px;
}

.bloc-info {
flex-direction: column;
justify-content: center;
gap: 5px;
}
    
.bloc-info img{
width: 50px;
}
    
.bloc-info h4{
padding-top: 10px;
text-align: center;
}

.infos-bloc {
flex-direction: column;
margin: 0 20px;;
}

.img-bloc {
width: 100%;
max-width: 100vw;
min-height: 50vh;
}

.img-illlustration {
left: 33%;
}

.faq-container {
margin-top: 40px;
}

.faq-item {
width: 90%;
flex-direction: column;
padding: 20px;
}

.faq-image {
width: 50%;
height: 200px;
}

.faq-item:nth-child(even) {
margin-left: 0%;
}
    
.faq-item:nth-child(odd) {
margin-right: 0%;
}
}

/* Affichage Mobile */
@media only screen and (max-width: 425px) {
h2,h3, h4 {
font-size: 1.3rem;
}
                
h5, h6, p {
font-size: 1rem;
}

header {
grid-template-columns: 2fr 1fr 1fr;
justify-content: space-around;
}

.title-h1 {
position: absolute;
left: 60%;
top: 50%;
}

.phone-button {
gap: 1rem;
padding: 0.5rem 0rem;
width: 130px;
}

.icon-phone {
width: 1rem;
height: 1rem;
margin-bottom: -0.1rem;
}

.phone-button a {
font-size: 0.8rem;
}

.title-h1 {
font-size: 1.1rem;
text-align: end;
}

.logo {
height: 70%;
z-index: 101;
}

.banner {
justify-content: center;
align-items: center;
text-align: center;
padding: 5%;

}
.banner h2 {
text-align: center;
}   
  
.banner button {
padding: 1rem;
text-align: center;
}
      
.about-cards {
gap: 2rem;
}
        
.card {
max-width: 100%;
}

.service-card {
padding: 20px;
height: auto; 
}

.img-illlustration {
left: 5%;
}

.infos-content{
flex-direction: column;
gap: 10px;
}

.infos-content img {
width: 2rem;
}

.img-bloc {
width: 100%;
min-height: 50vh;
padding: 20px 10px;
}
    
.faq-container {
margin: 20px;
}
    
.faq-item {
width: 100%;
padding: 20px;
}
    
.faq-image {
width: 100%;
}

}


