:root {
  --font-sans: "Figtree", sans-serif;
  --font-serif: "Crimson Text", serif;
  --main-color :#3e66a8;
  --title-color :#191c8d;
  --whale-color: #5c8bd5;
  --a-hover-color: #cd693e;
  --background-boxes:#fbf6f3;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size:16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color:white;
    /*background-image: url("/assets/img/background.jpg");
    background-repeat: repeat;
    background-position: 0 0;
    overflow-x: hidden;*/
}

a {
  text-decoration: none;
  color:var(--whale-color)
}

a:visited {
  color:var(--whale-color)
}

p {
  font-family:var(--font-sans);
  font-size:16px;
  margin:0;
  color:var(--main-color);
  font-weight:400;
}

p.center {
  text-align:center;
}

li {
  font-family:var(--font-sans);
  font-size:16px;
  margin:0;
  color:var(--main-color);
  font-weight:400;
}

/******************************************
**            HEADER                     **
******************************************/

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  background: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

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

#logo-container {
  margin-top:-10px;
  height: 100px;
  display:block;
}

#logo-container img{
  height: 100%;
}

#menu-container {
  display: flex;
  gap: 15px;
}

#menu-container ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap:15px;
}

#menu-container li{
    list-style: none;
    width:100px;
    text-align: center;
    white-space: nowrap;
    width: auto;
}

.menu-link, .menu-link:visited {
  position: relative;
  color: var(--main-color);
  text-decoration: none;
  font-weight:500;
  transition: color 0.2s, text-shadow 0.2s;
}

.menu-link.active {
  text-shadow: 0 0 1px var(--main-color);
}

.menu-link:hover {
  color:var(--a-hover-color);
  text-shadow: 0 0 1px var(--a-hover-color);
}



.menu-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--title-color);
  transition: width 0.3s ease;
}

.menu-link.active::after {
  width: 40px;
}

#lang-switch {
  display: flex;
  gap:10px;
  align-items: center;
}

#lang-switch img {
  width:24px;
}

#burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--main-color);
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  gap: 4px;
}

#burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: white;
  border-radius: 1px;      /* coins arrondis */
  transition: all 0.3s ease;
}

#burger:hover span {
  background-color: var(--a-hover-color);
}

#burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
  height: 2.5px;
}

#burger.active span:nth-child(2) {
  opacity:0;
}

#burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
  height: 2.8px;
}

/* Responsive: stack logo + title on narrow screens */
@media (max-width: 1000px) {
  #menu-container {
    display: flex;
    position: absolute;
    top: 120px;
    right: -220px;
    height: calc(100vh - 80px);
    width: 200px;
    flex-direction: column;
    align-items: center;
    background: white;
    border-left: 1px solid #ddd;
    box-shadow: 0 6px 6px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 20;
  }

  #menu-container.active {
    right:0;
  }

  #menu-container ul {
    margin-top:20px;
    flex-direction: column;
  }

  #burger {
    display: flex; 
  }
}

/* Responsive: stack logo + title on narrow screens */
@media (max-width: 768px) { 
  header {
    height: 80px;
  }

  #menu-container {
    top: 80px;
  }
  
  #logo-container {
    height: 70px;
    margin-top:-5px;
  }

  #title {
    font-size: 22px;
  }

  #subtitle {
    font-size: 14px;
  }
}


#tracker {
  position: fixed;
  left: 0;
  width: 100%;
  height: 1px;
  top: 121px;
  background: transparent;
  pointer-events: none;
  z-index: 300;
}

/******************************************
**            CONTENT                    **
******************************************/

#main-content {
  margin-top:120px;
  min-height: calc(100vh - 120px);
}

section {
  position:relative;
  scroll-margin-top: 120px;
  padding-left:30px;
  padding-right:30px;
  display: flow-root;
}

.section-separator {
  height:150px;
  display: block;
  margin-left:auto;
  margin-right:auto;
  margin-top:20px;
  margin-bottom:20px;
}

.content {
  margin-left:auto;
  margin-right:auto;
  max-width: 1100px;
}

#main-content h1 {
  font-family: var(--font-serif);
  font-size:36px;
  font-weight:600;
  color: var(--title-color);
  text-align:center;
}

#main-content h2 {
  font-family: var(--font-serif);
  font-size:30;
  font-weight:400;
  color:var(--title-color);
  text-align:center;
}

/************* HOME section ***************/

#home{
  background-color:#195094;
}

#home-image {
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  width:100vw;
  height:550px;
  object-fit: cover;
  object-position: 25% 40%;
}

#home-image img {
  height:100%;
  width:100%;
  object-fit: cover;
  object-position: 70% 40%;
}

#home-image::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 100px; /* hauteur du dégradé */
  background: linear-gradient(to top, #195094, transparent);
  pointer-events: none; /* laisse passer la souris */
}

#home-header {
  height:550px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap:10%;
}

