:root{
  --clr: #5E8F1;
  --header-h: 64px;
  --container-pad: 1rem;
  --card-bg: rgba(255,255,255,0.85);
  --text: #222;
  font-synthesis: none;
}

*,
*::before,
*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{font-size: 16px;}
body{
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.45;
  background: #dedede;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 600;
  background: #fff;
  border-bottom: 1px solid #eee;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-nav{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand{
  font-weight: 700;
  color: #333;
  text-decoration: none;
  font-size: 1.05rem;
}

.hamburger{
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

p {margin-bottom: 1rem;}

h2 {
  text-shadow: 5px 5px 10px #999, -5px -5px 10px #eee;
}

.menu{
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btnMnu{
  color: #555;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  font-size: calc(0.85rem + 0.2vw);
  border-radius: .3rem;
}

/* main layout */
main{
  width: 100%;
  flex: 1 0 auto;
}

.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem var(--container-pad);
}

/* hero images */
.img{
  width: 100%;
  height: 40vh;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-img{ background-image: url('./img/rouquine.jpg'); }
.methode-img{ background-image: url('./img/garcon.jpg'); background-position: center 27%;}
.about-img{ background-image: url('./img/jaune.jpg'); }
.contact-img{ background-image: url('./img/adultes2.jpg'); }

/* pub box */
/* .pub{
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0.75rem;
  max-width: 34ch;
  border-radius: 8px;
} */
.pub {
  max-width: 20ch;
  font-size: 1.4rem;
  padding: 1rem;
  color: #fff;
  background-color: #00000089;
}
ul {margin-left: 2rem;}

/* cards and grids */
.symptoms-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.symptom-card{
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
}

/* triptik cards */
.triptik{
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
}

h2 {padding-top: 2rem;}

.card {
    position: relative;
    height: 250px;
    width: 250px;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 1rem;
}

.movable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.imgDeroulant {
    width: 60%;
    height: 60%;
    margin: 40px auto 20px;
    display: block;
    transition: all 0.4s ease;
}

.p-trip {
   /* font-size: 1.1em; */
   line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding: 0 20px;
    font-weight: 500;
}

.text-block {
  font-weight: 600;
  font-size: 1.05rem;
  font-size: 1rem;
  margin-block: 3rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #fff;
}

.two-colums {margin-top: 2rem; column-count: 2;gap: 3rem;font-weight: 500;background-color: #ffffff8d;padding: 1rem;
}

.fixed-title {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.card:hover .movable {
    transform: translateY(-20px);
}

.card:hover .imgDeroulant {
    width: 50px;
    height: 50px;
    margin-top: 30px;
}

.card:hover .p-trip {
    opacity: 1;
    transform: translateY(0);
}
/* about portrait */
.pedigree{ display: flex; flex-direction: column; gap: 1rem; }
.portrait{ display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items:center; }
.cadre{ width:120px; height:150px; overflow:hidden; border:4px solid rgba(0,0,0,0.55); transform: rotate(-6deg); transition: transform .4s; }
.cadre img{ width:100%; height: auto; transform: rotate(6deg); transition: transform .4s; }

/* form */
form input, form textarea { width: 100%; padding: 0.6rem; border-radius: 6px; border: 1px solid #bbb; font-size: 1rem; }
.frm-grp{ margin-bottom: 0.9rem; display:flex; flex-direction:column; gap:0.4rem; }
.btn{font-size: 1rem; display:inline-block; padding: 0.7rem 1rem; border-radius: 8px; border: none; cursor: pointer; background: #f5f1e8;width: 100%;box-shadow: 2px 2px 3px rgba(0,0,0,0.2);transition:box-shadow .3s ease; }
.btn:hover{box-shadow:2px 2px 2px rgba(0,0,0,0.4) inset; translate: 2px -2px;font-size: 0.99rem;}
.btn-primary{ background: var(--clr); color: #fff; }

/* details accordion */
h6 {padding-bottom: 1rem;}

dl {font-size: 18px;margin-bottom: 0.5rem;}
dt {font-weight: bold;}
dt::before {content: url('./img/oki.png');padding-right: 3rem;}
dd {padding-left: 4.4rem;margin-bottom: 0.5rem;font-weight: 500;} 


.details {
  width: 100%;
  border: 1px solid gray;
  background-color: #fff;
  border-radius: 1rem;
  padding: 1rem 1rem 0;
  margin-bottom: 1rem;
}

.details-label {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  translate: 0 -3px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.details-label::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.details.active .details-label::after {
  transform: rotate(180deg);
}

.details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  display: none;
  font-weight: 500;
}

.details.active .details-content {
  max-height: 500px; /* Hauteur maximale suffisante */
  display: block;
}

.pedigree {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2rem;
}

/********************** kisuije */
.cadre {
  width: 150px;
  height: 160px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s;
  border: 5px solid #00000089;
  transform: rotate(-9deg) translateY(-8px);
  margin-bottom: 1rem;
}

.cadre img {
  width: 100%;
  height: auto;
  transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
  transform: rotate(9deg);
}

#kisuije article:hover .cadre {
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
  transform: rotate(0);
  border-radius: 0.5rem;
  -webkit-box-shadow: 5px 5px 15px #666;
  box-shadow: 5px 5px 15px #666;
}

#kisuije article:hover img {
  /* Au survol, garder l'image verticale */
  -webkit-transform: rotate(0) scale(1.25);
  -ms-transform: rotate(0) scale(1.25);
  transform: rotate(0) scale(1.25);
}
#kisuije .img {
  background: #dedede url("./img/jaune.jpg") center no-repeat;
  background-size: cover;
}

.vert {background-color: #9CAF88; color: white;}

.hours {
  padding: 1rem;border-radius: .5rem
  ;
}

.portrait {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}


/* footer */
.footer{ padding: 1rem 0; margin-top: 2rem; }
.footer-inner{ display:flex; gap:2rem; justify-content: space-between; align-items: flex-start; }
.footer .col{ flex:1; min-width:200px; }
.footer a{ color:inherit; text-decoration: underline; }

/* small screens */
@media (max-width: 900px){
  .symptoms-grid{ grid-template-columns: 1fr; }
  .triptik{ gap: 0.75rem; }
  .card{ width: 100%; min-width: auto; }
  .menu{ display: none; }
  .hamburger{ display: inline-block; }
  .menu.open{ display: flex; flex-direction: column; position: absolute; top: 64px; right: 1rem; background: #fff; padding: 0.5rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
  .site-nav{ align-items: center; }
  .hero-img{ min-height: 180px; }
  .img{ height: 30vh; min-height: 140px; }
  .portrait{ grid-template-columns: 1fr; grid-auto-rows: auto; align-items:center; }
}

/* very small */
@media (max-width: 420px){
  html{ font-size: 15px; }
  .pub{ max-width: 30ch; font-size: .95rem; }
  .brand{ font-size: 1rem; }
  .fixed-title{ font-size: 1rem; }
  .details-label{ font-size: 0.95rem; }
}
