:root {
  --title-color :#3e66a8;
  --whale-color: #5c8bd5;
  --a-hover-color: #cd693e;
}

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

body {
    margin: 0;
    font-family: 'Nunito', Arial, sans-serif;
    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 {
  text-align:justify;
}

p.center {
  text-align:center;
}

/******************************************
**            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-title-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap:15px;
}

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

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

.title-container {
  display: flex;
  flex-direction: column;
  margin-top:10px;

}

#title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  color: var(--title-color);
  font-variant: small-caps;
}

#title::first-letter {
  font-variant: normal;
}

#title span {
  display: block;
  margin: 0;
  line-height: 0.9;
  padding: 0;
}

#subtitle {
  font-weight: 600;
  font-size: 18px;
  color: var(--title-color);
  margin: 0;
  padding: 0;
}

#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-container a {
  color: var(--whale-color);
  text-decoration: none;
}

#menu-container a:hover, #menu-container a:active {
  color: var(--a-hover-color);
}

.menu-link.active {
  border-bottom: 2px solid var(--whale-color);
}

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

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

#burger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color:var(--whale-color)
}

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

/* Responsive: stack logo + title on narrow screens */
@media (max-width: 1200px) {
  #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: block; 
  }
}

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

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

  #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                    **
******************************************/

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

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

#main-content {
  margin-top:120px;
  margin-left:auto;
  margin-right:auto;
  max-width: 1100px;
  min-height: calc(100vh - 120px);
}

#main-content h1 {
  font-size:20px;
  color: var(--title-color);
  text-align:center;
}

#main-content h2 {
  font-size:18px;
  color: var(--title-color);
  text-align:center;
}

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

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

#home-image-filter {
  position:absolute;
  top:0;
  left:0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.55);
}

#home-title {
  height:400px;
  color: white;
  display: flex;
  flex-direction: column;       /* empile les enfants verticalement */
  justify-content:center;      /* centre verticalement */
}

#home-title-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size:32px;
  font-variant: small-caps;
  color:#2c4978;
}

#home-title-scope {
  font-size:24px;
  font-weight: 600;
  color:#2c4978;
  margin-bottom:40px;
}

#home-intro {
  background-color:#3e66a8;
  color:white;
  padding:15px;
  margin-left:200px;
  margin-top:-80px;
  border-radius: 10px;
  font-style:italic;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

#home-intro p {
  margin:0;
}

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

#home{
  margin-bottom:20px;
}

#services ul, #cocorico ul, #myapproach ul, #values ul{
  position: relative; 
  left:50%;
  transform: translateX(-200px);
  padding-left: 80px; 
  min-height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  list-style: none;
}

#services ul::before, #cocorico ul::before, #myapproach ul::before, #values ul::before {
  content:"";
  display:block;
  position:absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 31px;
  background-image: url("/assets/img/wave.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#profil{
  width:250px;
  float:right;
  margin-top:20px;
  margin-left:20px;
  margin-right:20px;
  margin-bottom:15px;
  border-radius: 10px;
  box-shadow: 20px -20px 0px var(--title-color);
}

#contact {
  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: var(--whale-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#contact-form button:hover {
  background: 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:260px;
  }

  #home-title {
    height:260px;
  }

  #home-title-name {
    font-size:28px;
  }
  
  #home-title-scope {
    font-size:20px;
  }

  #home-intro {
    margin-left:120px;
    margin-top:-40px;
  }

  #profil{
    width:200px;
  }
}

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

  .section-separator {
    height:100px;
  }

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

  #home-image {
    height:220px;
  }

  #home-title {
    height:220px;
  }

  #home-title-name {
    font-size:24px;
  }
  
  #home-title-scope {
    font-size:18px;
  }

  #home-intro {
    margin-left:60px;
    margin-top:-40px;
  }

  #profil{
    width:150px;
  }

  #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;
  }
}