/*
  public_front_end/base.css
  Purpose: Global variables and base rules used across the front-end.
  Contains CSS custom properties, box-sizing, body typography and theme tokens.
*/
:root {
  --bg: #222;
  --fg: #fff;
  --accent: #3b82f6;
  --muted: #595959;
  --gold: #ffd700;
  --shadow-strong: 0 8px 20px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 2rem 4rem rgba(0, 0, 0, 0.35);
  --space-1: 1rem;
  --transition-fast: 200ms;
}

html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: var(--fg);
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}
/*
  public_front_end/layout.css
  Purpose: Layout primitives and page-level structural rules (page, cell, stacking, overlaps).
*/

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cell {
  position: relative;
  min-height: 50vh;
  padding-top: 3rem;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  /* subtle overlap impression — shadow below each cell */
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35);
  width: 100%;
}

.cell-title {
  color: var(--fg);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin: 0 1.5rem;
  padding: 0;
}

.cell-content {
  margin: 0 1.5rem;
  flex: 1;
}

.cell-portfolio {
  margin: 0;
  flex-shrink: 0;
}

/* make cells overlap so shadows are visible */
.cell + .cell {
  margin-top: -40px; /* adjust overlap depth as desired */
}

/* alternating backgrounds using theme tokens */
.page > .cell:nth-child(even) {
  background: var(--bg);
}
.page > .cell:nth-child(odd) {
  background: var(--muted);
}

/* Automatic stacking using a per-cell variable --i set on each .cell.
   Higher var(--i) sits on top. */
.page > .cell {
  z-index: calc(100 - var(--i, 0));
}

.cell-footer {
  height: 5rem;
  min-height: 5rem;
}

.cell-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  flex: 1;
}

/* Responsive: on small screens stack cell content vertically and avoid title overlap */
@media (max-width: 800px) {
  .cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 2.5rem; /* reduce top padding for small screens */
    box-shadow: none; /* remove heavy shadows to simplify small layout */
  }

  .cell-title {
    position: static;
    top: auto;
    left: auto;
    margin: 0.5rem 1rem;
    font-size: 1.4rem;
    z-index: 2;
  }

  .cell-content {
    margin-top: 0.5rem; /* ensure content flows below the title */
    padding: 1rem;
  }

  .cell-portfolio {
    margin: 0;
    padding: 0;
  }

  /* Remove overlapping margins between consecutive cells on small screens */
  .cell + .cell {
    margin-top: 0;
  }

  .cell-footer {
    height: 10rem;
    min-height: 10rem;
    padding: 1rem;
    text-align: center;
  }
}
/*
  public_front_end/header.css
  Purpose: Header and slideshow UI — titles, contact block, top overlays, and slideshow container.
*/

.cell.landing-hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  font-weight: 300;
  font-size: 1.2rem;
}

/* top left: "Thierry Sourbier" title */

.landing-hero-title {
  position: absolute;
  left: 1.5rem;
  color: var(--fg);
  letter-spacing: 0.03em;
  z-index: 2;
  background: transparent;
  margin: 0;
  padding: 0;
  top: 1.75rem;
  font-weight: 300;
  font-size: 1.2rem;
}

/* Bottom left: "Photographie" text */

.landing-hero-photography {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 4rem;
  font-weight: 100;
  color: #fff;
  z-index: 3;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Top right: Contact block */

.landing-hero-contact {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 1.2rem;
  font-weight: 100;
  color: #fff;
  z-index: 3;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* space between Contact text and icons */
}

/* Don't change color when hovering the whole container.
   Target the individual links instead so only the hovered link highlights. */

/* Burger defaults: hidden unless media query shows it */
.landing-hero-contact-burger,
.landing-hero-contact-burger-menu {
  display: none;
}

.landing-hero-contact .landing-hero-contact-link:hover,
.landing-hero-contact .landing-hero-contact-link:focus {
  color: #ffd700;
  outline: none;
  text-decoration: underline;
}

/* Visible focus styles for keyboard users */
.landing-hero-contact-burger:focus-visible,
.landing-hero-contact-link:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.9);
  outline-offset: 3px;
}

/* Responsive rules for small screens */
@media (max-width: 800px) {
  .landing-hero-photography {
    display: none;
  }
  .landing-hero-section-links {
    right: 1rem;
    bottom: 1.5rem;
  }
  /* hide the desktop contact links and show burger */
  .landing-hero-contact-links {
    display: none;
  }
  .landing-hero-contact-burger {
    display: inline-flex;
  }

  .landing-hero-contact-burger {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
  }
  .landing-hero-contact-burger-menu {
    position: absolute;
    right: 2rem;
    top: 3.2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 100;
  }
  .landing-hero-contact-burger-menu a {
    color: #fff;
    padding: 0.4rem 0.6rem;
    display: block;
  }
  .landing-hero-contact-burger-menu.show {
    display: flex;
  }
}

