/* ==========================================================================
   Déclaration de la police 
   ========================================================================== */
@font-face {
  font-family: "DermaozFont";
  src: url("/wp-content/themes/dermaoz-wordpress/fonts/MelodySouthernRegular.woff2")
      format("woff2"),
    url("/wp-content/themes/dermaoz-wordpress/fonts/MelodySouthernRegular.woff")
      format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  letter-spacing: 0.16em;
}

:root {
  --cream: #fbf7f2;
  --paper: #fffdf9;
  --terr: #a65335;
  --terr2: #bc6a45;
  --brown: #3d2118;
  --ink: #27201d;
  --line: #d7b7a5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  width: min(1180px, 94%);
  margin: auto;
}
.top {
  background: #fffaf5;
  position: relative;
  overflow: hidden;
}
.top:before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: -75px;
  top: -92px;
  border: 7px double var(--terr);
  border-radius: 50%;
  box-shadow: 0 0 0 14px #fffaf5, 0 0 0 20px var(--terr), 0 0 0 34px #fffaf5,
    0 0 0 40px var(--terr);
}
.brandrow {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 20px;
}
.brand {
  text-align: center;
}
.brand img {
  width: 440px;
  max-width: 100%;
  margin: auto;
}
.contact-mini {
  font-size: 15px;
  line-height: 2;
}
.contact-mini b {
  color: var(--terr);
  display: inline-block;
  width: 24px;
}
.nav {
  background: #f8eee7;
  border-top: 1px solid #eadbd1;
  border-bottom: 1px solid #eadbd1;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 58px;
  font-size: 14px;
}
.nav a:hover,
.nav a.active {
  color: var(--terr);
  border-bottom: 2px solid var(--terr);
}
.drop {
  position: relative;
}
.dropmenu {
  display: none;
  position: absolute;
  z-index: 20;
  top: 28px;
  left: -18px;
  background: #fff;
  padding: 12px 18px;
  min-width: 245px;
  box-shadow: 0 12px 30px #0002;
}
.drop:hover .dropmenu {
  display: grid;
  gap: 9px;
}
.menuBtn {
  display: none;
}
.hero {
  min-height: 520px;
  background: linear-gradient(90deg, #efe0d5 0 43%, transparent 64%),
    url("../images/hero-sandra.jpg") center right/62% 100% no-repeat;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -100px;
  bottom: -70px;
  border: 7px solid var(--terr);
  border-radius: 50%;
  box-shadow: 0 0 0 13px #ead7ca, 0 0 0 20px var(--terr), 0 0 0 33px #ead7ca,
    0 0 0 40px var(--terr);
}
.heroText {
  padding: 62px 0 50px;
  width: 47%;
  position: relative;
  z-index: 2;
}
.eyebrow {
  letter-spacing: 0.32em;
  color: var(--terr);
  font-size: 18px;
}
.hero h1,
.pageHero h1 {
  font: 900 44px/1.06 "DermaozFont", Georgia, serif;
  color: var(--brown);
  margin: 12px 0 24px;
  letter-spacing: 0.26em;
}
.tag {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  max-width: 420px;
}
.btn {
  display: inline-block;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--terr), #c66d3e);
  color: white;
  padding: 14px 28px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.section {
  padding: 42px 0;
}
.sectionTitle {
  text-align: center;
  font: normal 30px "DermaozFont", Georgia, serif;
  letter-spacing: 0.12em;
  margin: 0 0 28px;
}
.sectionTitle:before,
.sectionTitle:after {
  content: "";
  display: inline-block;
  width: 120px;
  border-top: 1px solid var(--terr);
  vertical-align: middle;
  margin: 0 25px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  background: #fffaf6;
  border: 1px solid #f0e2d9;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.card .pad {
  padding: 16px 18px;
  min-height: 190px;
}
.card h3 {
  font: normal 18px "DermaozFont", Georgia, serif;
  color: #8f432d;
  margin: 0 0 10px;
}
.card ul {
  margin: 0;
  padding-left: 18px;
}
.more {
  margin-top: auto;
  padding: 0 18px 18px;
  color: var(--terr);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.why {
  background: #fbf5ef;
}
.whygrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 28px;
}
.why .ico {
  width: 58px;
  height: 58px;
  border: 1px solid var(--terr);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  color: var(--terr);
  font-size: 28px;
}
.why h3 {
  font: normal 16px "DermaozFont", Georgia, serif;
  text-transform: uppercase;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #fff;
}
.about img {
  height: 100%;
  object-fit: cover;
}
.about .copy {
  padding: 50px;
}
.about h2 {
  font: 900 38px "DermaozFont", Georgia, serif;
  color: var(--terr);
}
.quote {
  font: italic 25px Georgia, serif;
  color: var(--terr);
  margin: 25px 0;
}
.footerTop {
  background: linear-gradient(100deg, #9c492f, #bd6b48);
  color: white;
}
.footerGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 30px 0;
  text-align: center;
}
.footer {
  background: #fff9f4;
  padding: 30px 0 18px;
}
.footer .logo {
  width: 280px;
  margin: auto;
}
.legal {
  text-align: center;
  border-top: 1px solid #dcc7b9;
  margin-top: 20px;
  padding-top: 14px;
  font-size: 12px;
}
.pageHero {
  background: #efe1d7;
  padding: 55px 0;
}
.pageHero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.pageHero img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}
.content {
  background: white;
}
.content .wrap {
  max-width: 100%;
}
.content h2 {
  font: 900 30px "DermaozFont", Georgia, serif;
  color: var(--terr);
  margin-top: 32px;
}
.content h3 {
  color: #8f432d;
}
.content p,
.content li {
  font-size: 16px;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.benefit {
  background: #fbf3ed;
  padding: 20px;
  border-left: 3px solid var(--terr);
}
.price {
  font: normal 30px Georgia, serif;
  color: var(--terr);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 13px;
  border-bottom: 1px solid #eadbd1;
  text-align: left;
}
th {
  background: #f6e9e0;
}
.contactForm {
  display: grid;
  gap: 14px;
}
.contactForm input,
.contactForm select,
.contactForm textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #d8c4b8;
  background: #fff;
}
.notice {
  padding: 14px;
  background: #f7eee8;
  border-left: 4px solid var(--terr);
}
@media (max-width: 800px) {
  .brandrow {
    grid-template-columns: 1fr;
    min-height: 140px;
    padding: 20px 0;
  }
  .brandrow > .contact-mini {
    display: none;
  }
  .brand img {
    width: 320px;
  }
  .nav .wrap {
    justify-content: space-between;
    min-height: 50px;
  }
  .nav .wrap > a,
  .nav .drop {
    display: none;
  }
  .menuBtn {
    display: block;
    margin-left: auto;
    border: 0;
    background: none;
    font-size: 28px;
    color: var(--terr);
  }
  .nav.open .wrap {
    display: grid;
    padding: 15px;
  }
  .nav.open .wrap > a,
  .nav.open .drop {
    display: block;
  }
  .dropmenu {
    position: static;
    display: grid !important;
    box-shadow: none;
    background: transparent;
    padding: 8px 14px;
  }
  .hero {
    min-height: 610px;
    background: linear-gradient(
        0deg,
        rgba(239, 224, 213, 0.94) 0 45%,
        rgba(239, 224, 213, 0.1) 75%
      ),
      url("../images/hero-sandra.jpg") top center/cover no-repeat;
  }
  .heroText {
    width: 100%;
    padding-top: 330px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .whygrid {
    grid-template-columns: 1fr 1fr;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about .copy {
    padding: 30px;
  }
  .footerGrid {
    grid-template-columns: 1fr;
  }
  .sectionTitle:before,
  .sectionTitle:after {
    width: 35px;
    margin: 0 10px;
  }
  .pageHero .wrap {
    grid-template-columns: 1fr;
  }
  .pageHero h1 {
    font-size: 32px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .top:before {
    width: 120px;
    height: 120px;
  }
  .contact-mini {
    display: none;
  }
}
@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .whygrid {
    grid-template-columns: 1fr;
  }
  .heroText {
    padding-top: 300px;
  }
  .hero {
    min-height: 650px;
  }
  .sectionTitle {
    font-size: 25px;
  }
}
/* === Accueil DERMAOZ — reproduction du visuel validé === */
.homeHero {
  height: 500px;
  position: relative;
  overflow: hidden;
  background: #ead9cc;
}
.homeHeroPhoto {
  position: absolute;
  inset: 0 0 0 auto;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  max-width: none;
}
.homeHeroShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ead9cc 0%,
    #ead9cc 36%,
    rgba(234, 217, 204, 0.93) 42%,
    rgba(234, 217, 204, 0.35) 53%,
    rgba(234, 217, 204, 0) 64%
  );
}
.homeHeroInner {
  position: relative;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
}
.homeHero .heroText {
  padding: 0 0 0 45px;
  width: 49%;
}
.homeHero .eyebrow {
  font-size: 19px;
  letter-spacing: 0.38em;
}
.homeHero h1 {
  font: 900 44px/1.06 "DermaozFont", Georgia, "Times New Roman", serif;
  margin: 14px 0 27px;
  color: #342019;
  letter-spacing: 0.26em;
}
.homeHero .tag {
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.26em;
  margin-left: 55px;
}
.homeHero .btn {
  margin: 18px 0 0 85px;
  min-width: 265px;
  text-align: center;
  padding: 14px 25px;
}
.heroRings {
  position: absolute;
  z-index: 2;
  width: 230px;
  height: 230px;
  left: -120px;
  bottom: -90px;
  border: 7px solid #a65335;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #ead9cc, 0 0 0 21px #a65335, 0 0 0 35px #ead9cc,
    0 0 0 42px #a65335, 0 0 0 56px #ead9cc, 0 0 0 63px #ead9cc;
}
.services {
  padding: 28px 0 26px;
  background: #fffaf6;
}
.services .cards {
  gap: 14px;
}
.services .card img {
  height: 153px;
}
.services .card .pad {
  min-height: 145px;
  padding: 12px 17px;
}
.services .card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
.services .card ul {
  font-size: 14px;
}
.services .more {
  padding: 0 17px 17px;
  font-size: 12px;
}
.services .more span,
.homeHero .btn span {
  float: right;
  font-size: 20px;
  line-height: 0.7;
}
.why {
  padding: 28px 0 30px;
}
.whygrid {
  gap: 45px;
}
.why .ico {
  width: 62px;
  height: 62px;
  font-size: 30px;
}
.why h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}
.why p {
  font-size: 14px;
  line-height: 1.5;
}
.siteFooter {
  overflow: hidden;
}
.footerMain {
  height: 150px;
  background: #fffaf6;
  position: relative;
}
.footerCurve {
  position: absolute;
  left: -80px;
  bottom: -150px;
  width: 520px;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, #a24c31, #bd6c49);
}
.footerRings {
  position: absolute;
  right: -75px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border: 7px solid #a65335;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #fffaf6, 0 0 0 21px #a65335, 0 0 0 35px #fffaf6,
    0 0 0 42px #a65335, 0 0 0 56px #fffaf6, 0 0 0 63px #fffaf6;
}
.footerExact {
  height: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}