#home-title {
  flex: 0 0 45%; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; 
  text-align: left;
}

#home-logo {
  flex: 0 0 45%;
  max-height:87%;
  display:flex;
  align-items: flex-end;
}

#home-logo img {
  max-height:70%;
  width:100%;
}

#home-title-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size:50px;
  color:white;
}

#home-title-scope {
  font-family: var(--font-serif);
  font-size:28px;
  font-weight: 600;
  color:white;
}

#home-title-slogan {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  color:white;
  margin-top: 20px;
}

#appointment{
  display:block;
  height:38px;
  margin-top:40px;
  background-color:white;
  border-radius:25px;
  font-size: 15px;
  color:var(--main-color);
  padding-top:18px;
  padding-left:30px;
  padding-right:30px;
  transition: color 0.2s ease;
}

#appointment:hover{
 color:var(--a-hover-color);
}

#home-intro {
  padding-bottom:60px;
}

#home-intro h1 {
  font-family: var(--font-serif);
  font-size:36px;
  font-weight: 400;
  color: white;
  text-align:left;
  margin-bottom:30px;
}

#home-intro p {
  font-family: var(--font-serif);
  color: white;
}

#home-intro p + p {
  margin-top:15px;
}


/************* SERVICE section ***************/

#services{
  margin-top:50px;
}

#services h2 {
  margin-top:-15px;
}

.boxes-container-services {
  margin-top:50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap:20px;
}

.list-boxed{
  color:var(--main-color);
  font-family: var(--font-serif);
  background-color:var(--background-boxes);
  padding:20px 10px 20px 25px;
  margin:0;
}

.list-boxed li {
  margin-bottom:5px;
  font-size:16px;
}


/************* COCORICO section ***************/


#cocorico{
  margin-top:90px;
  background-color:#e6eaf3;
  padding-bottom:60px;
}

#cocorico div.content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: left;
  gap:60px;
}

#cocorico-text{
  flex: 0 0 55%; 
  padding-top:60px;
}

#cocorico-logo{
  flex: 0 0 35%;
  max-height:87%;
  display:flex;
  align-items: center;
}

#cocorico-logo img {
  max-height:70%;
  width:100%;
}

#cocorico h1 {
  margin:0;
  margin-top:-10px;
  text-align:left;
}
#cocorico p{
  margin-top:16px;
  color:var(--main-color);
}

#cocorico ul {
  padding-left:25px;
}


#cocorico li {
  color:var(--main-color);
}

/************* MY APPROACH section ***************/

.boxes-container-myapproach {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: stretch;
  margin-top:30px;
  margin-bottom:40px;
}

.box-myapproach {
  flex: 0 0 calc((100% - 80px) / 3);
  box-sizing: border-box;
  background-color:var(--background-boxes);
  padding: 0 30px 30px;
}

#myapproach p {
  width:80%;
  margin-left:auto;
  margin-right:auto;
  margin-top:15px;
}

#myapproach h2 {
  margin-top:5px;
  margin-bottom:5px;
}

#myapproach ul {
  display: flex;
  flex-direction: row;
  gap: 30px;
  list-style: none;
  margin: 0;
  margin-top:30px;
  margin-bottom:30px;
  padding: 0;
  flex-wrap: nowrap;
}

#myapproach ul li {
  flex: 0 0 calc((100% - 90px) / 4);
  box-sizing: border-box;
  display: block;
  color:var(--title-color);
  font-family: var(--font-serif);
  text-align:center;
  font-size:16px;
}


p#myapproach-whale {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url("/assets/img/WBC-logo-whale.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    padding: 40px 0 120px 0;
    color: var(--title-color);
    font-family: var(--font-serif);
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width:100%;
  }


/************* PROFIL section ***************/

#aboutme {
  margin-top:90px;
  background-color:var(--background-boxes);
}

#aboutme div.content{
  margin-bottom:40px;
}

#profil-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 100px;
  justify-content: space-between;
  align-items: stretch;
  margin-top:30px;
  margin-bottom:40px;
}

#profil-text-container {
  flex: 0 0 calc(100% - 450px);
}

#profil-photo-container {
  flex: 0 0 350px;
}

#profil-container h1 {
  text-align:left;
}

#photo-profil{
  width:250px;
  float:left;
  margin-top:20px;
  border-radius: 10px;
  box-shadow: 150px 40px 0px var(--main-color);
}

#breath-profil{
  position:relative;
  left:-100px;
  top:-100px;
  width:220px;
}

#aboutme p {
  margin-top:15px;
}



/************* VALUES section ***************/

#values p {
  margin-top:15px;
}

/************* FEES section ***************/


#fees {
  margin-top:60px;
  background-color:var(--main-color);
}

#fees div.content{
  margin-bottom:40px;
}

#fees h1, #fees h2, #fees p, #fees li {
  color:white;
}

