:root {
  --color1: #14df6cd5;
  --color2: #F4F4f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* =========================================================
   COVER (PC) — stable (évite top:50% fragile)
========================================================= */

div.cover {
  background:
    url(cover_overlay.png) no-repeat center/100% 100%,
    url(cover.png) no-repeat center/cover;
  height: 640px;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 0 20px;
}

div.cover-text {
  position: relative;
  width: 100%;
  max-width: 1100px;
}

div.cover h1 {
  color: white;
  font-size: 60px;
  margin: 0 0 100px 0;
}

div.cover p {
  color: white;
  font-size: 30px;
  margin: 0;
}

a.contact-button {
  color: var(--color1);
  border: 3px solid var(--color1);
  padding: 10px 26px;
  text-decoration: none;
  background-color: #00000040;
  display: inline-block;
  margin-top: 150px;
  font-size: 14px;
}

a.contact-button:hover {
  color: white;
  border-color: white;
}

/* Coordonnées en bas à gauche (PC) */
div.cover-contact {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 15px;
  border-left: 4px solid var(--color1);
  padding-left: 10px;
}

div.cover-contact p {
  text-align: left;
  margin: 0;
}

div.cover-contact a {
  color: white;
  font-size: 14px;
}

/* =========================================================
   SECTIONS (communes)
========================================================= */

.section {
  padding: 30px 40px;
}

h2 {
  text-align:center ;
  font-size: 34px;
  margin: 0 0 18px 0;
  color: black;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
}

div.separateur {
  background-color: #979797;
  height: 2px;
  width: 150px;
  position: relative;
  left: 50%;
  margin-left: -75px;
  margin-bottom: 15px;
  margin-top: 80px;
}

div.section p {
  font-size: 20px;
  font-family: 'Times New Roman', Times, serif;
  color: #656565;
  margin: 0 0 16px 0;
  line-height: 1.7;
}

/* =========================================================
   SECTION GRISE 1 — IMPORTANT: pas de height fixe
========================================================= */

div.section-grise1 {
  background: url(triangle2white.svg) no-repeat center bottom/100%;
  background-color: var(--color2);
  color: #656565;

  text-align: left;
  height: auto;
  min-height: 0;
  padding-bottom: 120px;


}

/* texte "brut" (entre <p>) */
.section-grise1 {
  font-size: 22px;
  line-height: 1.7;
  text-align: left;
  font-family: 'Times New Roman', Times, serif;
}

div.section-grise1 p {
  font-size: 20px;
  font-family: 'Times New Roman', Times, serif;
  color: #656565;
 
}

/* H1 SEO (titre) reste centré */
.seo-h1 {
  text-align: center;
  font-size: 34px;
  margin: 12px 0 16px 0;
  color: black;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
}

/* Bloc SEO: FORCÉ à gauche */
.seo-intro {
  
  width: 100%;
  max-width: none;
  margin: 0 auto 12px auto;
  padding: 0 6px;
  font-family: 'Times New Roman', Times, serif;
  text-align: left;
  font-size: 22px;
  line-height: 1.7;
  color: #656565;

 
}

.seo-intro p {
  margin: 0 0 16px 0; 
 
}

/* =========================================================
   SECTION GRISE 2 — centrage propre (titre + texte)
========================================================= */

div.section-grise2 {
  background: url(triangle1white.svg) no-repeat center top/100%;
  background-color: var(--color2);

  min-height: 230px;
  padding-top: 120px;
  padding-bottom: 20px;

  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: flex-start;
  text-align: left;
}

div.section-grise2 h2 {
  margin-bottom: 12px;
  font-family: 'Times New Roman', Times, serif;
}

div.section-grise2 p {
  max-width: 900px;
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
}

.lien-galerie {
  color: var(--color1);
  text-decoration: none;
}

.lien-galerie:hover {
  text-decoration: underline;
}

/* =========================================================
   FRAME
========================================================= */

div.frame {
  margin: 50px 50px;
  padding: 20px 30px;
  background-color: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

div.section p.frame-title {
  font-size: 34px;
  font-weight: bold;
  margin: 5px 0 20px 0;
  color: black;
  text-align: center;
}

div.texte-avec-ligne-verticale {
  border-left: 4px solid var(--color1);
  padding-left: 8px;
  height: auto;
  display: inline-block;
}

div.texte-avec-ligne-verticale p {
  margin-top: 0;
}

/* =========================================================
   PORTFOLIO / GALERIE
========================================================= */

.portfolio-header {
  height: 150px;
  background: url(Header.png) no-repeat center/cover;
  position: relative;
}

div.section-grise1-portfolio p { text-align: center; }

.portfolio-header .portfolio-header-title {
  font-size: 26px;
  font-weight: bold;
  color: white;
  padding-top: 4px;
  padding-left: 8px;
}

h1.portfolio {
  font-size: 46px;
  color: black;
  line-height: 1;
  margin-top: 10px;
}

h2.portfolio {
  font-size: 26px;
  color: black;
  font-weight: normal;
  margin-bottom: 0;
}

a.portfolio-back {
  color: var(--color1);
  margin-left: -10px;
}

.galerie {
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.galerie img {
  width: 330px;
  height: 225px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.lightbox:target { display: flex; }

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.lightbox .close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: white;
  font-size: 42px;
  text-decoration: none;
  line-height: 1;
}

/* FOOTER */
.site-footer {
  text-align: center;
  font-size: 12px;
  font-family: "Times New Roman", Times, serif;
  color: #777;
  padding: 12px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

.site-footer p { margin: 0; line-height: 1.3; }

/* =========================================================
   RESPONSIVE (mobile)
========================================================= */

@media screen and (max-width: 768px) {

  div.cover {
    height: 520px;
    padding: 0 16px;
  }

  /* Titre & sous-titre en BLANC sur mobile */
  div.cover h1,
  div.cover p {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75);
  }

  div.cover h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 8px 0;
  }

  div.cover p {
    font-size: 18px;
    margin: 0;
  }

  a.contact-button {
    padding: 12px 22px;
    font-size: 14px;
    background-color: rgba(0,0,0,0.35);
    color: #fff !important;
    border-color: #fff !important;
  }

  div.cover-contact {
    left: 16px;
    right: 16px;
    bottom: 10px;
    border-left: 4px solid #fff !important;
    padding-left: 10px !important;
  }

  div.cover-contact a {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75) !important;
  }

  .section {
    padding: 22px 16px;
  }

  h2 { font-size: 26px; }

  div.section p,
  div.section-grise1 p {
    font-size: 18px;
    line-height: 1.6;
  }

  .section-grise1 {
    font-size: 18px;
    line-height: 1.6;
  }

  div.section-grise2 {
    padding-top: 70px;
    padding-bottom: 30px;
    min-height: 0;
  }

  .seo-h1 {
    font-size: 24px;
    margin: 6px 0 12px 0;
  }

  .seo-intro {
    font-size: 18px;
    padding: 0 6px 6px 6px;
    text-align: left !important;
  }

  .seo-intro p {
    text-align: left !important;
  }

  div.frame {
    margin: 18px 0;
    padding: 16px;
  }

  div.section p.frame-title { font-size: 26px; }

  table { width: 100%; border-collapse: collapse; }
  table tr, table td { display: block; width: 100%; }
  table td { text-align: center; }
  table td img { width: 92px !important; margin-bottom: 10px; }

  div.texte-avec-ligne-verticale {
    display: block;
    margin-left: 0 !important;
    text-align: left;
  }

  .galerie { gap: 14px; margin-top: 18px; }
  .galerie img { width: 100%; max-width: 420px; height: auto; }

  .portfolio-header { height: 140px; }
  .portfolio-header .portfolio-header-title { font-size: 20px; }
  h1.portfolio { font-size: 34px; }
  h2.portfolio { font-size: 20px; }

  .lightbox { padding: 14px; }
  .lightbox .close { font-size: 38px; top: 10px; right: 14px; }

  .site-footer { font-size: 11px; padding: 10px 14px; }
}