.footerContact {
  color: #fff;
  font-size: 14px;
  line-height: 2.1;
  padding-left: 8px;
}
.footerBrand img {
  width: 300px;
  margin: auto;
}
.footerSocial {
  text-align: center;
  color: #9d4a31;
}
.footerSocial em {
  font: italic 24px Georgia, serif;
}
.footerSocial div {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}
.footerSocial span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #a65335;
  color: #fff;
  font: bold 20px Arial;
}
.footerLegal {
  background: linear-gradient(90deg, #8d3e2b, #6f3026);
  color: #fff;
  font-size: 11px;
}
.footerLegal .wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top:before {
  width: 220px;
  height: 220px;
  left: -100px;
  top: -105px;
}
.brandrow {
  min-height: 180px;
}
.nav .wrap {
  gap: 31px;
  min-height: 55px;
}
.sectionTitle {
  font-size: 28px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .homeHero {
    height: 650px;
  }
  .homeHeroPhoto {
    width: 100%;
    height: 390px;
    inset: 0 0 auto 0;
    object-fit: cover;
    object-position: 50% 35%;
  }
  .homeHeroShade {
    background: linear-gradient(
      0deg,
      #ead9cc 0 44%,
      rgba(234, 217, 204, 0.85) 52%,
      rgba(234, 217, 204, 0) 70%
    );
  }
  .homeHeroInner {
    align-items: flex-end;
  }
  .homeHero .heroText {
    width: 100%;
    padding: 0 24px 35px;
  }
  .homeHero h1 {
    font-size: 32px;
  }
  .homeHero .tag {
    margin-left: 0;
    font-size: 13px;
  }
  .homeHero .btn {
    margin-left: 0;
  }
  .heroRings {
    width: 150px;
    height: 150px;
    left: -95px;
    bottom: 5px;
  }
  .footerMain {
    height: auto;
    min-height: 300px;
  }
  .footerExact {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    padding: 28px 0;
  }
  .footerContact {
    padding: 0;
    color: #713322;
  }
  .footerCurve {
    display: none;
  }
  .footerBrand img {
    width: 250px;
  }
  .footerRings {
    opacity: 0.7;
  }
  .footerLegal .wrap {
    height: auto;
    padding: 16px 0;
    display: grid;
    gap: 10px;
    text-align: center;
  }
  .footerLegal span {
    display: block;
  }
  .whygrid {
    gap: 25px;
  }
}

/* === SVG rebuild: decorative geometry is asset-based, not CSS-generated === */
.top:before,
.heroRings,
.footerRings,
.footerCurve {
  display: none !important;
  content: none !important;
}
.topRingsSvg {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 180px;
  z-index: 1;
  pointer-events: none;
}
.brandrow {
  position: relative;
  z-index: 2;
}
.heroRingsSvg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 190px;
  height: 220px;
  z-index: 2;
  pointer-events: none;
}
.footerCurveSvg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 520px;
  height: 180px;
  z-index: 1;
  pointer-events: none;
}
.footerRingsSvg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 170px;
  z-index: 1;
  pointer-events: none;
}
.homeHeroPhoto {
  object-fit: cover !important;
  object-position: 50% 48% !important;
  width: 66% !important;
  height: 100% !important;
}
@media (max-width: 800px) {
  .topRingsSvg {
    width: 150px;
    height: auto;
  }
  .heroRingsSvg {
    width: 120px;
    height: auto;
  }
  .footerCurveSvg {
    display: none;
  }
  .footerRingsSvg {
    width: 150px;
    height: auto;
  }
  .homeHeroPhoto {
    width: 100% !important;
    height: 390px !important;
    object-position: 50% 35% !important;
  }
}