#fees p {
  margin-top:25px;
  text-align:center;
}

/************* CONTACT section ***************/

#contact {
  margin-top:0;
  padding-bottom:40px;
}

#contact::before {
  content:"";
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  height:100%;
  width:100vw;
  background-color:#588ee520;
  z-index:-1;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 600px;
  margin-top: 1rem;
  margin-right:auto;
  margin-left:auto;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 500;
  color: inherit;
}

.label-text {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.label-text span {
  color: var(--accent-color, #d32f2f);
  margin-left: 0.25rem;
}
#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 0.2rem 0;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: none;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-bottom-color: var(--whale-color);
  box-shadow: 0 1px 0 0 var(--whale-color);
}

#contact-form .name-phone {
  display: flex;
  gap: 1.5rem;
}

#contact-form .name-phone label {
  flex: 1;
}

#contact-form textarea {
  min-height: 8em;
  max-height: 8em;
  overflow-y: auto;
}

#contact-form button {
  align-self: flex-start;
  background-color: var(--whale-color);
  color: white;
  border: none;
  border-radius: 23px;
  height:46px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#contact-form button:hover {
  background-color: var(--whale-color);
}

/* === STATUS MESSAGE === */
.form-status {
  font-size: 0.9rem;
  color: var(--text-muted, #555);
  margin-top: 0.5rem;
}

q {
  quotes: "\"" "\"";
  font-style:italic;
}

@media (max-width: 1200px) {
  #home-image {
    height:450px;
  }

  #home-header {
    height:450px;
    gap:4%;
  }


  #home-title {
    flex: 0 0 48%; 
  }
  
  #home-logo {
    flex: 0 0 48%;
  }

  #home-logo img {
    max-height:70%;
    width:100%;
  }
  
  #home-title-name {
    font-size:40px;
  }
  
  #home-title-scope {
    font-size:22px;
  }
  
  #home-title-slogan {
    font-size: 18px;
  }

  .box-myapproach {
    flex: 0 0 calc((100% - 40px) / 2); /* two columns on medium screens */
  }

  #photo-profil{
    width:200px;
    box-shadow: 110px 30px 0px var(--main-color);
  }

  #breath-profil{
    left:-90px;
    top:-50px;
    width:180px;
  }

}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 80px;
    margin-top:20px;
  }

  .section-separator {
    height:100px;
  }

  #main-content {
    margin-top:80px;
  }

  #home-image {
    height:350px;
  }

  #home-header {
    height:350px;
  }

  #home-title {
    flex: 0 0 100%; 
  }
  
  #home-logo {
    display:none;
  }

  #home-title-name {
    font-size:35px;
  }
  
  #home-title-scope {
    font-size:20px;
  }
  
  #home-title-slogan {
    font-size: 18px;
  }

  .boxes-container-services{
    grid-template-columns: repeat(2, 1fr);
  }

  #cocorico div.content {
    flex-direction: column;
  }

  #cocorico-text{
    padding-bottom:0px;
  }
  
  #cocorico-logo{
    display: flex;
    justify-content: center;
    align-items: center; 
  }
  
  #cocorico-logo img {
    width:60%;
  }

  .box-myapproach {
    flex: 0 0 100%; /* two columns on medium screens */
  }

  #myapproach ul {
    flex-direction: column;
    align-items: center;
  }
  
  #myapproach ul li {
    width: 100%;
    text-align: center;
    flex: none;
  }

  p#myapproach-whale {
    padding: 30px 0px 90px 0px;
    background-size: auto 90%;
  }

  #profil-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    margin-top:30px;
    margin-bottom:40px;
  }
  
  #profil-text-container {
    flex: 0 0 100%;
  }
  
  #profil-photo-container {
    flex: 0 0 100%;
    padding-right:150px;
  }

  #photo-profil{
    display: block;
    margin: 20px auto; /* centre horizontalement */
    width: 200px;
    max-width: 100%;
    height: auto;
    float: none; /* annule le float précédent */
  }

  #breath-profil{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: -60px;
    width:200px;
  }

  #contact-form {
    width: 100%;
  }

  #phone {
    width: 150px;
  }
}

/******************************************
**            FOOTER                     **
******************************************/

footer {
  padding:0;
  margin:0;
  text-align: center;
  color: #777;
  font-size: 14px;
  align-items: center;
  background-color:white;
  border-top:#3e66a8 1px solid;
  
}

footer p{
  padding:0;
  margin:3px;
  text-align: center;
}

#tail {
  display:block;
  position:absolute;
  right:100px;
  margin:0;
  margin-top:-122px;
  width:170px;
  height:121px;
}

@media (max-width: 1200px) {
  #tail {
    right:80px;
    margin-top:-86px;
    width:119px;
    height:85px;
  }
}

@media (max-width:768px) {
  #tail {
    right:20px;
    margin-top:-61px;
    width:83px;
    height:60px;
  }
}