/* Section links in bottom right of landing-hero */

.landing-hero-section-links {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 3;
}

.landing-hero-section-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.landing-hero-section-links li {
  margin-bottom: 0.25rem; /* reduced spacing */
  line-height: 1; /* tighter line height */
}

.landing-hero-section-links a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 100;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: color 0.2s;
}

/* slideshow container and images - keep below overlays */

#landing-hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* base layer */
}
.landing-hero-slideshow-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
  will-change: transform, opacity;
  z-index: 0; /* ensure images stay below overlays */
  -webkit-transform-origin: center center;
  transform-origin: center center;
}
.landing-hero-slideshow-image.active {
  opacity: 1;
  z-index: 1;
  -webkit-animation: kenburns 10s linear forwards;
  animation: kenburns 10s linear forwards;
}

@-webkit-keyframes kenburns {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@keyframes kenburns {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .landing-hero-slideshow-image.active {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .landing-hero-slideshow-image {
    transition: none !important;
  }
}
/* Rounded square wrapper for small social icons used in cell-1 */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 200ms ease, background-color 200ms ease,
    box-shadow 200ms ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin: 0; /* gap handles spacing */
}

.social-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 200ms ease;
}

.social-icon:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}

.social-icon:active {
  transform: scale(0.96);
}

.social-icon:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Improve visibility of Instagram SVG icons */
.font-icon-svg {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  fill: #ffffff !important; /* solid white fill for contrast */
  /* subtle outline and shadow for visibility on varied backgrounds */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.font-icon-svg path {
  fill: #ffffff !important;
  /* add a faint stroke as a fallback to make thin shapes heavier in some renderers */
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 10;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .social-icon {
    transition: none !important;
  }
}
/*
  public_front_end/portfolio.css
  Purpose: Styles for the portfolio carousel: wrapper, cards, images and captions.
*/

.portfolio-wrapper {
  /* More robust full-bleed pattern using translateX to avoid vw scrollbar issues
     (100vw can include the scrollbar width and cause overflow in some browsers). */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.portfolio {
  display: flex;
  gap: 0;
  overflow-x: auto;
  max-height: 30vh;
  align-items: flex-end;
  padding: 0;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.portfolio {
  /* allow flex children to shrink properly and prevent accidental overflow */
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.portfolio::-webkit-scrollbar {
  height: 8px;
}

.cp-card {
  height: 30vh;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-strong);
  scroll-snap-align: start;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-card {
  /* ensure cards don't force the row wider than the viewport */
  min-width: 0;
}

.cp-card > a {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.portfolio .cp-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: filter var(--transition-fast) ease;
  display: block;
}

.cp-card:hover img,
.cp-card:focus-within img {
  filter: brightness(0.7);
}

/* Visible focus styles for keyboard users */
.cp-card a:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.9);
  outline-offset: 3px;
}

.cp-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65));
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  transform-origin: right bottom;
}
.cp-card:hover .cp-caption,
.cp-card:focus-within .cp-caption {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.06);
  font-size: 2rem;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cp-card,
  .cp-caption {
    transition: none !important;
  }
}
/*
  public_front_end/contact.css
  Purpose: Styles for the contact section, including the contact-block layout and contact card.
*/

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-picture,
.contact-info {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-picture img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-info {
  flex-direction: column;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1rem;
  padding: 1rem 0;
}
.contact-center {
  text-align: center;
}
.contact-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Wide screens: 2 columns */
@media (min-width: 801px) {
  .contact-block {
    flex-direction: row;
    gap: 2rem;
  }

  .contact-picture,
  .contact-info {
    flex: 1;
  }
}
/*
  public_front_end/utils.css
  Purpose: Small utility classes and accessibility helpers (focus-visible, reduced-motion, sr-only).
*/

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slideshow-image.active {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .slideshow-image,
  .social-icon,
  .cp-card,
  .cp-caption {
    transition: none !important;
  }
}


.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* public_front_end.css — manifest
   Purpose: Small manifest that pulls in component CSS files for the public front-end.
   Files required (order matters):
     - base.css (variables, base rules)
     - layout.css (page and cell layout, stacking)
     - header.css (hero & slideshow)
     - portfolio.css (carousel and cards)
     - utils.css (utilities and accessibility)
*/








/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

svg {
  fill: var(--accent);
  /*	stroke: var(--accent-light); */
  /*  fill: red;
stroke: yellow; */
}

svg.tslogo {
  fill: var(--text);
  /* Add your styles here */
}

.sn_logo {
  display: inline;
  margin: 0 auto;
  height: 1em;
  width: 1em;
  vertical-align: middle;
}

a.sn_link {
  box-shadow: inset 0 0 0 0 var(--accent);
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
/* make the button_to form inline and remove default button chrome */
form.inline-button-form {
  display: inline;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

form.inline-button-form .sn_button {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0.25rem;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  display: inline;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* keep a visible focus ring for accessibility */
form.inline-button-form .sn_button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
}

button.sn_button {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0.25rem;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* keep an accessible focus style */
button.sn_button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
}

a.sn_link:hover {
  box-shadow: inset 300px 0 0 0 var(--accent);
  color: var(--bg);
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.menu-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  align-items: center;
}

.account-count {
  width: 100%;
  align-items: center;
}

.menu-items {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menu-bar span.separator {
  color: var(--text-light);
}

.menu-bar .inline-form {
  margin: 0;
}

.menu-bar .inline-form__input {
  margin: 0;
  height: 1.5rem;
}

.menu-bar .inline-form__submit {
  height: 1.5rem;
  padding: 0 0.75rem;
}
h1,
h2,
h3,
h4,
p {
  text-align: center;
}

#bottom-nav-bar {
  font-size: 0.7em;
}

img.final-picture {
  border-radius: 0;
  margin-top: 30px;
  border-width: 10px;
  border-color: black;
  filter: drop-shadow(-10px 10px 10px #111);
}

img.sqimg {
  border-radius: 0;
}

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

/* Light theme override */
[data-theme="light"] {
  --bg: #fff;
  --accent-bg: #f5f7ff;
  --text: #212121;
  --text-light: #585858;
  --border: #d8dae1;
  --accent: #0d47a1;
  --accent-light: #90caf9;
  --accent-dark: #89a5d0;
  --code: #d81b60;
  --preformatted: #444;
  --marked: #ffdd33;
  --disabled: #efefef;
}

/* Dark theme override */
[data-theme="dark"] {
  --bg: #212121;
  --accent-bg: #2b2b2b;
  --text: #dcdcdc;
  --text-light: #ababab;
  --border: #666;
  --accent: #ffb300;
  --accent-light: #ffecb3;
  --accent-dark: #785501;
  --code: #f06292;
  --preformatted: #ccc;
  --disabled: #111;
}
label.dmtoogle {
  width: 50px;
  height: 20px;
  position: relative;
  display: block;
  background: #ebebeb;
  border-radius: 20px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4),
    inset 0px -5px 15px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s;
}
label.dmtoogle:after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 1px;
  left: 1px;
  background: linear-gradient(180deg, #ffcc89, #d8860b);
  border-radius: 18px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
input.dmtoogle {
  width: 0;
  height: 0;
  visibility: hidden;
}
input.dmtoogle:checked + label {
  background: #242424;
}
input.dmtoogle:checked + label:after {
  left: 49px;
  transform: translateX(-100%);
  background: linear-gradient(180deg, #777, #3a3a3a);
}

label.dmtoogle:active:after {
  width: 26px;
}

.background {
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: -1;
  position: absolute;
  transition: 0.3s;
}

input.dmtoogle:checked + label.dmtoogle + .background {
  background: #242424;
}

label.dmtoogle svg {
  position: absolute;
  width: 12px;
  top: 4px;
  z-index: 100;
}
label.dmtoogle svg.sun {
  left: 4px;
  fill: #fff;
  transition: 0.3s;
}
label.dmtoogle svg.moon {
  left: 34px;
  fill: #7e7e7e;
  transition: 0.3s;
}
input.dmtoogle:checked + label svg.sun {
  fill: #7e7e7e;
}
input.dmtoogle:checked + label svg.moon {
  fill: #fff;
}

span.ig_account_name {
  font-style: italic;
  color: var(--accent);
  opacity: 0.4;
  font-size: 0.9em;
}

/* Style for the inline personnal button */
.inline-personnal-btn {
  display: inline;
  margin: 0 0.5em;
  padding: 0.2em 0.6em;
  font-size: 1em;
  background: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.inline-personnal-btn input[type="submit"] {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* like one-column layout for test_home */
.page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}
.cell {
  background: #f8f8fc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  font-size: 1.2rem;
  position: relative;
  padding-top: 2.5rem;
}
.cell.landing-hero {
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 1.5rem;
  background: #e0eaff;
}

.cell.landing-hero {
  background: #3b82f6;
}
.cell.cell-2 {
  background: #10b981;
}
.cell.cell-3 {
  background: #f59e42;
}
.cell.cell-4 {
  background: #ef4444;
}

.cell-title {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  z-index: 2;
  background: transparent;
  margin: 0;
  padding: 0;
}

/* Improve visibility of Instagram SVG icons */
.font-icon-svg.e-fab-instagram {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  fill: #ffffff !important; /* solid white fill for contrast */
  /* subtle outline and shadow for visibility on varied backgrounds */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.font-icon-svg.e-fab-instagram path {
  fill: #ffffff !important;
  /* add a faint stroke as a fallback to make thin shapes heavier in some renderers */
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 10;
  stroke-linejoin: round;
  stroke-linecap: round;
}