/* ==========================================================================
   Correction et compatibilité des menus déroulants WordPress
   ========================================================================== */
.menu-item-has-children,
.page_item_has_children {
    position: relative;
}

/* Conteneur du sous-menu généré par WordPress */
.menu-item-has-children > .sub-menu,
.page_item_has_children > .children {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: -18px;
    background: #ffffff;
    padding: 12px 18px;
    min-width: 245px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    border-radius: 2px;
}

/* Affichage au survol de la souris */
.menu-item-has-children:hover > .sub-menu,
.page_item_has_children:hover > .children {
    display: grid;
    gap: 9px;
}

/* Style des liens à l'intérieur du sous-menu */
.menu-item-has-children .sub-menu a,
.page_item_has_children .children a {
    color: var(--ink);
    text-transform: none;
    font-size: 14px;
    padding: 4px 0;
    border: none !important;
    background: transparent;
}

.menu-item-has-children .sub-menu a:hover,
.page_item_has_children .children a:hover {
    color: var(--terr);
    border: none !important;
}

/* ==========================================================================
   Navigation principale & Sous-menus déroulants (Structure WordPress)
   ========================================================================== */
.nav {
    background: #f8eee7;
    border-top: 1px solid #eadbd1;
    border-bottom: 1px solid #eadbd1;
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    font-size: 14px;
}

/* Liste principale de navigation */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav li {
    position: relative;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav a:hover, 
.nav a.active {
    color: var(--terr);
    border-bottom: 2px solid var(--terr);
}

/* ==========================================================================
   Sous-menus déroulants au survol
   ========================================================================== */
.nav li ul {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 12px 18px;
    min-width: 245px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 9px;
    border-radius: 2px;
}

/* Affichage du sous-menu au survol du parent */
.nav li:hover > ul {
    display: flex;
}

.nav li ul li {
    width: 100%;
}

/* Liens à l'intérieur du sous-menu */
.nav li ul a {
    color: var(--ink);
    text-transform: none;
    font-size: 14px;
    padding: 4px 0;
    border: none !important;
    background: transparent;
}

.nav li ul a:hover {
    color: var(--terr);
    border: none !important;
}

/* ==========================================================================
   Menu Mobile & Responsive
   ========================================================================== */
.menuBtn {
    display: none;
}

@media(max-width: 800px) {
    .nav .wrap {
        justify-content: space-between;
        min-height: 50px;
    }
    
    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 15px 0;
    }
    
    .nav.open ul {
        display: flex;
    }
    
    .menuBtn {
        display: block;
        margin-left: auto;
        border: 0;
        background: none;
        font-size: 28px;
        color: var(--terr);
        cursor: pointer;
    }
    
    .nav li ul {
        position: static;
        display: flex !important;
        box-shadow: none;
        background: transparent;
        padding: 8px 14px;
    }
}